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.
|
Modifier and Type | Class and Description |
---|---|
class |
BoardPrinter
Helper methods to print out
Board s on the console. |
class |
ConsoleController
A Controller that queries the user for moves and then submits them.
|
Modifier and Type | Class and Description |
---|---|
class |
Controller
Controllers represent different strategies for choosing the next move when
it is a player's turn.
|
class |
DumbAI
A DumbAI is a Controller that always chooses the blank space with the
smallest column number from the row with the smallest row number.
|
class |
MinMaxAI
A MinMaxAI is a controller that uses the minimax algorithm to select the next
move.
|
class |
RandomAI
A RandomAI is a Controller that always chooses a random blank cell to play.
|
class |
SmartAI
The SmartAI uses min-max search with reasonable heuristics to choose
the next move to make.
|
Modifier and Type | Method and Description |
---|---|
void |
Game.addListener(@NonNull GameListener listener)
Add a listener to this game: causes the listener to be notified now and
at any point in the future when this game's state changes.
|