Reference · Tile and table elements
RackDetailtype
How the rack lies, for the page to hear of: what is turned, raised and marked (by place in tiles), and how the tiles are put in order.
Import it
import type { RackDetail } from "@johnmorrisdotca/jarajara/element";
Definition
type RackDetail = {
tiles: string[];
faceDown: boolean;
turned: number[];
lifted: number[];
marked: number[];
order: TileOrder;
group: TileGrouping | null;
};
Members
| Name | Type | Description |
|---|---|---|
tiles | string[] | |
faceDown | boolean | |
turned | number[] | |
lifted | number[] | |
marked | number[] | |
order | TileOrder | |
group | TileGrouping | null |
Examples
import type { RackDetail } from "@johnmorrisdotca/jarajara/element";
const value: RackDetail = {tiles:["a","b","c"],faceDown:false,turned:[],lifted:[],marked:[],order:"dealt",group:null};
console.log(value);{
tiles: [ 'a', 'b', 'c' ],
faceDown: false,
turned: [],
lifted: [],
marked: [],
order: 'dealt',
group: null
}What it prints (run when this page was built)