This is Reversi against the AI.
It's not finished yet, this AI is very weak. No learning. Using a very simple evaluator.
$ git clone https://github.com/nyankyu/AI-reversi.git
$ cd AI-reversi
$ cmake .
$ make
$ ./ai-reversi
===== AI-reversi =====
A B C D E F G H
1 . . . . . . . .
2 . . . . . . . .
3 . . . . . . . .
4 . . . O X . . .
5 . . . X O . . .
6 . . . . . . . .
7 . . . . . . . .
8 . . . . . . . .
O: 2, X: 2, .: 60
X >
O
: AI, X
: player
X >
means that it isX
's turn to place a stone. Enter the location where you want to place the stone. The location is represented by a letter and a number.
For example, to place a stone in the C
column, 4
row, enter C4
. The result will look like the one below.
===== AI-reversi =====
A B C D E F G H
1 . . . . . . . .
2 . . . . . . . .
3 . . O . . . . .
4 . . X O X . . .
5 . . . X O . . .
6 . . . . . . . .
7 . . . . . . . .
8 . . . . . . . .
O: 3, X: 3, .: 58
X >
If you want to quit the game midway, enter q
. Also, enter r
to move back.
usage: ai-reversi [option]
option
(none) The same as "black"
auto AI vs Random Player
white Human vs AI. Human is White. AI is Black.
black Human vs AI. Human is Black. AI is White.
vs_human Human vs Human
measure Measure AI strength