package model;

/**
 * Stores the current state of the player's game. Represents the action they are
 * currently undertaking, if any.
 *
 * @author Eli Skeggs, Nick Chaput
 */
public enum PlayerState {
  NONE,
  REMOVE,
  // if we want an animation or something, this could be the current move to
  // disable user interaction
  SCRAMBLE,
  SELECT,
  SWAP;
  
  public String toString() {
	  switch (this) {
	    case REMOVE:
	          return "REMOVE";
	    case SCRAMBLE:
		      return "SCRAMBLE";
	    case SELECT:
		      return "SELECT";
	    case SWAP:
	          return "SWAP";
	    default:
	    	  return "NONE";
	      // do nothing!
	    }
  }
}

package model;

/**
 * Stores the current state of the player's game. Represents the action they are
 * currently undertaking, if any.
 *
 * @author Eli Skeggs, Nick Chaput
 */
public enum PlayerState {
  NONE("NONE"),
  REMOVE("REMOVE"),
  // if we want an animation or something, this could be the current move to
  // disable user interaction
  SCRAMBLE("SCRAMBLE"),
  SELECT("SELECT"),
  SWAP("SWAP");

  public final String str;

  private PlayerState(String str) {
    this.str = str;
  }
  
  public String toString() {
    return str;
  }
}

Add better toString for PlayerState