Reference · Rules, tiles and records
kumimojiWildCountfunction
Wilds scale with the bag; doubling the tile set doubles the wild count too.
Import it
import { kumimojiWildCount } from "@johnmorrisdotca/kumimoji";
Definition
function kumimojiWildCount(hand: number, level: "easy" | "medium" | "hard", totalTiles: number): number
Parameters
| Name | Type | Description |
|---|---|---|
hand | number | The hand size or tile codes, as declared by the function signature. |
level | "easy" | "medium" | "hard" | The difficulty that determines the wildcard allowance. |
totalTiles | number | The total number of physical tiles in this bag. |
Returns
number
Wilds scale with the bag; doubling the tile set doubles the wild count too.
Examples
import { kumimojiWildCount, kumimojiTileCount } from "@johnmorrisdotca/kumimoji";
console.log(kumimojiWildCount(7,"easy",kumimojiTileCount(7,"short")));6What it prints (run when this page was built)