- public boolean isAdjacentTo(Position other) {
- // TODO Auto-generated method stub
- boolean res = false;
- if (column == other.getColumn() - 1 || column == other.getColumn() + 1
- || row == other.getRow() - 1 || row == other.getRow() + 1
- && column != other.getColumn() && row != other.getRow())
- res = true;
- return res;
- }
