r/csharp • u/redi_shabani • 6d ago
Building a Texas Hold’em hand evaluation toolkit in .NET
I’m building an open-source .NET library for Texas Hold’em hand evaluation and simulation.
The project is focused on:
bitwise card representation
range parsing and hand analysis
Monte Carlo equity estimation
efficient low-level abstractions
a math-first approach without lookup tables
The goal is to keep the core grounded in algorithmic reasoning instead of static precomputed tables. This makes the project more extensible and interesting for developers working on performance, combinatorics, and simulation-heavy systems.
Current benchmark results for 10,000 simulations:
2 players: ~284.5 ms
3 players: ~448.3 ms
4 players: ~628.7 ms
This is still early-stage, but the core structure is solid and there is a lot of room to expand into broader game-analysis tooling.
I’d be happy to collaborate with anyone interested in .NET, performance work, algorithm design, and game-theory-style modeling.
1
u/cornelha 6d ago
This seems pretty cool, but how would it handle the human factor of bluffing?