bigTwoValuefunction
What these cards are worth played together, or null for cards that make no play.
Import it
import { bigTwoValue } from "@johnmorrisdotca/toranpu/big-two";
Definition
function bigTwoValue(cards: readonly CardId[]): BigTwoValue | null
Parameters
| Name | Type | Description |
|---|---|---|
cards | readonly string[] | The cards in their current order. |
Returns
BigTwoValue | null
What these cards are worth played together, or null for cards that make no play.
Examples
import { bigTwoValue } from "@johnmorrisdotca/toranpu/big-two";
console.log(bigTwoValue(["3D", "3C"]));{ kind: 'pair', size: 2, strength: 1 }What it prints (run when this page was built)