Reference · Rules, maps and records
mustTradefunction
Whether the player to move must trade cards before anything else: five or more in hand while reinforcing.
Import it
import { mustTrade } from "@johnmorrisdotca/tenka";
Definition
function mustTrade(game: TenkaGame): boolean
Parameters
| Name | Type | Description |
|---|---|---|
game | TenkaGame | The current native game state. |
Returns
boolean
Whether the player to move must trade cards before anything else: five or more in hand while reinforcing.
Examples
import { mustTrade, startTenka } from "@johnmorrisdotca/tenka";
const game = startTenka(10,["Seat 1","Seat 2"],42)!;
console.log(mustTrade(game));falseWhat it prints (run when this page was built)