Reference · Views, replay and player
Coordinatetype
Zero-based board location shared by engine actions and public views.
Import it
import type { Coordinate } from "@johnmorrisdotca/gunjin";
Definition
type Coordinate = {
x: number;
y: number;
};
Members
| Name | Type | Description |
|---|---|---|
x | number | |
y | number |
Examples
import type { Coordinate } from "@johnmorrisdotca/gunjin";
const value: Coordinate = {x:0,y:6};
console.log(value);{ x: 0, y: 6 }What it prints (run when this page was built)