OpeningRule型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How the first stones go down. Everything after the opening is the variant's business; these only shape the start, to blunt black's first-move advantage.
free: anywhere, any order.
pro / longPro: black opens at tengen and black's second stone must leave
the central 5×5 (7×7 for long pro).
swap: seat one places three stones, seat two picks a colour.
swap2: as swap, but seat two may instead add two stones and hand the choice
back.
rif: the classic renju opening — centre, then inside the 3×3, then inside
the 5×5, after which white may swap colours.
sakata: the RIF start and swap, and then the fifth stone must land inside
the central 7×7.
tarannikov: the first five stones must land inside the central 1×1, 3×3,
5×5, 7×7 and 9×9 in turn, and after each of them the other seat may swap.
インポート
import type { OpeningRule } from "@johnmorrisdotca/narabe";
定義
type OpeningRule = "free" | "pro" | "longPro" | "swap" | "swap2" | "rif" | "sakata" | "tarannikov";
例
import type { OpeningRule } from "@johnmorrisdotca/narabe";
const value: OpeningRule = "swap2";
console.log(value);swap2出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。