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

campSizefunction

Pieces a side has on size: the squares of its camp.

Import it

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

Definition

function campSize(size: number): number

Parameters

NameTypeDescription
sizenumber

The number of cells on each side of the board.

Returns

number

Pieces a side has on size: the squares of its camp.

Examples

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

console.log(campSize(8));
10

What it prints (run when this page was built)

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