https://github.com/ianfab/chess-variant-mcts
MCTS/UCT search for chess variants
https://github.com/ianfab/chess-variant-mcts
chess-variants epd fairy-stockfish fen mcts opening-book uci uct
Last synced: 5 months ago
JSON representation
MCTS/UCT search for chess variants
- Host: GitHub
- URL: https://github.com/ianfab/chess-variant-mcts
- Owner: ianfab
- License: agpl-3.0
- Created: 2022-06-16T18:29:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-15T16:54:00.000Z (7 months ago)
- Last Synced: 2025-03-30T09:21:53.364Z (6 months ago)
- Topics: chess-variants, epd, fairy-stockfish, fen, mcts, opening-book, uci, uct
- Language: Python
- Homepage:
- Size: 33.2 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chess variant MCTS search
This project provides an MCTS/UCT search based on [brilee/python_uct](https://github.com/brilee/python_uct) on top of UCI chess variant engines. This can be useful to provide features that alpha-beta search engines can not, such as providing a tree with a balance between exploitation and exploration.
Possible use cases can be the generation of opening books, identification of critical lines, and the like.
The recommended engine to use with this project is [Fairy-Stockfish](https://github.com/ianfab/Fairy-Stockfish), but in principle any UCI chess variant engine could be used, or a random policy in case no engine is provided.
## Setup
The project requires at least python3.5 as well as the dependencies from the `requirements.txt`. Install them using
```
pip3 install -r requirements.txt
```## Usage
A simple example of running the script is:
```
python3 mcts.py --engine fairy-stockfish.exe --variant chess --rollouts 100
```
Run the script with `--help` to get help on the supported parameters.