Skip to content

PokerHand

Defined in: cards/poker.ts:35

The result of evaluateHand.

readonly best: ("2S" | "2H" | "2D" | "2C" | "3S" | "3H" | "3D" | "3C" | "4S" | "4H" | "4D" | "4C" | "5S" | "5H" | "5D" | "5C" | "6S" | "6H" | "6D" | "6C" | "7S" | "7H" | "7D" | "7C" | "8S" | "8H" | "8D" | "8C" | "9S" | "9H" | "9D" | "9C" | "AS" | "AH" | "AD" | "AC" | "TS" | "TH" | "TD" | "TC" | "JS" | "JH" | "JD" | "JC" | "QS" | "QH" | "QD" | "QC" | "KS" | "KH" | "KD" | "KC")[]

Defined in: cards/poker.ts:49

The five cards that make the hand, most significant first: the group cards before the kickers (KKK77, QQ J 9 4), straights from the top card down, and the wheel as 5 4 3 2 A.


readonly category: HandCategory

Defined in: cards/poker.ts:37

The hand's category.


readonly description: string

Defined in: cards/poker.ts:51

An English description such as "Full house, Kings over Sevens".


readonly rank: number

Defined in: cards/poker.ts:43

The hand's strength as one integer: a higher rank always wins and equal ranks tie. It orders first by category, then by the tiebreak ranks. Compare ranks from this library version only; the encoding is not a stable format.