Pointtype
Zero-based board coordinates. Row 0 is the top, column 0 is the left.
Import it
import type { Point } from "@johnmorrisdotca/narabe";
Definition
type Point = {
row: number;
col: number;
};
Members
| Name | Type | Description |
|---|---|---|
row | number | |
col | number |
Examples
import type { Point } from "@johnmorrisdotca/narabe";
const value: Point = {row:7,col:7};
console.log(value);{ row: 7, col: 7 }What it prints (run when this page was built)