package TicTac; public final class TTMove{ /** * the row position of the move. */ public int x; /** * the column position of the move. */ public int y; /** * create a new move with row x and column y. */ public TTMove(int x, int y) { this.x = x; this.y = y; } /** * create a copy of move object */ public TTMove Copy() { TTMove copy = new TTMove(this.x, this.y); return copy; } public boolean isInbound () { return ((0<=x) && (0<=y) && (x