JavaScriptHTML/CSSUnicode Playing CardsTry it here →
The Mission
A minimalist poker hand generator and evaluator. Type a hand name or use arrow keys to cycle through hand types. Five hands deal simultaneously with animated card reveals, and the winning hand is highlighted automatically.
Key Engineering Challenges
Hand generation correctness: Each hand type (pair, two pair, straight, flush, etc.) is generated with explicit constraint logic to prevent accidental upgrades — e.g. a flush generator retries if the five cards accidentally form a straight flush.
Strength evaluation: A weighted scoring function ranks hands across all categories with tiebreaker logic for kickers, enabling accurate winner detection across five simultaneous random hands.