BoardSquaretype
One square of the board drawn.
Import it
import type { BoardSquare } from "@johnmorrisdotca/kumimoji/ui";
Definition
type BoardSquare = {
square: string;
row: number;
col: number;
tile: string | null;
glyph: string;
wild: boolean;
mark: TileMark | null;
};
Members
| Name | Type | Description |
|---|---|---|
square | string | Its key, |
row | number | |
col | number | |
tile | string | null | The tile standing there, or null for an empty square. |
glyph | string | What is printed on the tile; "" for an empty square. |
wild | boolean | Whether the tile is a wild. |
mark | TileMark | null | How the tile stands; null for an empty square, or with no verdict. |
Examples
import type { BoardSquare } from "@johnmorrisdotca/kumimoji/ui";
const value: BoardSquare = {square:"0,0",row:0,col:0,tile:"c",glyph:"c",wild:false,mark:null};
console.log(value);{
square: '0,0',
row: 0,
col: 0,
tile: 'c',
glyph: 'c',
wild: false,
mark: null
}What it prints (run when this page was built)