Package | Description |
---|---|
clui |
This package contains the command-line user interface.
|
controller |
This package contains various controllers, which are strategies to select
the next move for a given player.
|
model |
this package contains all of the data structures used to model the
state of the five-in-a-row game, and for processing the rules of the game.
|
Class and Description |
---|
Board
A Board object represents the state of a board at a given point in time.
|
Game
A Game object maintains the state of the game: whose turn it is, and what
the board looks like.
|
GameListener
A GameListener is any object that wants to respond whenever a Game object
changes.
|
Player
There are two players; X and O
|
Class and Description |
---|
Board
A Board object represents the state of a board at a given point in time.
|
Game
A Game object maintains the state of the game: whose turn it is, and what
the board looks like.
|
GameListener
A GameListener is any object that wants to respond whenever a Game object
changes.
|
Line
A line represents SIZE contiguous locations along a given row, column, or
diagonal.
|
Location
A Location is a (row, column) pair, where the row and column are
in the ranges 0..NUM_ROWS-1 and 0..NUM_COLS-1 respectively.
|
Player
There are two players; X and O
|
Class and Description |
---|
Board
A Board object represents the state of a board at a given point in time.
|
Board.State
The possible states of the game.
|
Game
A Game object maintains the state of the game: whose turn it is, and what
the board looks like.
|
GameListener
A GameListener is any object that wants to respond whenever a Game object
changes.
|
Line
A line represents SIZE contiguous locations along a given row, column, or
diagonal.
|
Location
A Location is a (row, column) pair, where the row and column are
in the ranges 0..NUM_ROWS-1 and 0..NUM_COLS-1 respectively.
|
Player
There are two players; X and O
|
Victory
A Victory object contains information about a game that has been won: who
won, and which positions form their "five in a row".
|