blackjack-engine
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"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; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92892
1405