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

RuleVarianttype

The named rule sets. Each is described as data in VARIANT_SPECS, so the engine reads a spec rather than switching on the name.

freestyle: five or more in a row wins. standard: exactly five wins; an overline (six or more) does not. renju: black is forbidden the double three, double four and overline. omok: the double three is forbidden for both sides; overlines win. caro: exactly five wins, and not when blocked at both ends. ninuki: five in a row wins, and so does capturing five pairs. connect6: two stones a turn, six in a row wins.

Import it

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

Definition

type RuleVariant = "freestyle" | "standard" | "renju" | "omok" | "caro" | "ninuki" | "connect6" | "tictactoe" | "trapThree" | "dropFour" | "twistFive" | "twistFour" | "squareFour" | "ringDrop" | "holeDrop" | "hotDrop" | "clearDrop" | "giveawayDrop" | "edgeDrop" | "dominoFive" | "blockFive" | "sannuki" | "wormDrop" | "misereFive" | "makerBreaker" | "wildTicTacToe" | "notakto" | "toroidalFive" | "reversi" | "classicReversi" | "antiReversi" | "miniReversi" | "grandReversi" | "honeycomb" | "halma" | "hex" | "hexFive" | "obstacleFive" | "rockfall" | "scatteredRocks" | "checkers" | "internationalDraughts" | "brazilianDraughts" | "canadianCheckers" | "russianDraughts" | "poolCheckers" | "chineseCheckers" | "go";

Examples

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

const value: RuleVariant = "reversi";
console.log(value);
reversi

What it prints (run when this page was built)

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