tileOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The tile with these two ends, whichever order they are given in.
インポート
import { tileOf } from "@johnmorrisdotca/domino";
定義
function tileOf(a: number, b: number): Domino
引数
| 名前 | 型 | 説明 |
|---|---|---|
a | number | The first pip value, from 0 to the set maximum. |
b | number | The second pip value, from 0 to the set maximum. |
戻り値
number
The tile with these two ends, whichever order they are given in.
例
import { tileOf } from "@johnmorrisdotca/domino";
console.log(tileOf(6,4));70出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。