public class RandomPlayer extends java.lang.Object implements Player
Modifier and Type | Field and Description |
---|---|
protected java.util.Random |
random |
Constructor and Description |
---|
RandomPlayer() |
Modifier and Type | Method and Description |
---|---|
void |
lost()
Upcall to indicate that this player has lost the current game
|
Move |
move(Backgammon backgammon)
Requests that the player make a move using the given
backgammon setup.
|
void |
won()
Upcall to indicate that this player has won the current game
|
public Move move(Backgammon backgammon)
public void won()
Player