|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
p2.tictactoe.AbstractBoardGame
p2.tictactoe.TicTacToe
public class TicTacToe
Concrete subclass of AbstractBoardGame.
Field Summary |
---|
Fields inherited from class p2.tictactoe.AbstractBoardGame |
---|
cols_, gameState_, nobody_, player_, rows_, squaresLeft_, toJoin_, turn_, winner_, winningScore_ |
Constructor Summary | |
---|---|
TicTacToe(Player playerX,
Player playerO)
|
Method Summary | |
---|---|
protected void |
init()
Subclasses should initialize _rows, _cols and _winningScore |
java.lang.String |
name()
Return the name of the game. |
Methods inherited from class p2.tictactoe.AbstractBoardGame |
---|
checkWinner, currentPlayer, get_cols, get_rows, get, inRange, invariant, join, move, notOver, ready, restart, set, setWinner, squaresLeft, swapTurn, 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 |
Methods inherited from interface p2.tictactoe.BoardGame |
---|
addObserver |
Constructor Detail |
---|
public TicTacToe(Player playerX, Player playerO)
Method Detail |
---|
protected void init()
AbstractBoardGame
init
in class AbstractBoardGame
public java.lang.String name()
BoardGame
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |