#22 · Primary category: Game AI & Behavior Trees
pgx
♟️ 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
recastnavigation
Industry-standard navigation-mesh toolset for games
mage
XMage - Magic Another Game Engine
lc0
Open source neural network chess engine with GPU acceleration and broad hardware support.
beehave
🐝 behavior tree AI for Godot Engine
forge
An unofficial rules engine for the world's greatest card game.