freshTrickfunction
A fresh trick to lead, for a new deal.
Import it
import { freshTrick } from "@johnmorrisdotca/toranpu/big-two";
Also exported from: @johnmorrisdotca/toranpu/president
Definition
function freshTrick(hands: CardId[][], leader: number): ClimbTrick
Parameters
| Name | Type | Description |
|---|---|---|
hands | string[][] | The hands by seat, or the number of hands where numeric. |
leader | number | The seat that led the trick. |
Returns
ClimbTrick
A fresh trick to lead, for a new deal.
Examples
import { freshTrick } from "@johnmorrisdotca/toranpu/big-two";
console.log(freshTrick([["3D", "5H"], ["4C", "6S"]], 0));{
hands: [ [ '3D', '5H' ], [ '4C', '6S' ] ],
pile: null,
passed: [ false, false ],
toPlay: 0,
played: []
}What it prints (run when this page was built)