Reference · Tiles, layouts and deals
setInventoryfunction
The whole set as an inventory: each of the 42 faces and how many of it the 144 tiles hold.
Import it
import { setInventory } from "@johnmorrisdotca/jarajara";
Definition
function setInventory(): { face: MahjongFace; copies: number; }[]
Returns
{ face: MahjongFace; copies: number; }[]
The whole set as an inventory: each of the 42 faces and how many of it the 144 tiles hold.
Examples
import { setInventory } from "@johnmorrisdotca/jarajara";
console.log(setInventory().reduce((n,row)=>n+row.copies,0));144What it prints (run when this page was built)