Actiontype
One move: a piece from the tray, placed with its top left on a cell.
Import it
import type { Action } from "@johnmorrisdotca/houseki/tsumiki";
Definition
type Action = {
readonly kind: "place";
readonly slot: number;
readonly row: number;
readonly column: number;
};
Members
| Name | Type | Description |
|---|---|---|
kind | "place" | |
slot | number | |
row | number | |
column | number |
Examples
import type { Action } from "@johnmorrisdotca/houseki/tsumiki";
const value: Action = { kind: "place", slot: 0, row: 2, column: 3 };
console.log(value.kind);placeWhat it prints (run when this page was built)