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

isStonefunction

Narrows a cell to a played stone, excluding empties and obstacles.

Import it

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

Definition

function isStone(cell: Cell): cell is Stone

Parameters

NameTypeDescription
cellCell

The board cell to check.

Returns

boolean

Narrows a cell to a played stone, excluding empties and obstacles.

Examples

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

console.log(isStone("black"));
true

What it prints (run when this page was built)

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