Train型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A train on the table: the tiles laid on it in order, and whether its owner's marker says anybody may play on it.
インポート
import type { Train } from "@johnmorrisdotca/domino";
定義
type Train = {
laid: readonly LaidDomino[];
open: boolean;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
laid | readonly number[] | |
open | boolean | Open to everybody: the Mexican Train always, a player's own once they could not play. |
例
import { startTrain } from "@johnmorrisdotca/domino";
import type { Train } from "@johnmorrisdotca/domino";
const game = startTrain(9,["A","B"],42,{length:"short",doubles:"one",mexican:"any"},[false,true])!;
const value: Train = game.trains[0];
console.log(value);{ laid: [], open: false }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。