项目作者: m-star18

项目描述 :
Gomoku-AI is an implementation of the AlphaZero algorithm for Gomoku.
高级语言: Python
项目地址: git://github.com/m-star18/Gomoku-AI.git
创建时间: 2021-07-19T04:44:51Z
项目社区:https://github.com/m-star18/Gomoku-AI

开源协议:Apache License 2.0

下载


Gomoku-AI

Github issues
Github stars
Github top language
Github license

playout400

This is an implementation of the AlphaZero algorithm for playing the simple board game Gomoku (also called Gobang or Five in a Row) from pure self-play training. The game Gomoku is much simpler than Go or chess, so that we can focus on the training scheme of AlphaZero and obtain a pretty good AI model on a single PC in a few hours.

Prerequisites

  • Python 3.9
  • Numpy 1.21.1
  • Pytorch 1.9.0

Getting Started

To play with provided models, run the following script from the directory:

  1. python src/env/human_play.py

You may modify human_play.py to try different provided models or the pure MCTS.

To train the AI model from scratch, directly run:

  1. python src/train.py

License

This program is released under Apache License 2.0.