Reference · Pipes, rules and solving
BigOnBoardtype
One big piece on a board: its top left cell, which of the 699 shapes it is, and how many quarters clockwise from the shape's own facing it is turned.
Import it
import type { BigOnBoard } from "@johnmorrisdotca/suido";
Definition
type BigOnBoard = {
anchor: number;
shape: BigShape;
quarters: number;
};
Members
| Name | Type | Description |
|---|---|---|
anchor | number | |
shape | BigShape | |
quarters | number |
Examples
import type { BigOnBoard } from "@johnmorrisdotca/suido";
import { BIG_SHAPES } from "@johnmorrisdotca/suido";
const value: BigOnBoard = {anchor:0,shape:BIG_SHAPES[0],quarters:0};
console.log(value);{
anchor: 0,
shape: {
id: '2c96',
masks: [ 2, 12, 9, 6 ],
pipes: 1,
openings: 1,
family: '1',
named: null
},
quarters: 0
}What it prints (run when this page was built)