DoublesRule型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How a double is dealt with, the table's one house rule about them.
one(the default, as most published rules play it): a double must be covered before anything else is played anywhere, and whoever laid it lays again to cover it.chain: after laying a double you may lay another double in the same turn, anywhere one fits, before covering; then every double left open is covered, the last laid first, before anything else is played.
インポート
import type { DoublesRule } from "@johnmorrisdotca/domino";
定義
type DoublesRule = "one" | "chain";
例
import type { DoublesRule } from "@johnmorrisdotca/domino";
const value: DoublesRule = "chain";
console.log(value);chain出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。