SpiderColumn型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One of the ten columns: its cards from the bottom up, of which the first down lie face down.
インポート
import type { SpiderColumn } from "@johnmorrisdotca/toranpu/spider";
定義
type SpiderColumn = {
down: number;
cards: readonly number[];
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
down | number | |
cards | readonly number[] |
例
import { dealSpider, spiderDealOfSeed, spiderDeckOf } from "@johnmorrisdotca/toranpu/spider";
import type { SpiderColumn } from "@johnmorrisdotca/toranpu/spider";
const table = dealSpider(spiderDeckOf(spiderDealOfSeed(42, 1), 1)!);
const value: SpiderColumn = table.tableau[0]!;
console.log(value.down);5出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。