The whole source code is written in
Java. The API is very simple, and any
ameteur Java programmer should be able to understand and use it. The
documentation of the code is included in the package. Here only a
brief overview of a few of the classes is provided.
- Board : This class models the board of the game. The board
is represented a 2-Dimensional array.
- Player : This is an interface which must be
implemented by a user player class.
- Game : This simulates a game between two programmed
players, ensuring the correct protocol of play between the two
players.
- TextGame: A console based game of EasyGo. This can be used
for playing the game, as well as for testing the performance of a
programmed player.
- GraphicGame: This is a graphic based game of EasyGo. It can
be used for playing game against a programmed player.
Apart from these classes, there are a few programmed players :
- RandomPlayer: This player makes it moves by selecting one
amongst the valid moves available.
- NaivePlayer: It uses a simple heuristic to compute the best
possible move. It is fairly simple, but defeats RandomPlayer
easily. However it can be defeated easily by a human player.