/* MachinePlayer.java */

package player;

/**
 *  An implementation of an automatic Network player.  Keeps track of moves
 *  made by both players.  Can select a move for itself.
 */
public class MachinePlayer extends Player {

  // Creates a machine player with the given color.  Color is either 0 (black)
  // or 1 (white).

  public MachinePlayer(int color) {
  }

  // Creates a machine player with the given color and search depth.  Color is
  // either 0 (black) or 1 (white).
  public MachinePlayer(int color, int searchDepth) {
  }

  // Returns a new move by this player.  Internally records the move as a move
  // by this player.
  public Move chooseMove() {
    return new Move();
  } 

  // If the Move m is legal, records the move as a move by the opponent and
  // returns true.  If the move is illegal, returns false without modifying
  // the internal state of this player.  This method allows your opponents to
  // inform you of their moves.
  public boolean opponentMove(Move m) {
    return false;
  }

  // If the Move m is legal, records the move as a move by this player and
  // returns true.  If the move is illegal, returns false without modifying
  // the internal state of this player.  This method is used to help set up
  // "Network problems" for your player to solve.
  public boolean forceMove(Move m) {
    return false;
  }

}