HeadStart型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A start given to one colour — the weaker player's — before the game is even.
freeTurns: turns this colour takes at the start with nothing played
between them, 0 to 3. Each is recorded as the other colour's pass, so a
replay reaches the same position from the move list alone.
traditional: how much of the game's own traditional head start this colour
is given — handicap stones, corners, or the other side's men taken off —
as its spec's headStart names; 0 for none. See rules/headStart.ts.
The opposite colour from a handicap's, by nature: a handicap makes the stronger side's game harder, a head start makes the weaker side's easier.
インポート
import type { HeadStart } from "@johnmorrisdotca/narabe";
定義
type HeadStart = {
stone: Stone | null;
freeTurns: number;
traditional: number;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
stone | Stone | null | |
freeTurns | number | |
traditional | number |
例
import type { HeadStart } from "@johnmorrisdotca/narabe";
const value: HeadStart = {stone:"black",freeTurns:1,traditional:0};
console.log(value);{ stone: 'black', freeTurns: 1, traditional: 0 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。