Interface BoardGame

All Known Implementing Classes:
AbstractBoardGame

public abstract interface BoardGame

Interface for TicTacToe and Gomoku.

Version:
1.6 1999-02-04
Author:
Oscar.Nierstrasz@acm.org

Method Summary
 Player currentPlayer()
           
 char get(int col, int row)
           
 boolean inRange(int col, int row)
           
 void move(java.lang.String coord, char mark)
           
 boolean notOver()
           
 int squaresLeft()
           
 void test()
           
 void update()
           
 Player winner()
           
 

Method Detail

update

public void update()
            throws java.io.IOException

move

public void move(java.lang.String coord,
                 char mark)
          throws AssertionException

currentPlayer

public Player currentPlayer()

winner

public Player winner()

get

public char get(int col,
                int row)
         throws AssertionException

notOver

public boolean notOver()

squaresLeft

public int squaresLeft()

inRange

public boolean inRange(int col,
                       int row)

test

public void test()