bigTwoChargefunction
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 it
import { bigTwoCharge } from "@johnmorrisdotca/toranpu/big-two";
Definition
function bigTwoCharge(left: number): number
Parameters
| Name | Type | Description |
|---|---|---|
left | number | The remaining hand or the first comparison value. |
Returns
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.
Examples
import { bigTwoCharge } from "@johnmorrisdotca/toranpu/big-two";
console.log(bigTwoCharge(13));39What it prints (run when this page was built)