Simple Gomoku engine written in Rust with CLI and optional GUI.
- minimax search with alpha-beta pruning
- heavily parallelized using
rayon - iterative deepening with time limit
- 100% safe Rust
- CLI and GUI
Requires Rust toolchain installed and set-up.
cargo install --path .Alternatively, the GUI has precompiled binaries for download in latest release.
gomoku <player> <time>
- player – who should go first (
xoro) – engine always plays asx, human aso - time – time limit for computing in milliseconds
Reads input from stdin in format d6 (letter is horizontal, number is vertical)
gomoku <player> <time> -d <file>
- player – which symbol should engine evaluate as (
xoro) - time – time limit for searching in milliseconds
- file – path to file with position to evaluate
Evaluates the position and prints the best move + the board and some stats.
Input file example:
---------
---------
---x-----
---xoo---
----xo---
---xxxo--
------oo-
--------x
---------More info here: Gomoku GUI.