Static Method Summary
Static Public Methods | ||
public static |
|
|
public static |
overhandShuffle(deck: string[]]): string[]] Mimics the standard shuffling technique |
|
public static |
Returns the sum of the value of their cards according to pontoon rules |
|
public static |
Pushes a quantity of cards into another |
|
public static |
|
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
overhandShuffle(): string[] Mimics the stand shuffling technique of humans |
|
public |
riffleShuffle(times: number): string[] Splits the deck in two, then interleaves the cards to form a new deck |
Static Public Methods
public static overhandShuffle(deck: string[]]): string[]] source
Mimics the standard shuffling technique
Params:
Name | Type | Attribute | Description |
deck | string[]] | Deck to push the cards into |
Return:
string[]] | deck |
public static score(cards: string[], aceLow: boolean): number source
Returns the sum of the value of their cards according to pontoon rules