Reference · Rules, tiles and records
tableTallyfunction
A table's tiles as one string in order, wherever they stand: what a turn compares to see whether anything was laid or lifted.
Import it
import { tableTally } from "@johnmorrisdotca/kumimoji";
Definition
function tableTally(tiles: Tiles): string
Parameters
| Name | Type | Description |
|---|---|---|
tiles | Tiles | The map from row,column square names to internal tile codes. |
Returns
string
A table's tiles as one string in order, wherever they stand: what a turn compares to see whether anything was laid or lifted.
Examples
import { tableTally } from "@johnmorrisdotca/kumimoji";
const tiles = new Map([["0,0","c"],["0,1","a"],["0,2","t"]]);
console.log(tableTally(tiles));actWhat it prints (run when this page was built)