bigTwoCharge関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What a hand left in is charged when somebody goes out: a point a card, double for ten or more, treble for thirteen or more.
インポート
import { bigTwoCharge } from "@johnmorrisdotca/toranpu/big-two";
定義
function bigTwoCharge(left: number): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
left | number | The remaining hand or the first comparison value. |
戻り値
number
What a hand left in is charged when somebody goes out: a point a card, double for ten or more, treble for thirteen or more.
例
import { bigTwoCharge } from "@johnmorrisdotca/toranpu/big-two";
console.log(bigTwoCharge(13));39出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。