WarEnd型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Why a game of War ended: one player has every card ("cleared"), a player could not finish a war and the other could,
or both could not and one ran out first ("short"), both ran out together ("drawn"), or the turns ran out ("limit").
インポート
import type { WarEnd } from "@johnmorrisdotca/toranpu/war";
定義
type WarEnd = "cleared" | "short" | "drawn" | "limit";
例
import type { WarEnd } from "@johnmorrisdotca/toranpu/war";
const value: WarEnd = "limit";
console.log(value);limit出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。