|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--tictactoe.AbstractBoardGame | +--tictactoe.TicTacToe
Class to enforce rules of TicTacToe.
Fields inherited from class tictactoe.AbstractBoardGame |
_cols,
_gameState,
_nobody,
_player,
_rows,
_squaresLeft,
_turn,
_winner,
_winningScore |
Constructor Summary | |
TicTacToe(Player playerX,
Player playerO)
|
Methods inherited from class tictactoe.AbstractBoardGame |
addObserver,
assert,
checkWinner,
cols,
currentPlayer,
get,
init,
initFailed,
inRange,
move,
notOver,
player,
rows,
set,
setWinner,
squaresLeft,
swapTurn,
test,
toString,
winner |
Methods inherited from class java.util.Observable |
addObserver,
clearChanged,
countObservers,
deleteObserver,
deleteObservers,
hasChanged,
notifyObservers,
notifyObservers,
setChanged |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public TicTacToe(Player playerX, Player playerO)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |