Imported from WNoxchi/alphazero (
AGENTS.md). Install upstream withnpx skills add WNoxchi/alphazero. Copyright stays with the author.
AlphaZero
Single-machine AlphaZero for Chess and Go. Specs are in specs/ — read these for requirements.
You may use tmux to spawn a tmux session for scraping logs and checking your work. Settings are in ~/.tmux.conf
Sandbox Notes
- In restricted/offline sandbox sessions, validate editable packaging with:
python3 -m pip install -e . --no-build-isolation --no-deps --prefix /tmp/alphazero-prefixIf pip attempts to uninstall a non-writable environment install, rerun with--ignore-installed. - The C++ extension currently builds against the
alphazeroconda env (Python 3.11). If defaultpython3is 3.13, run binding tests with:PYTHONPATH=build/src:$PYTHONPATH /home/hakan/miniconda3/envs/alphazero/bin/python -m pytest tests/python/test_bindings.py - If
pytestis unavailable in the current interpreter, run Python tests withpython3 -m unittestfor task-level validation. ruffmay be unavailable in sandbox interpreters; when missing, run available static checks (for examplemypyandpython3 -m compileall) and note the missing linter in the task log.mypymay also be unavailable in sandbox interpreters; if eithermypyorruffis missing, runpython3 -m compileallon modified Python modules and note the unavailable tooling in the task log.
