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

starCampOffunction

Whose home point point lies in, or null outside both.

Import it

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

Definition

function starCampOf(radius: number, point: Point): Stone | null

Parameters

NameTypeDescription
radiusnumber

The Chinese Checkers star radius.

pointPoint

A zero-based row and column on the board.

Returns

Stone | null

The starting star-camp colour, or null outside both camps.

Examples

import { STAR_RADIUS, starCampOf } from "@johnmorrisdotca/narabe";

console.log(starCampOf(STAR_RADIUS,{row:0,col:8}));
null

What it prints (run when this page was built)

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