|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for TicTacToe and Gomoku.
AbstractBoardGame
Method Summary | |
void |
addObserver(RemoteObserver remote)
Used by GameProxy to connect RemoteObservers to a game. |
int |
cols()
|
Player |
currentPlayer()
|
Player |
get(int col,
int row)
|
boolean |
inRange(int col,
int row)
|
void |
move(int col,
int row,
Player p)
Attempt to move to the given square |
boolean |
notOver()
|
Player |
player(int n)
Return Player #n (0 or 1), else Player "nobody". |
int |
rows()
|
int |
squaresLeft()
|
void |
test()
Run a generic test suite. |
Player |
winner()
|
Method Detail |
public int cols()
public int rows()
public void move(int col, int row, Player p) throws AssertionException
public Player currentPlayer()
public Player player(int n)
public Player winner()
public Player get(int col, int row) throws AssertionException
public boolean notOver()
public int squaresLeft()
public boolean inRange(int col, int row)
public void test()
public void addObserver(RemoteObserver remote)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |