From 5bcdf4b8ba7840101a4a6d7f390186363cc7ffb5 Mon Sep 17 00:00:00 2001 From: fdai7492 Date: Thu, 1 Feb 2024 00:59:53 +0000 Subject: [PATCH] Kleiner Logik Fix, Anton Lohrey --- src/Moving.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 &&