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

quadrantCountfunction

How many quadrants a board of this size holds.

Import it

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

Definition

function quadrantCount(size: number, quadrantSize: number): number

Parameters

NameTypeDescription
sizenumber

The number of cells on each side of the board.

quadrantSizenumber

The number of cells on each side of a quadrant.

Returns

number

How many quadrants a board of this size holds.

Examples

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

console.log(quadrantCount(6,3));
4

What it prints (run when this page was built)

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