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

isDarkSquarefunction

Checkers is played on one colour of square only: the board's own dark squares.

Import it

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

Definition

function isDarkSquare(point: Point): boolean

Parameters

NameTypeDescription
pointPoint

A zero-based row and column on the board.

Returns

boolean

Checkers is played on one colour of square only: the board's own dark squares.

Examples

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

console.log(isDarkSquare({row:0,col:1}));
true

What it prints (run when this page was built)

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