ChenyuEcho/texas-holdem-ppo
0
๐ฐ Texas Hold'em PPO Agent
Play heads-up Texas Hold'em poker against AI agents trained with Proximal Policy Optimization (PPO)!
๐ฎ Features
- Multiple AI Opponents: Choose from CNN or MLP-based agents at different training stages
- Real-time Game Info: Track pot size and bet amounts
- Professional UI: Casino-themed dark interface
- Fair Play: Watch agent actions and see cards in real poker order
๐ค Available Models
- Stage 1: Early training agents (vs rule-based opponents)
- Stage 2: Improved agents (fine-tuned vs frozen agents)
- Stage 3: Final agents (advanced fine-tuning)
Each stage available in both:
- CNN: Card-aware convolutional network (~357k params)
- MLP: Pure multi-layer perceptron (~120k params)
๐ฏ How to Play
- Select an opponent from the dropdown
- Set your starting chips
- Click "๐ฒ New Match" to begin
- Use action buttons: Call, Raise, Fold, or Check
- Try different opponents to test various strategies!
๐ง Architecture
Trained using PPO with a three-stage curriculum:
- Stage 1: Multiple agents vs rule-based opponents
- Stage 2: Fine-tuning with replay buffer
- Stage 3: Advanced refinement
See the GitHub repository for training details and source code.
๐ Model Comparison
Compare CNN vs MLP architectures to see which performs better:
- CNN uses card-structure inductive bias
- MLP processes features directly
- Both trained with identical hyperparameters
Built with PettingZoo, PyTorch, and Gradio
