package tp.pr5.logic;

public class ReversiMove extends Move {
	
	private int row;

	public ReversiMove(int moveColumn, int moveRow, Counter moveColour) {
		super(moveColour, moveColumn);
		this.row = moveRow;
	}

	@Override
	public boolean executeMove(Board board) throws InvalidMove {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void undo(Board board) {
		// TODO Auto-generated method stub

	}

	@Override
	public int getColumn() {return this.column;}
	public int getRow() {return this.row;}

}

package tp.pr5.logic;

public class ReversiMove extends Move {
	
	private int row;

	public ReversiMove(int moveColumn, int moveRow, Counter moveColour) {
		super(moveColour, moveColumn);
		this.row = moveRow;
	}

	@Override
	public boolean executeMove(Board board) throws InvalidMove {
		boolean validMove = false;
		
		if ((column >= 1 && column <= Resources.DIMX_REVERSI) && (row >= 1 && row <= Resources.DIMY_REVERSI)) {
			if (board.getPosition(column, row) == Counter.EMPTY) {
				validMove = true;
				//TODO: terminnar execute move
			}
		}	
		
		return validMove;
	}

	@Override
	public void undo(Board board) {
		// TODO Auto-generated method stub

	}

	@Override
	public int getColumn() {return this.column;}
	public int getRow() {return this.row;}

}

Update ReversiMove.java