Movement restriction for Knight

main
jylkyle 2 years ago
parent 6f51247019
commit b5dc5a4228

@ -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 - 2, position.y + 1));
// test
return possibleMoves;
}
}