Teen Patti is a three-card game that many Indian families play around Diwali. Variations such as AK47 or Joker change which cards are wild, and that changes the odds far more than most players expect.

A 52-card deck has only 22,100 three-card hands, so there is no need to simulate. We can simply count all of them.

The idea

Give each hand a category, best first: Trail (three of a kind), Pure Sequence, Sequence, Colour, Pair, High Card.

def category(hand): # hand = three (rank, suit) tuples, Ace = 14 ranks = [r for r, _ in hand] distinct = len(set(ranks)) flush = len({s for _, s in hand}) == 1 run = distinct == 3 and set(ranks) in RUNS # RUNS includes A-2-3 if distinct == 1: return 0 if run and flush: return 1 if run: return 2 if flush: return 3 return 4 if distinct == 2 else 5 

For wild cards, try every card the wild one could stand for and keep the best result:

best = min(category(fixed + extra) for extra in product(DECK, repeat=wilds)) 

With two or more wild cards the answer is always a Trail, which saves a lot of work.

Rules

Variation Rule Hands counted
Classic No jokers 22,100
AK47 Every Ace, King, 4 and 7 is wild 22,100
Lowest Joker Your lowest card is wild (both, if a pair) 22,100
Highest Joker Your highest card is wild (both, if a pair) 22,100
Best of Four Four cards dealt, best three count 270,725

Results

Hand Classic AK47 Lowest Joker Highest Joker Best of Four
Trail 0.24% 26.15% 17.18% 17.18% 0.93%
Pure Sequence 0.22% 3.24% 8.83% 8.76% 0.85%
Sequence 3.26% 10.37% 26.50% 26.28% 10.73%
Colour 4.96% 8.71% 11.87% 11.95% 15.28%
Pair 16.94% 29.54% 35.62% 35.84% 26.54%
High Card 74.39% 21.99% 0.00% 0.00% 45.66%

Every possible hand from a 52-card deck is dealt once and placed in the best category it can make. Ace is high, and A-2-3 also counts as a run. Categories rank Trail, Pure Sequence, Sequence, Colour, Pair, High Card in every column. Nothing is simulated, so the counts are exact.

What stands out

  • AK47: a Trail goes from 52 hands to 5,780. That is more than 100 times as often.
  • Joker games: with your lowest or highest card wild, nobody is left with a plain High Card.
  • Lowest vs Highest Joker: both give 3,796 Trails, and differ only slightly below that.
  • Best of Four: one extra card lifts a Sequence from 3.26% to 10.73%.
  • Rank order and rarity can part ways: in AK47, a Trail still ranks first although it comes up far more often than a Pure Sequence.

Check it yourself

The counting script and the CSV are on GitHub: run python count.py and it recounts every hand.

The data, with an embeddable table, is on the Teen Patti variation odds page. To test a single classic hand, there is also an odds calculator.

Disclosure: this comes from Techtonis, an independent card game guide. 18+ for card play.