Reference · Rules, maps and records
tenkaAgainfunction
The same table again, from nothing, with a new seed: a new deal, a new first player, new dice.
Import it
import { tenkaAgain } from "@johnmorrisdotca/tenka";
Definition
function tenkaAgain(game: TenkaGame, seed: number): TenkaGame | null
Parameters
| Name | Type | Description |
|---|---|---|
game | TenkaGame | The current native game state. |
seed | number | The unsigned 32-bit starting seed. |
Returns
TenkaGame | null
A fresh deal of the same table, or null when the new seed is invalid.
Examples
import { startTenka, tenkaAgain } from "@johnmorrisdotca/tenka";
const game = startTenka(10,["Seat 1","Seat 2"],42)!;
console.log(tenkaAgain(game,43)?.seed);43What it prints (run when this page was built)