DEV NOTE
Indian PokerIndian Poker AI dev notes
The AI cannot see its own card either.
Indian Poker is a 1:1 betting game with two sets of cards 1–10 (20 cards). Each player shows one card to the opponent only, as if stuck on the forehead, and never sees their own. Folding while holding a 10 costs a 10-chip penalty. You start with 20 chips and both players ante 1 each hand.
The AI had to be fair: it does not know its own card either, and sees only yours, the cards gone by, the bets and the stacks. This note shows how it turns that into odds, and what each level was made to do less of.
Published · 2026-11-26 · Last updated · 2026-11-27
Counting the odds
Indian Poker went live on the afternoon of 18 November, together with Gyulhap. The AI starts from plain probability: it cannot see its card but can see yours, so its chance to win is the share of remaining cards higher than yours (equal ones count half).
How well it knows "the remaining cards" is the first difference between levels, since used cards change the deck. Hard uses the exact remaining distribution (100% of the used cards), Normal 75% and Easy only 15% (the rest of the time it imagines the full 20 cards). The chance of holding a 10 is computed the same way, and the bigger the risk of folding a 10, the less readily it folds.
Fold, call or raise
The estimate (odds plus a little noise) is compared with a fold line: the pot odds, plus a bit for how much of its stack the call takes, minus a bit if your stack is 6 or less, minus the risk of folding a 10. Below the line, it folds.
- When it must open (no check), below 0.58 it bets the minimum; facing a bet, below 0.62 it only calls.
- Higher, it raises: 78% of the pot above 0.82, 48% above 0.67, otherwise its level’s aggression (Easy 25%, Normal 45%, Hard 65%).
- It bluffs more when your card is weak (4 or less, ×1.35), and with a credible medium size (35%) rather than all-in.
| Easy | Normal | Hard | |
|---|---|---|---|
| Sound decisions | 30% | 66% | 96% |
| Used cards counted | 15% | 75% | 100% |
| Estimate noise | ±0.14 | ±0.06 | ±0.015 |
| Base bluff chance | 24% | 14% | 11% |
| Reading your bets | 0 | 0.25 | 0.6 |
Even an unsound decision is not random. The code calls it "deliberately plausible": folding good pot odds, or pushing too many chips into a bad visible card — the shape of mistakes people really make.
Your bets as a hint about its card
At the 20 November check Hard was weaker than planned: people beat it about half the time, and 65% on their first try. It was throwing away one key piece of information. People bet looking at the AI’s card, so a big raise means its card is probably low, and a quiet check that it is probably high.
So the AI now reads your bet as a hint: the bigger the call relative to the pot, the more its odds are marked down (up to 0.22), and a check into a pot that has already grown adds 0.04. People bluff too, so the hint only counts as far as the level reads (Easy 0, Normal 0.25, Hard 0.6).
Why the target win rates left the buttons
The level buttons show the AI’s win rate. At first they showed the design targets (AI wins: Easy 20%, Normal 50%, Hard 75%). On 26 November the records said 41% of 338 Normal matches and 55% of 478 Hard ones. The conclusion in the code comment: the cards decide a large share of every match, so a stronger AI still would not reach 75%. The buttons now follow the records — Normal 40%, Hard 55% — with Easy at 25%. Two-Sided Poker got the same change that day.
For the same reason, wins in Indian Poker and Russian Roulette stopped counting toward the "piece race" from 20 November: luck plays too big a part.
Real win rates
Signed-in players’ games against the AI as of 2026-11-26, 14:00 KST.
| Level | Human win rate | Matches |
|---|---|---|
| Easy | 40.0% | 10 |
| Normal | 59.3% | 376 |
| Hard | 45.1% | 501 |
Indian Poker has the most Hard-AI clear certificates of any game — 94 players. With so much luck, the bar for beating Hard once is low. Counting everyone, it had been played 3,827 times: 2,033 against the AI and 1,794 between friends, an unusually high share of friend games.
11/27: ten personalities, and an AI that reads your bets
From 27 November every AI match draws one of ten personalities. The win-chance calculation (counting the remaining deck) is the same for all; a personality only changes its bluff rate, raise sizes, a lean around the fold line (±0.04) and how often it just calls with a strong hand (slow play). Some change with the situation: the Chaser turns aggressive when behind on chips, the Fast Starter storms the first six hands. Each match the strength of the style varies a little with a seed, and 8% of decisions drop the style on purpose.
- Hard no longer makes deliberate slips. The old hard AI got 4% of its decisions plausibly wrong on purpose (quality .96) and added noise to its estimate. With personalities doing the mixing, hard personalities play without slips.
- The "raise big and it folds" hole is closed. The old AI always read a big raise as "my card is low" by the same amount (60% on hard), so raising big into its high card made it fold. Now, from the cards revealed after each hand, it measures how your bets moved against its card (a correlation) and sets the read from that: stronger against honest bettors, turned around against someone who bets big into high cards.
- Over 1,500 matches each against the previous hard AI the personalities scored 49.3–56.5% (50% = equal, ±3 points noise). In a league among themselves they ranged from 44.6% (the Bluffer) to 52.8% (the Careful One): none hopeless, none dominant.
Levels stay as they were. Easy and normal play the same personality with their usual memory and judgement slips on top, scoring 20.6% and 28.7% against the previous hard AI (the old easy and normal: 21.1% and 29.7%), so the order holds. With hard playing without slips, the hard win rate on its button (about 55%) may rise a little; it will be re-measured from new records.
Gaps a human can use
They count cards poorly
They count only 15% (Easy) or 75% (Normal) of the used cards. When many 10s and high cards are already gone, the AI overrates its odds.
Turn its reading around
Hard takes a big bet as 60% evidence that its card is low. Raise big even when its card is high and it may fold. Check quietly when its card is low and it grows more confident.
The 10-penalty maths
The more 10s left in the deck, the lower its fold line. Once the 10s are gone it folds easily, so pressure works better late.
Stubborn against a short stack
When you have 6 chips or fewer it lowers its fold line and holds on. Bluffing from a short stack works poorly.
Where this comes from
This note is written only from the code, the commit history and the aggregate numbers below.
- `src/lib/indianPoker.ts` — POKER_AI_TARGET, choosePokerAiAction (profile, equity, hint, foldLine, raise sizing)
- Commits 4f49cd6 (11/18 Gyulhap and Indian Poker), 1fe2d84 (11/20 reading bets, out of the piece race), 511bafb (11/24 one-chip ante), e227318 (11/26 recorded win rates on the buttons)
- DB aggregates (2026-11-26 14:22 KST): game_results (game = indian_poker, mode = ai) win rate by level, hard_clears per game, game_plays_daily totals by game and mode
Read next
- How the Wallgo AI plays
From a reach-first territory estimate to alpha-beta with a transposition table: what each Wallgo AI level computes, and where it is weak.
- 12 Janggi AI dev notes
Why a 7-ply Hard was almost unbeatable and went down to 5, the no-third-repetition ban, and a Very Hard that reads 13–19 plies.
- Russian Janggi AI dev notes
Even the Very Hard engine that reads to the end must lose to a first-move large cup in the centre — and how that shaped the AI and its win rate.