tileWords関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A tile as a person reads it: "6–4", the larger end first, as a tile is named at the table.
インポート
import { tileWords } from "@johnmorrisdotca/domino";
定義
function tileWords(tile: Domino): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
tile | number | A canonical tile number: low * 16 + high. |
戻り値
string
A tile as a person reads it: "6–4", the larger end first, as a tile is named at the table.
例
import { tileOf, tileWords } from "@johnmorrisdotca/domino";
console.log(tileWords(tileOf(6,4)));6–4出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。