Reference · Rules, tiles and records
LengthRowtype
One length of game at one opening hand: how many tiles it deals from one set and from two, and how many of them are wild at each level.
Import it
import type { LengthRow } from "@johnmorrisdotca/kumimoji";
Definition
type LengthRow = {
length: KumimojiLength;
tiles: number;
doubleTiles: number;
wilds: Record<"easy" | "medium" | "hard", number>;
};
Members
| Name | Type | Description |
|---|---|---|
length | KumimojiLength | |
tiles | number | |
doubleTiles | number | With the Double set, English only. |
wilds | Record<"easy" | "medium" | "hard", number> |
Examples
import type { LengthRow } from "@johnmorrisdotca/kumimoji";
import { lengthRows } from "@johnmorrisdotca/kumimoji";
const value: LengthRow = lengthRows(7)[0];
console.log(value);{
length: 'short',
tiles: 40,
doubleTiles: 80,
wilds: { easy: 6, medium: 3, hard: 0 }
}What it prints (run when this page was built)