Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blackjack-engine

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blackjack-engine - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "blackjack-engine",
"version": "0.0.1",
"version": "0.0.2",
"description": "NodeJs, multi-player, blackjack engine",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -84,3 +84,3 @@ ## Available game parameters

Based on (Marco Casula's project)[https://github.com/kedoska/engine-blackjack/].
Based on [Marco Casula's project](https://github.com/kedoska/engine-blackjack/).

@@ -87,0 +87,0 @@ ### Actions

@@ -167,2 +167,3 @@ export interface Action {

public setState(state: Partial<State>): void;
public getActivePlayer(): { activePlayerId: number, activeHandId: number };
}

@@ -172,13 +173,14 @@

export namespace actions {
function deal(bet: number, sideBets?: SideBetsInfo): Action;
function bet(bet: number, playerId: number, sideBets?: SideBetsInfo): Action;
// function dealCards
// function dealerHit(options?: { dealerHoleCard: Card }): Action;
function hit(position?: number): Action;
function insurance(bet: number): Action;
function hit(): Action;
function insurance(bet: number, playerId: number): Action;
// function invalid(action: Action, info: string): Action;
function restore(): Action;
// function showdown(options?: { dealerHoleCardOnly: boolean }): Action;
function split(position?: number): Action;
function stand(position?: number): Action;
function split(): Action;
function stand(): Action;
function surrender(): Action;
function double(position?: number): Action;
function double(): Action;
}

@@ -244,2 +246,4 @@

function getRules(): Rule;
function getDefaultRules(): Rule;
function defaultPlayer(): Player;
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc