Reference · Rules, tiles and records
kumimojiTileCountfunction
Tile count for a selected length and inventory size. Double supplies two sets.
Import it
import { kumimojiTileCount } from "@johnmorrisdotca/kumimoji";
Definition
function kumimojiTileCount(hand: number, length: KumimojiLength, setSize?: number, doubleSet?: boolean): number
Parameters
| Name | Type | Description |
|---|---|---|
hand | number | The hand size or tile codes, as declared by the function signature. |
length | KumimojiLength | The game length or decoded word length, as declared. |
setSize (optional) | number | The number of physical tiles in the language set. |
doubleSet (optional) | boolean | Whether to use two English tile sets. |
Returns
number
Tile count for a selected length and inventory size. Double supplies two sets.
Examples
import { kumimojiTileCount } from "@johnmorrisdotca/kumimoji";
console.log(kumimojiTileCount(7,"short"));40What it prints (run when this page was built)