Skip to content

Commit c450b45

Browse files
committed
Add commands
1 parent c88da64 commit c450b45

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,41 @@ You might need to install `godep` with `github.com/tools/godep` first.
1919
$ gochess
2020
```
2121

22+
You then may just enter a move in the coordinate notation (e.g. `e2e4`).
23+
24+
## Commands
25+
26+
```
27+
auto, a let the engine play against itself
28+
29+
do, d search the best available move and play it
30+
31+
eval, e displays the current board's score
32+
33+
fen, f displays the current board position in the Forsyth Edwards Notation (FEN)
34+
35+
new, n start a new game
36+
37+
moves, m show a list of all possible moves
38+
39+
perft runs a performance test on the move generator (default starting position)
40+
41+
perft2 runs a performance test on the move generator ("position2" position)
42+
43+
print, p shows the current board position
44+
45+
quit, q quits this game and the application
46+
47+
search, s search the current board position for the best possible move
48+
49+
undo, u undo the last move
50+
51+
```
52+
53+
2254
## Ideas
2355

56+
* Use algebraic notation for input and display
2457
* Make multi threaded with channels
2558
* Use zobrist hash vor repetitions, score cache, etc.
2659

0 commit comments

Comments
 (0)