diff --git a/src/Moving.c b/src/Moving.c index d05d239..848f037 100644 --- a/src/Moving.c +++ b/src/Moving.c @@ -6,7 +6,7 @@ bool istzugerlaubt(char** Brett, int startX, int startY, int endX, int endY, Player player) { - if ((endX > 8 || endY > 8) || (endX < 0 || endY < 0)){ + if ((endX >= 8 || endY >= 8) || (endX < 0 || endY < 0)){ return false; } if (player == PLAYER_WHITE &&