Build a Poker Luck Detection App with Claude

3 comments

Apps it uses

I love playing poker, both online and live. One month, I performed poorly. Although it felt like the cards were running badly, I wondered whether I had developed a problem in my game and was blaming my losses on bad luck.

I asked around, including asking AI, whether a tool existed that could measure luck from poker hand histories. The unwelcome answer was that it did not. I'm not a coder, but after doing some research into vibe coding, I started building a luck-detection app in a Claude chat.

Claude built the UI directly in the chat window and advised me on the formulas I was using to calculate luck for the cards dealt, my performance on the flop, and my performance when I went all in. All three metrics have strong averages, and luck is what varies them. I used a bell curve to model hand outcomes and a Monte Carlo simulator, which Claude suggested and executed, to evaluate all possible outcomes.

The result astonished me because it was so useful. I immediately fixed two major leaks in my game and felt better knowing that bad luck really was the main problem affecting my results. I liked the tool so much that I decided to turn it into a full web app with Claude Code, and now an iPhone app that I may let other people use for free.

I also had a lot of fun building it—except for learning how to use Xcode. That was a pain, even with step-by-step guidance from Claude.

Step-by-step

  1. I reviewed a month of poor poker results and questioned whether bad luck or problems in my game were causing the losses.
  2. I researched whether a tool existed that could measure luck from poker hand histories and learned that I would need to build one myself.
  3. I used vibe coding to start building a luck-detection app in a Claude chat.
  4. I had Claude create the UI and advise on formulas for evaluating cards dealt, flop performance, and all-in performance.
  5. I used a bell curve to model hand outcomes and a Monte Carlo simulator to evaluate possible outcomes.
  6. I used the results to identify and fix two major leaks in my game and confirm that bad luck was also affecting my results.
  7. I expanded the project into a full web app with Claude Code and then began building an iPhone app, working through the added challenge of learning Xcode.

3 comments

Have a question about this workflow, or a way to improve it?

Log in to comment Create a free account
Mark Kinsley

Years ago I was a poker dealer. Congrats on building a thoughtful app that pulls back the curtain on luck, and evaluates your game. Very cool!

Brooke Benson Pro The Rundown team

omg this is so cool. My family is big into poker, and a luck detection app is exactly the kind of thing they'd get a kick out of. Could see it becoming a way for people to actually learn the game too. Thanks for sharing, Sanjay!

Posting guidelines