Skip to content

Symb0x76/ChineseChessZero

Repository files navigation

ChineseChessZero

这是一个基于 AlphaZero 算法的中国象棋 ai,使用标准 uci 协议

GPL-3.0 Python 3.13

TODO

  • 实现网页人机对下互动 GUI
  • 优化参数

使用方法

  1. 下载本项目代码
git clone https://github.com/Symb0x76/ChineseChessZero.git
  1. 按照 python-chinese-chess 的说明安装依赖 cchess

  2. 按照 Pytorch 的说明安装 torch

  3. 安装其他依赖库

pip install -r requirements.txt
  1. 运行 collect.py
python collect.py

可以添加参数 --show来可视化对弈过程

  1. 运行 convert.py 将高压缩的 h5 数据转换为优化的 pickle 数据
python convert.py
  1. 运行 train.py
python train.py

参考

About

A Chinese chess AI based on AlphaZero algorithm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages