Reference · Rules, tiles and records
partyTilesNeededfunction
The tiles a bag must hold for this many players: a hand each and one round of draws.
Import it
import { partyTilesNeeded } from "@johnmorrisdotca/kumimoji";
Definition
function partyTilesNeeded(players: number, hand: number): number
Parameters
| Name | Type | Description |
|---|---|---|
players | number | The requested player count or current player rows. |
hand | number | The hand size or tile codes, as declared by the function signature. |
Returns
number
The tiles a bag must hold for this many players: a hand each and one round of draws.
Examples
import { partyTilesNeeded } from "@johnmorrisdotca/kumimoji";
console.log(partyTilesNeeded(2,3));8What it prints (run when this page was built)