passOffset関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How far round the table the cards go this deal: 1 to the left, seats − 1 to the right, 2 across, 0 held.
インポート
import { passOffset } from "@johnmorrisdotca/toranpu/hearts";
定義
function passOffset(deal: number, seats: number): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
deal | number | The deal number or dealing specification. |
seats | number | The seat count or seat state supplied by this API. |
戻り値
number
How far round the table the cards go this deal: 1 to the left, seats − 1 to the right, 2 across, 0 held.
例
import { passOffset } from "@johnmorrisdotca/toranpu/hearts";
console.log(passOffset(0, 4));1出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。