TurnChoicestype
What the colour to move may do this turn, as the engine answers it — see turnChoices.
Import it
import type { TurnChoices } from "@johnmorrisdotca/narabe";
Definition
type TurnChoices = {
kind: "move";
pieces: Point[];
count: number;
narrowedBy: MoveNarrowing | null;
} | {
kind: "place";
points: Point[];
count: number;
};
Examples
import type { TurnChoices } from "@johnmorrisdotca/narabe";
const value: TurnChoices = {kind:"place",points:[{row:7,col:7}],count:1};
console.log(value);{ kind: 'place', points: [ { row: 7, col: 7 } ], count: 1 }What it prints (run when this page was built)