untpoker
Contents / Chapter 02
Chapter 02
POKER FROM FIRST PRINCIPLES

Hand rankings and combinatorics

2.1 The ranking ladder

RankCategoryExampleWhat it means
1Straight flush9-T-J-Q-K, same suitFive consecutive ranks, all one suit.
2Four of a kindQ-Q-Q-Q-5Four cards of one rank.
3Full house9-9-9-K-KThree of one rank plus a pair.
4FlushA-J-8-5-2, same suitFive cards of one suit, not consecutive.
5Straight5-6-7-8-9Five consecutive ranks, mixed suits allowed.
6Three of a kind8-8-8-K-3Three cards of one rank.
7Two pairA-A-6-6-QTwo different pairs.
8One pairJ-J-A-8-4One pair.
9High cardA-J-9-6-3No stronger category; compare highest cards in order.

A so-called royal flush is simply the highest possible straight flush. It does not need a separate mathematical category.

2.2 Tiebreaking

Within a category, compare the feature that defines the category first. For pairs, compare pair rank, then remaining kickers from highest to lowest. For two pair, compare the higher pair, then lower pair, then kicker. For straights, compare the highest card in the straight. For full houses, compare the trip rank first. Identical best five-card hands split the pot.

2.3 Why categories have this order

From a combinatorial point of view, poker hands are equivalence classes of five-card subsets. There are C(52,5) = 2,598,960 distinct five-card combinations. Categories that are harder to realize appear higher in the ranking. You do not need the exact frequency table to play, but the ordering is not arbitrary: it is a rarity ordering induced by the deck structure.

Combinatorial baseline

C(52,5) = 2,598,960 possible unordered five-card hands

2.4 Made hands, draws, and relative strength

A made hand is a hand that already has showdown value: a pair, two pair, a straight, and so on. A draw is a current hand that can improve substantially if certain future cards arrive. The same holding can be both. For example, a pair plus a flush draw is a made hand and a draw simultaneously.

The more important distinction is absolute versus relative strength. Top pair may be very strong on K-7-3 against one opponent and much less comfortable on K-Q-J-T against several opponents. Poker hand strength is conditional on the board and the opponent distribution, not just on the category label.

Mathematical lens

Think of a hand category as a feature of the realized state, not as a utility by itself. Utility comes from how that state performs against the opponent's conditional distribution.

UNTPOKER · AN INDEPENDENT EDUCATIONAL GUIDE