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

otherStonefunction

The other stone colour.

Import it

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

Definition

function otherStone(stone: Stone): Stone

Parameters

NameTypeDescription
stoneStone

The black or white colour being examined.

Returns

Stone

The other stone colour.

Examples

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

console.log(otherStone("black"));
white

What it prints (run when this page was built)

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