Skip to the content

Narabe並べ

Play forty-eight abstract board games through immutable moves, legal choices and replayable records.

Narabe means arranging in Japanese, as in gomoku-narabe: five in a row. About the name

Contents

Reference · Rules and records

WinReasontype

How a won game was won. Null while nobody has. trap is the loser's doing: they made the line the rules forbid. square is four in a 2×2. blocked is the checkers family: the colour to move has no legal move left, whether because it has no pieces or because every one of them is shut in.

Import it

import type { WinReason } from "@johnmorrisdotca/narabe";

Definition

type WinReason = "line" | "captures" | "time" | "resign" | "trap" | "square" | "full" | "count" | "camp" | "connection" | "blocked" | "territory";

Examples

import type { WinReason } from "@johnmorrisdotca/narabe";

const value: WinReason = "territory";
console.log(value);
territory

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/narabe 1.3.0.