-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
32 lines (26 loc) · 918 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Implementation of Othello/Reversi for use in game programming
or board game AI research.
If you plan on using this, you probably want to make your own
rate(board) method for the AIPlayer class, and then simply use
something like result(AIPlayer(rate), RandomPlayer()) to retrieve
the result of a game.
If you want to use the board state as input to some algorithm, the
method Board.to_list() may come in handy.
Overview:
Classes
Board
Class representing board state, able to generate successor board
states.
ConsolePlayer
Prompts the user for moves.
RandomPlayer
Chooses a random move.
AIPlayer
Uses a rating function to choose moves.
Utilities
game(A, B, board_size)
An iterable yielding the states of a game between A and B on a
board of size board_size
result(A, B, board_size)
Convenience method yielding the final board state of a game
between A and B on a board of size board_size