laidEnds関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A laid tile's two ends in the order it lies: the one touching the train, then the open one.
インポート
import { laidEnds } from "@johnmorrisdotca/domino";
定義
function laidEnds(laid: LaidDomino): [number, number]
引数
| 名前 | 型 | 説明 |
|---|---|---|
laid | number | An oriented tile number: from * 16 + to. |
戻り値
[number, number]
A laid tile's two ends in the order it lies: the one touching the train, then the open one.
例
import { laidAgainst, laidEnds, tileOf } from "@johnmorrisdotca/domino";
console.log(laidEnds(laidAgainst(tileOf(6,4),6)));[ 6, 4 ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。