PieceCelltype
One cell of a multi-cell piece, with the colour it carries.
Import it
import type { PieceCell } from "@johnmorrisdotca/narabe";
Definition
type PieceCell = Point & {
stone: Stone;
};
Members
| Name | Type | Description |
|---|---|---|
row | number | |
col | number | |
stone | Stone |
Examples
import type { PieceCell } from "@johnmorrisdotca/narabe";
const value: PieceCell = {row:7,col:7,stone:"black"};
console.log(value);{ row: 7, col: 7, stone: 'black' }What it prints (run when this page was built)