package model; import model.Board.TileColor; public class Move { /** * Used when genMove() is called but no valid move exists for that player. */ public static final Move NONE = new Move(TileColor.NONE, -1, -1); private final TileColor color; private final CellPointer cp; public Move(TileColor tlClr, CellPointer cllPntr) { cp = cllPntr; color = tlClr; } public Move(TileColor color, int row, int column) { cp = new CellPointer(row, column); this.color = color; } public CellPointer getCell() { return cp; } public TileColor getColor() { return color; } @Override public String toString() { return "Play " + color + "@" + cp; } }