|
Class Summary |
| AircraftCarrier |
|
| Barge |
|
| BoardPoint |
A BoardPoint is a class that corresponds to a point on the game board. |
| Cruiser |
|
| Destroyer |
|
| FileLoader |
FileLoader reconstitutes the state of a saved game from a text file. |
| FileSaver |
FileSaver writes the state of a game to a file. |
| Game |
Game manages the game -- creating Player and Grid objects, and interacting with the human player at each turn. |
| Grid |
This class models a game board. |
| HumanPlayer |
HumanPlayer is a Player controlled by a human user sitting at the console. |
| NaiveCPUPlayer |
NaiveCPUPlayer is a computer-controlled Player that uses
the simplest possible strategy: at each turn, it suggests
a randomly-selected BoardPoint to attack. |
| SmarterCPUPlayer |
SmarterCPUPlayer is a computer-controlled Player that uses a "smarter" strategy to choose
which point to strike. |