-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Gomoku engine | ||
|
||
## Description | ||
|
||
simple gomoku engine written in Rust | ||
uses AlphaBeta pruning and caching with zobrist hashing | ||
|
||
TODO: iterative deepening | ||
|
||
## Modes | ||
|
||
### 1. interactive | ||
|
||
`gomoku <player> <depth> [start]` | ||
|
||
- player - which symbol should engine play as ('x' or 'o') | ||
- depth - how many plies in future should the engine look | ||
- start - should the engine be first player ('true' or 'false') | ||
|
||
reads from stdin in format `x,y` | ||
|
||
### 2. single position | ||
|
||
`gomoku <player> <depth> debug <path-to-input-file>` | ||
|
||
- player - which symbol should engine play as ('x' or 'o') | ||
- depth - how many plies in future should the engine look | ||
- path-to-input-file - path to file in specified format | ||
|
||
evaluates single positions and returns its move | ||
|
||
input file example: | ||
|
||
```txt | ||
--------- | ||
--------- | ||
---x----- | ||
---xoo--- | ||
----xo--- | ||
---xxxo-- | ||
------oo- | ||
--------x | ||
--------- | ||
``` |