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
| Name | Type | Description |
|---|---|---|
radius | number | The Chinese Checkers star radius. |
point | Point | 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}));nullWhat it prints (run when this page was built)