package model;

/**
 * Top-level player container.
 *
 * @author Eli Skeggs
 */
public class PlayerModel {
  public Level level = null;
  public Move move = new Move();
  public int counter = 0;
  public int score = 0;
  public int levelnum = 0;

  public Variation variation = null;
  public PlayerState playerState = PlayerState.NONE;

  public PlayerProgress progress = null;
  public boolean disableProgress = false;

  /**
   * Create a new player model.
   */
  public PlayerModel() {}

  /**
   * Create a player model from a builder model to enable previews.
   */
  public PlayerModel(BuilderModel model) {
    level = model.level;
  }

  public void discardLevel() {
    // discard the board
    if (level != null) {
      level.discardBoard();
    }
  }

  public void realizeLevel() {
    level.realizeBoard();
    counter = level.rules.initialCounter;
    score = 0;
    variation = level.rules.variation;
  }

  // TODO: be specific, what are we resetting?
  public void reset() {
    playerState = PlayerState.NONE;
    move = new Move();
  }
}

@@ -515,168 +515,8 @@
 %0D%0A%0D%0A
-  /**%0D%0A   * Create a player model from a builder model to enable previews.%0D%0A   */%0D%0A  public PlayerModel(BuilderModel model) %7B%0D%0A    level = model.level;%0D%0A  %7D%0D%0A%0D%0A
   pu

Remove dead PlayerModel constructor