HandicapTerms型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
EVERYTHING THAT MAKES A GAME UNEVEN ON PURPOSE, as hasHandicap reads it:
the per-colour handicap and the head start. Every question that takes it —
whether a rating may move, on the pages, the set-up screen and the writers —
has to be handed both, so none of them can go on rating a game with either.
インポート
import type { HandicapTerms } from "@johnmorrisdotca/narabe";
定義
type HandicapTerms = Pick<GameSettings, "handicap" | "headStart">;
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
handicap | Handicap | |
headStart | HeadStart | A start for one colour, see HeadStart. |
例
import type { HandicapTerms } from "@johnmorrisdotca/narabe";
import { NO_HANDICAP, NO_HEAD_START } from "@johnmorrisdotca/narabe";
const value: HandicapTerms = {handicap:NO_HANDICAP,headStart:NO_HEAD_START};
console.log(value);{
handicap: {
stone: null,
doubleThree: false,
doubleFour: false,
overline: false,
exactLine: false,
openLine: false,
longerLine: false,
singleStone: false,
noCaptures: false,
secondStoneExclusion: 0
},
headStart: { stone: null, freeTurns: 0, traditional: 0 }
}出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。