writeNotation関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Tiles written the way hands are: digits then a suit letter, 123m456p789s1112z. Runs of one suit share its
letter. Anything that is no tile is left out. readNotation is its inverse.
インポート
import { writeNotation } from "@johnmorrisdotca/jarajara";
定義
function writeNotation(codes: Iterable<string>): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
codes | Iterable<string> | The tile face codes in current order. |
戻り値
string
Tiles written the way hands are: digits then a suit letter, 123m456p789s1112z. Runs of one suit share its letter. Anything that is no tile is left out. readNotation is its inverse.
例
import { writeNotation } from "@johnmorrisdotca/jarajara";
console.log(writeNotation(["a","b","c"]));123m出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。