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

nextBoardSizefunction

The next size up, or null when the board is already the largest. A game played on boards of its own — the flipping games, on 4, 6 and 8 — grows through its own list rather than the go sizes.

Import it

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

Definition

function nextBoardSize(size: number, sizes?: readonly number[]): number | null

Parameters

NameTypeDescription
sizenumber

The number of cells on each side of the board.

sizes (optional)readonly number[]

The supported side lengths in ascending order.

Returns

number | null

The next supported size, or null at the largest size.

Examples

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

console.log(nextBoardSize(9,[9,13,19]));
13

What it prints (run when this page was built)

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