An open API service indexing awesome lists of open source software.

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.

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_
```