https://github.com/kohakublueleaf/kohakugomoku
A gomoku AI project which runs on cpu.
https://github.com/kohakublueleaf/kohakugomoku
alpha-beta-pruning cpp gomoku gomoku-ai mcts minimax monte-carlo-tree-search
Last synced: 9 months ago
JSON representation
A gomoku AI project which runs on cpu.
- Host: GitHub
- URL: https://github.com/kohakublueleaf/kohakugomoku
- Owner: KohakuBlueleaf
- License: apache-2.0
- Created: 2022-05-15T04:28:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-12T13:55:19.000Z (almost 3 years ago)
- Last Synced: 2025-01-07T10:10:28.562Z (11 months ago)
- Topics: alpha-beta-pruning, cpp, gomoku, gomoku-ai, mcts, minimax, monte-carlo-tree-search
- Language: C++
- Homepage:
- Size: 300 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# KohakuGomoku
## Requirments
Compiler: should support c++14.
Other: for `make merge`, see [this](https://www.npmjs.com/package/cpp-merge).
System: Been tested on Windows, MacOS, most of Linux distribution.
(Tested under the lastest version at 2022/06)
## How to run
First clone this repo and go into it.
```bash
git clone https://github.com/KohakuBlueleaf/KohakuGomoku.git
cd KohakuGomoku
```
And then run make command.
```bash
make all
```
If you only want to build some specific policy, use this.
```bash
make main #necessary!!!
make
```
for example
```bash
make alphabeta #will create player_alphabeta.exe at build/ folder
```
Finally
```bash
cd build
./main ./player_ ./player_
```
### Merge to one file
**Make sure you have installed cpp-merge**
If you want to merge all cpp/hpp file into one file.
You can use
```bash
make merge
```
to build all merge file.
And if you only want to merge specific target, use below command.
```bash
make merge_
```