|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectOthelloGame
A game of Othello.
Constructor Summary | |
OthelloGame()
Constructor for a default player-vs-player game. |
|
OthelloGame(Player p1)
Constructor for a one-player, player-vs-computer game. |
|
OthelloGame(Player p1,
Player p2)
Constructor for a no-holds-barred, computer-vs-computer game. |
Method Summary | |
void |
end()
End the game. |
OthelloPiece |
play()
Play the game. |
void |
setTimeLimit(long timeLimit)
Set the time-limit to be used by this game. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OthelloGame()
public OthelloGame(Player p1)
p1
- The controller for the computer player.public OthelloGame(Player p1, Player p2)
p1
- The controller for the first computer player.p2
- The controller for the second computer player.Method Detail |
public void setTimeLimit(long timeLimit)
timeLimit
- The time-limit in milliseconds.public OthelloPiece play() throws InvalidMoveException
InvalidMoveException
public void end()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |