|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Uses of Player in <Unnamed> |
|---|
| Classes in <Unnamed> that implement Player | |
|---|---|
class |
HumanPlayer
HumanPlayer is a Player controlled by a human user sitting at the console. |
class |
NaiveCPUPlayer
NaiveCPUPlayer is a computer-controlled Player that uses the simplest possible strategy: at each turn, it suggests a randomly-selected BoardPoint to attack. |
class |
SmarterCPUPlayer
SmarterCPUPlayer is a computer-controlled Player that uses a "smarter" strategy to choose which point to strike. |
| Methods in <Unnamed> that return Player | |
|---|---|
Player |
Game.getWinner()
|
| Methods in <Unnamed> with parameters of type Player | |
|---|---|
void |
Game.placeShipsForPlayer(Player p)
Repeatedly asks this Player to place ships until all five of this Player's ships are on the board in legal locations. |
| Constructors in <Unnamed> with parameters of type Player | |
|---|---|
Game(Player human,
Player computer)
Constructs a new Game with the given Players. |
|
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||