p2.tictactoe
Interface Player

All Known Implementing Classes:
GUIplayer, InactivePlayer, StreamPlayer

public interface Player

Minimal interface for Player classes that get moves from user and forward them to the game.

Version:
$Id: Player.java,v 1.6 2005/02/23 22:11:19 oscar Exp $
Author:
$Author: oscar $

Method Summary
 boolean isNobody()
           
 char mark()
           
 void setGame(BoardGame game)
          Let this player join a particular game.
 

Method Detail

mark

char mark()
Returns:
the char representation of this Player
See Also:
AbstractBoardGame.toString()

isNobody

boolean isNobody()
Returns:
whether this Player represents "nobody". (By convention, a Player with a blank as its mark.)

setGame

void setGame(BoardGame game)
Let this player join a particular game. Set by a BoardGame when it is instantiated with Players.