Celltype
A visible or hidden board coordinate.
Import it
import type { Cell } from "@johnmorrisdotca/houseki/colour-chains";
Definition
interface Cell {
readonly x: number;
readonly y: number;
}
Members
| Name | Type | Description |
|---|---|---|
x | number | |
y | number |
Examples
import type { Cell } from "@johnmorrisdotca/houseki/colour-chains";
const value: Cell = {x:0,y:0};
console.log(value == null ? value : typeof value === "object" ? Object.keys(value).slice(0,6) : value);[ 'x', 'y' ]What it prints (run when this page was built)