pferreira8 / holdem

texas-holdem random simulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Texas-Hold'em Project

GUI/eval-engine port/ is a major work in progress. So far this is the scaffolding of a free platform to play poker against AI. Long term vision: enabling server-hosting smart contract vesting for buy-ins and payouts on Solana

Monte-Carlo Args

You can pass the number of simulations you wish to perform as a command-line argument or override the default args.

To make running custom sims easier, you can throw them in a bash script to run the program:

command example | ex. script -> holdem.sh
cargo build --release && cargo run --release --bin holdem -- -n 1000 -r 5

Args

/* 
-n -> number of hands to deal per simulation.  
(default value: 1,000,000)
-r -> how many simulations you want to run. 
(default value: 1)
*/

Last Benchmark:

~87ms process 1 million hands.

To-Do

Add the option to select a predetermined hand and then count its occurrence over n hands dealt.

Process Logic

The simulator deals to n players, removing 2n+1 cards from the deck to account for player cards, plus the initial burn card.

About

texas-holdem random simulator


Languages

Language:Rust 99.8%Language:PowerShell 0.1%Language:Shell 0.1%