replaySpider関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A game played out from its deal: every table it passed through, the first the deal, or null where the deal is not two decks or a move is one the rules refuse. The one reader of a move list, for the table, a kept run, the check and a finished game's page alike.
インポート
import { replaySpider } from "@johnmorrisdotca/toranpu/spider";
定義
function replaySpider(deal: string, suits: number, moves: string): SpiderTable[] | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
deal | string | The deal number or dealing specification. |
suits | number | The allowed suits. |
moves | string | The ordered native moves to replay. |
戻り値
SpiderTable[] | null
A game played out from its deal: every table it passed through, the first the deal, or null where the deal is not two decks or a move is one the rules refuse. The one reader of a move list, for the table, a kept run, the check and a finished game's page alike.
例
import { encodeMoves, replaySpider, spiderDealOfSeed } from "@johnmorrisdotca/toranpu/spider";
console.log(replaySpider(spiderDealOfSeed(42, 1), 1, encodeMoves([{ kind: "deal" }]))?.length);2出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。