OpeningRuletype
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 it
import type { OpeningRule } from "@johnmorrisdotca/narabe";
Definition
type OpeningRule = "free" | "pro" | "longPro" | "swap" | "swap2" | "rif" | "sakata" | "tarannikov";
Examples
import type { OpeningRule } from "@johnmorrisdotca/narabe";
const value: OpeningRule = "swap2";
console.log(value);swap2What it prints (run when this page was built)