Interface Player

All Known Implementing Classes:
TicTacToePlayer

public interface Player

Tic-Tac-Toe Game:
A Player object represents a player in a grid-based game that acts in response to mouse clicks in the grid.

Version:
May 18, 2004
Author:
Alyce Brady

Method Summary
 boolean respondToMousePress(edu.kzoo.grid.Grid grid, edu.kzoo.grid.Location loc)
          Responds to mouse press at the specified location in the specified grid.
 

Method Detail

respondToMousePress

public boolean respondToMousePress(edu.kzoo.grid.Grid grid,
                                   edu.kzoo.grid.Location loc)
Responds to mouse press at the specified location in the specified grid.

Returns:
true if the player was able to respond to the mouse press (i.e., a mouse press in that location was valid); false otherwise