From 9c250dc4493abe284337f7d52e37316d0afe0969 Mon Sep 17 00:00:00 2001 From: Luis Hahn Date: Sat, 3 Feb 2024 17:03:01 +0100 Subject: [PATCH] =?UTF-8?q?refactoring:logik=20=C3=A4nderung=20der=20Turm?= =?UTF-8?q?=20Funktion,=20Luis=20Hahn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Turm.c | 14 +++++++++----- test/test_Turm.c | 6 ++++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/Turm.c b/src/Turm.c index e81c819..04991cd 100644 --- a/src/Turm.c +++ b/src/Turm.c @@ -9,39 +9,43 @@ bool istzugerlaubt_Turm(char** Brett, int startX, int startY, int endX, int endY int counter = 0; - if(startX == startY){ + if(startX == endX){ if(startY