|
|
@ -15,6 +15,7 @@ public class Knight extends Piece {
|
|
|
|
possibleMoves.add(new BoardCoordinate(position.x + 1, position.y + 2));
|
|
|
|
possibleMoves.add(new BoardCoordinate(position.x + 1, position.y + 2));
|
|
|
|
possibleMoves.add(new BoardCoordinate(position.x - 1, position.y + 2));
|
|
|
|
possibleMoves.add(new BoardCoordinate(position.x - 1, position.y + 2));
|
|
|
|
possibleMoves.add(new BoardCoordinate(position.x - 2, position.y + 1));
|
|
|
|
possibleMoves.add(new BoardCoordinate(position.x - 2, position.y + 1));
|
|
|
|
|
|
|
|
// test
|
|
|
|
return possibleMoves;
|
|
|
|
return possibleMoves;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|