p2.tictactoe
Interface BoardGame

All Known Implementing Classes:
AbstractBoardGame, Gomoku, TicTacToe

public interface BoardGame

Interface for TicTacToe and Gomoku.

Version:
$Version$
Author:
$Author: oscar $

Method Summary
 void addObserver(java.util.Observer o)
           
 Player currentPlayer()
           
 int get_cols()
           
 int get_rows()
           
 Player get(int col, int row)
           
 boolean inRange(int col, int row)
           
 void move(int col, int row, Player p)
           
 boolean notOver()
           
 int squaresLeft()
           
 Player winner()
           
 

Method Detail

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)