arianmohammadian/poker-ai-lab ? reverse-engineered prompt

Reverse engineered prompt

Build me a C++20 Texas Hold’em poker lab that can evaluate hands, calculate heads up equity, and run individual hands with real betting actions.

I want a clean, modular codebase with a poker core, a five card and seven card hand evaluator, exact equity calculation and Monte Carlo simulation for two known hands, and a heads up no limit hand engine that handles blinds, checks, calls, bets, raises, folds, all ins, burn cards, runouts, showdown, and pot settlement. Please include a small command line app for the equity calculator, plus solid automated tests for hand ranking, edge cases, duplicate card validation, equity results, and engine behavior.

Use deterministic seeds where it helps so tests are reproducible, and keep the design ready for later AI agents and self play. If you need current C++ or testing details, look them up online and follow modern best practices.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab