throwWorthfunction
What two cards thrown to a crib are worth to it, roughly: a pair, a fifteen, fives, and cards close enough to run.
Import it
import { throwWorth } from "@johnmorrisdotca/toranpu/cribbage";
Definition
function throwWorth([a, b]: readonly [CardId, CardId]): number
Parameters
| Name | Type | Description |
|---|---|---|
options | readonly [string, string] | Options for this call; omitted fields retain their documented defaults. |
Returns
number
What two cards thrown to a crib are worth to it, roughly: a pair, a fifteen, fives, and cards close enough to run.
Examples
import { throwWorth } from "@johnmorrisdotca/toranpu/cribbage";
console.log(throwWorth(["5H", "JS"]));3.5What it prints (run when this page was built)