VariantKey型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
THE VARIANTS, AS ROWS OF SETTINGS. Nothing in the engine branches on a variant's name: it reads the row. A new game on the same board is a new row.
インポート
import type { VariantKey } from "@johnmorrisdotca/sugoroku";
定義
type VariantKey = "backgammon" | "backgammon-race" | "anti-backgammon" | "nackgammon" | "long-gammon" | "hypergammon" | "tabula";
例
import type { VariantKey } from "@johnmorrisdotca/sugoroku";
const value: VariantKey = "tabula";
console.log(value);tabula出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。