Reference · Tiles, Mexican Train and replay
tileOffunction
The tile with these two ends, whichever order they are given in.
Import it
import { tileOf } from "@johnmorrisdotca/domino";
Definition
function tileOf(a: number, b: number): Domino
Parameters
| Name | Type | Description |
|---|---|---|
a | number | The first pip value, from 0 to the set maximum. |
b | number | The second pip value, from 0 to the set maximum. |
Returns
number
The tile with these two ends, whichever order they are given in.
Examples
import { tileOf } from "@johnmorrisdotca/domino";
console.log(tileOf(6,4));70What it prints (run when this page was built)