Reference · Rules, tiles and records
tileFacefunction
What a tile code shows, read without the word list: its letter or kana, its corner forms, and whether it is a wild.
Import it
import { tileFace } from "@johnmorrisdotca/kumimoji";
Definition
function tileFace(tile: string): TileFaceOf
Parameters
| Name | Type | Description |
|---|---|---|
tile | string | The internal tile code to describe. |
Returns
TileFaceOf
What a tile code shows, read without the word list: its letter or kana, its corner forms, and whether it is a wild.
Examples
import { tileFace } from "@johnmorrisdotca/kumimoji";
console.log(tileFace("A"));{ glyph: 'a', forms: '', wild: true, blank: false }What it prints (run when this page was built)