Reference · Tiles, layouts and deals
MahjongCellstype
The tiles as they lie: a face code for each slot of the layout, "." where the tile has been taken. The same string the givens are written as.
Import it
import type { MahjongCells } from "@johnmorrisdotca/jarajara";
Definition
type MahjongCells = string;
Examples
import { generateAwase } from "@johnmorrisdotca/jarajara/awase";
import type { MahjongCells } from "@johnmorrisdotca/jarajara";
const deal = generateAwase(4,"easy",2026);
const cells = deal.givens;
const value: MahjongCells = cells;
console.log(value);xPNxDBBDWhat it prints (run when this page was built)