Blocktype
One filled cell: its run-local identity, its colour, and whether it is a stone a challenge asks to be cleared.
Import it
import type { Block } from "@johnmorrisdotca/houseki/tsumiki";
Definition
interface Block {
readonly id: number;
readonly colour: BlockColour;
readonly stone: boolean;
}
Members
| Name | Type | Description |
|---|---|---|
id | number | |
colour | BlockColour | |
stone | boolean |
Examples
import type { Block } from "@johnmorrisdotca/houseki/tsumiki";
const value: Block = { id: 1, colour: "red", stone: false };
console.log(value.colour);redWhat it prints (run when this page was built)