ludax-agents
Pretrained AlphaZero agents for games in the Ludax board game framework.
Installation
pip install ludax-agents
Or install together with Ludax and its GUI:
pip install 'ludax[gui,agents]'
What's included
Each bundled agent is a ResNet trained via self-play using Gumbel MuZero search. At inference time the agent runs 256 MCTS simulations per move.
| Game | Checkpoint |
|---|---|
| Reversi (Othello) | reversi.ckpt |
Usage
The agents integrate automatically with the Ludax GUI — just install this package and an alphazero option will appear in the policy dropdowns for any supported game.
For programmatic use:
from ludax import LudaxEnvironment
from ludax.games import reversi
from ludax_agents import az_checkpoint_policy, get_checkpoint_path
env = LudaxEnvironment(game_str=reversi)
policy = az_checkpoint_policy(env, get_checkpoint_path("reversi"))
# policy(state_b, rng_key) -> action_b
Adding your own checkpoints
Checkpoints are produced by the AlphaZero trainer in examples/03-alpha-zero/. Copy the best iteration file and rename it <game_id>.ckpt (where game_id matches a key in ludax.games.__all__), then place it in src/ludax_agents/checkpoints/ and rebuild the package.
Links
Metadata
Release files for ludax-agents 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ludax_agents-1.0.0.tar.gz | 3.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ludax_agents-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 MB
Release files / ludax_agents-1.0.0.tar.gz
| Download URL | ludax_agents-1.0.0.tar.gz |
|---|---|
| Size | 3.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
612884b50f13c493ef2bc293f9892c2a4b2a1abf3306d05d25ef8c5d27ef27e1
|
|
BLAKE2b-256 checksum How to use checksums |
476c139498b2bc8c60dc4e6a2e36baa90ea9ad3fefa6e85f02bd18c093257d96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / ludax_agents-1.0.0-py3-none-any.whl
| Download URL | ludax_agents-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d60739c965497bb55bce54446bc7e3260fc48d011414867f3e48e4dab97ce9e9
|
|
BLAKE2b-256 checksum How to use checksums |
092defa3e212efe3c38f73abdbd923d94f73d892e96d73292fcbbf7763e66fd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|