tictactoe
Interface Player

All Known Implementing Classes:
InactivePlayer

public abstract interface Player

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

Version:
2.0 1999-03-26
Author:
Oscar.Nierstrasz@acm.org

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

Method Detail

mark

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

isNobody

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

setGame

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