Skip to content

Commit

Permalink
added README
Browse files Browse the repository at this point in the history
  • Loading branch information
Maneren committed Jul 25, 2021
1 parent 0118eea commit 07024f4
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions README.md
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
---------
```

0 comments on commit 07024f4

Please sign in to comment.