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
| Name | Type | Description |
|---|---|---|
point | Point | 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}));trueWhat it prints (run when this page was built)