这是一个基于 AlphaZero 算法的中国象棋 ai,使用标准 uci 协议
- 实现网页人机对下互动 GUI
- 优化参数
- 下载本项目代码
git clone https://github.com/Symb0x76/ChineseChessZero.git
-
按照 python-chinese-chess 的说明安装依赖 cchess
-
按照 Pytorch 的说明安装 torch
-
安装其他依赖库
pip install -r requirements.txt
- 运行 collect.py
python collect.py可以添加参数 --show来可视化对弈过程
- 运行 convert.py 将高压缩的 h5 数据转换为优化的 pickle 数据
python convert.py- 运行 train.py
python train.py