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

FIRST_PLAYERSconstant

The supported opening colours and random opener choice.

Import it

import { FIRST_PLAYERS } from "@johnmorrisdotca/narabe";

Definition

const FIRST_PLAYERS: { readonly black: "black"; readonly white: "white"; readonly random: "random"; } = {
    black: "black",
    white: "white",
    random: "random",
} as const satisfies Record<FirstPlayer, FirstPlayer>

Members

NameTypeDescription
black"black"
white"white"
random"random"

Examples

import { FIRST_PLAYERS } from "@johnmorrisdotca/narabe";
console.log(FIRST_PLAYERS);
{ black: 'black', white: 'white', random: 'random' }

What it prints (run when this page was built)

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