Reference · Rules, tiles and records
TileFaceOftype
What a tile shows: what tileFace answers.
Import it
import type { TileFaceOf } from "@johnmorrisdotca/kumimoji";
Definition
type TileFaceOf = {
glyph: string;
forms: string;
wild: boolean;
blank: boolean;
};
Members
| Name | Type | Description |
|---|---|---|
glyph | string | The letter or kana printed on it: 五 on a wild nobody has given one. |
forms | string | The other forms it plays as, small in its corner ( |
wild | boolean | Whether it is a wild tile, given a letter or not. |
blank | boolean | A wild with no letter yet. |
Examples
import type { TileFaceOf } from "@johnmorrisdotca/kumimoji";
import { tileFace } from "@johnmorrisdotca/kumimoji";
const value: TileFaceOf = tileFace("A");
console.log(value);{ glyph: 'a', forms: '', wild: true, blank: false }What it prints (run when this page was built)