Reference · Tiles, Mexican Train and replay
pipsOffunction
Every pip on a tile: what it counts against its holder when a round ends.
Import it
import { pipsOf } from "@johnmorrisdotca/domino";
Definition
function pipsOf(tile: Domino): number
Parameters
| Name | Type | Description |
|---|---|---|
tile | number | A canonical tile number: low * 16 + high. |
Returns
number
Every pip on a tile: what it counts against its holder when a round ends.
Examples
import { pipsOf, tileOf } from "@johnmorrisdotca/domino";
console.log(pipsOf(tileOf(6,4)));10What it prints (run when this page was built)