Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhiyiyo/alpha-gobang-zero
A gobang robot based on reinforcement learning.
https://github.com/zhiyiyo/alpha-gobang-zero
alphazero gobang pyqt5 pytorch reinforcement-learning
Last synced: 20 days ago
JSON representation
A gobang robot based on reinforcement learning.
- Host: GitHub
- URL: https://github.com/zhiyiyo/alpha-gobang-zero
- Owner: zhiyiYo
- License: gpl-3.0
- Created: 2021-03-20T15:56:26.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-28T03:38:52.000Z (over 1 year ago)
- Last Synced: 2024-05-23T04:36:58.939Z (6 months ago)
- Topics: alphazero, gobang, pyqt5, pytorch, reinforcement-learning
- Language: Python
- Homepage: https://www.cnblogs.com/zhiyiYo/p/14683450.html
- Size: 71.5 MB
- Stars: 91
- Watchers: 3
- Forks: 21
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Alpha Gobang Zero
A gobang robot based on reinforcement learning
## Policy-Value Net
* Network structure
* `ConvBlock` × 1
* `ResidueBlock` × 4
* `PolicyHead` × 1
* `ValueHead` × 1
* Network visualization
## Quick start
1. Create virtual environment:```shell
conda create -n Alpha_Gobang_Zero python=3.8
conda activate Alpha_Gobang_Zero
pip install -r requirements.txt
```2. Install `PyTorch`,refer to the [blog](https://www.cnblogs.com/zhiyiYo/p/15865454.html) for details;
3. Start game:
```shell
conda activate Alpha_Gobang_Zero
python game.py
```## Train model
```shell
conda activate Alpha_Gobang_Zero
python train.py
```## Blog
[《如何使用自对弈强化学习训练一个五子棋机器人Alpha Gobang Zero》](https://www.cnblogs.com/zhiyiYo/p/14683450.html)## Reference
* [《Mastering the game of Go without human knowledge》](https://www.nature.com/articles/nature24270.epdf?author_access_token=VJXbVjaSHxFoctQQ4p2k4tRgN0jAjWel9jnR3ZoTv0PVW4gB86EEpGqTRDtpIz-2rmo8-KG06gqVobU5NSCFeHILHcVFUeMsbvwS-lxjqQGg98faovwjxeTUgZAUMnRQ)
* [《Mastering Chess and Shogi by Self-Play with a General Reinforcement Learning Algorithm》](https://arxiv.org/abs/1712.01815)## FAQs
* **Why does the window get stuck when it is dragged?**Because the interface background uses acrylic effect, this problem will occur for some versions of win10. There are three solutions:
* Upgrade win10 to the latest version.
* Uncheck the check box of **Advanced system settings --> Performance --> Show window contents when dragging**.
* Turn off the option to enable acrylic background in the setting interface.* **Why does the configuration I modified in the settings interface not take effect immediately?**
The modified configuration will take effect at the beginning of the next game.
## License
Alpha-Gobang-Zero is licensed under [GPLv3](./LICENSE).Copyright © 2021 by zhiyiYo.