Skip to content

Implementation of counterfactual regret minimization (CFR) for Texas hold'em poker

License

Notifications You must be signed in to change notification settings

b-inary/poker-cfr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

poker-cfr

Implementation of counterfactual regret minimization (CFR) for Texas hold'em poker

Algorithm

  • CFR+
  • Supports multi-thread
  • Precomputed heads-up equity
  • Written in Rust (fast and safe)

Files

  • cfr.rs

The main logic of counterfactual regret minimization is described.

  • main_kuhn.rs ($ cargo run --release)

Solve Nash equilibrium of Kuhn poker (mainly for testing).

  • main_push_fold.rs ($ cargo run --release --bin push_fold)

Solve Nash equilibrium of heads-up push/fold hold'em, i.e., the heads-up poker only allowed to push (all-in) or fold.

  • main_preflop.rs ($ cargo run --release --bin preflop)

Solve Nash equilibrium of pre-flop only heads-up hold'em, i.e., every player checks after flop opens. Currently, the bet size is limited to 2.5x, 3x, 3.5x, 4x, and all-in.

  • main_viewer.rs ($ cargo run --release --bin viewer)

Open a CUI interactive viewer for pre-flop strategies computed by main_preflop.rs. It reads data in output directory.

About

Implementation of counterfactual regret minimization (CFR) for Texas hold'em poker

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages