tictactoe
Class PassivePlayer

java.lang.Object
  |
  +--tictactoe.Asserter
        |
        +--tictactoe.InactivePlayer
              |
              +--tictactoe.PassivePlayer

public class PassivePlayer
extends InactivePlayer

A PassivePlayer attempts to make a move when its move() method is called by some Driver.

Version:
2.0 1999-03-26
Author:
Oscar.Nierstrasz@acm.org
See Also:
tictactoe.AbstractBoardGame#remoteMove

Fields inherited from class tictactoe.InactivePlayer
_game
 
Constructor Summary
PassivePlayer(char mark)
           
 
Method Summary
 void move(int col, int row)
          Attempt to make the given move in the associated game.
 
Methods inherited from class tictactoe.InactivePlayer
isNobody, mark, setGame, toString
 
Methods inherited from class tictactoe.Asserter
assert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PassivePlayer

public PassivePlayer(char mark)
Method Detail

move

public void move(int col,
                 int row)
          throws AssertionException
Attempt to make the given move in the associated game.