p2.tictactoe
Interface BoardGame
- All Known Implementing Classes:
- AbstractBoardGame, Gomoku, TicTacToe
public interface BoardGame
Interface for TicTacToe and Gomoku.
- Version:
- $Version$
- Author:
- $Author: oscar $
get_cols
int get_cols()
get_rows
int get_rows()
move
void move(int col,
int row,
Player p)
throws InvalidMoveException
- Throws:
InvalidMoveException
currentPlayer
Player currentPlayer()
winner
Player winner()
get
Player get(int col,
int row)
notOver
boolean notOver()
squaresLeft
int squaresLeft()
inRange
boolean inRange(int col,
int row)
addObserver
void addObserver(java.util.Observer o)