Reference · Boards, rules and challenges
Celltype
A hole's stable coordinate within a board shape, independent of its drawing.
Import it
import type { Cell } from "@johnmorrisdotca/tobiishi";
Definition
type Cell = Readonly<{
x: number;
y: number;
}>;
Members
| Name | Type | Description |
|---|---|---|
x | number | |
y | number |
Examples
import type { Cell } from "@johnmorrisdotca/tobiishi";
const value: Cell = {x:0,y:0};
console.log(value);{ x: 0, y: 0 }What it prints (run when this page was built)