#22 · Primary category: Game AI & Behavior Trees

pgx

ai alphazero artificial-intelligence backgammon bridge-game chess game go-game jax machine-learning poker python reinforcement-learning shogi

♟️ Vectorized RL game environments in JAX

Project last updated:03/06/25

GitHub Stars

641

Forks

55

Contributors

17

License

Apache-2.0

Why we included this project

Anyone doing reinforcement learning research on board games has probably felt the pain of environment code that runs one game at a time. pgx sidesteps that by implementing chess, Go, shogi, backgammon, poker variants, and Othello directly in JAX, so the simulators run vectorized across GPU batches instead of looping through Python. That means you can generate thousands of episodes in parallel, which is the kind of throughput AlphaZero-style self-play depends on. The API is consistent across every game, so swapping environments for a benchmark is painless, and there's even an export path to PettingZoo for multi-agent setups. If you're comparing agents across several board games or scaling up self-play runs, this saves you from writing a lot of environment plumbing yourself.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category