How this works / sources
Shuffle
Each hand uses a fresh 52-card deck shuffled with the Fisher–Yates algorithm, driven by the browser’s cryptographic random generator crypto.getRandomValues with rejection sampling so every ordering is equally likely.
Rules implemented
No-limit Texas Hold’em: the dealer button moves one seat clockwise each hand; small and big blinds are posted to its left (heads-up, the button posts the small blind and acts first before the flop, last after it). Betting rounds: pre-flop, flop (3 cards), turn and river, with a burn card before each. A bet or raise must be at least the big blind and at least the size of the previous bet or raise in that round. An all-in that is less than a full raise does not reopen betting for players who have already acted. Uncalled bets are returned. When players are all-in for different amounts, side pots are built so each player can only win from each opponent what they put in. Split pots are divided equally; an odd chip goes to the first winner clockwise from the button.
Hand evaluator
The best five of seven cards is ranked: straight flush > four of a kind > full house > flush > straight (A-2-3-4-5 is the lowest straight) > three of a kind > two pair > pair > high card, with kickers compared in order. It is checked by an automated test suite (known hands, all 2,598,960 five-card hands counted by category, and 20,000 random seven-card hands against an independent brute-force evaluator).
Coach maths
Pot odds = amount to call ÷ (pot + amount to call). If your equity is above that number, a call wins chips in the long run against those exact ranges, ignoring future betting. Equity is estimated from 3,000 random run-outs.
Bots
Bots are simple: they estimate their own equity the same way and compare it with the pot odds, with some randomness. They never see your cards.
Sources