From 247ed1dce3934e974621ecee5431c99a60988ad8 Mon Sep 17 00:00:00 2001 From: Luis Hahn Date: Sat, 3 Feb 2024 16:47:17 +0100 Subject: [PATCH] Turm negative Bewegung, Luis Hahn --- src/Turm.c | 28 +++++++++++++++++++++++++--- test/test_Turm.c | 25 +++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 3 deletions(-) diff --git a/src/Turm.c b/src/Turm.c index 54eaa51..e81c819 100644 --- a/src/Turm.c +++ b/src/Turm.c @@ -10,21 +10,43 @@ bool istzugerlaubt_Turm(char** Brett, int startX, int startY, int endX, int endY int counter = 0; if(startX == startY){ - counter = endY-startY; + if(startY