Reference · Tiles, layouts and deals
pairPointsfunction
WHAT A PAIR IS WORTH AT THE TABLE (table.ts): the plain suit tiles one,
the ones and nines two, the winds three and the dragons four — the honours
and terminals are the tiles a mahjong hand prizes — and a flower or season
pair two, with another turn, as a bonus tile draws again in the full game.
Import it
import { pairPoints } from "@johnmorrisdotca/jarajara";
Definition
function pairPoints(code: string): number
Parameters
| Name | Type | Description |
|---|---|---|
code | string | The one-character face code or tile identifier. |
Returns
number
WHAT A PAIR IS WORTH AT THE TABLE (table.ts): the plain suit tiles one, the ones and nines two, the winds three and the dragons four — the honours and terminals are the tiles a mahjong hand prizes — and a flower or season pair two, with another turn, as a bonus tile draws again in the full game.
Examples
import { pairPoints } from "@johnmorrisdotca/jarajara";
console.log(pairPoints("F"));4What it prints (run when this page was built)