From 4762bc7d12d723056551317862081be8025e57c7 Mon Sep 17 00:00:00 2001 From: Luis Hahn Date: Sat, 3 Feb 2024 16:38:05 +0100 Subject: [PATCH] =?UTF-8?q?Turm=20X=20Bewegung=20hinzugef=C3=BCgt,=20Luis?= =?UTF-8?q?=20Hahn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Turm.c | 7 +++++++ test/test_Turm.c | 23 +++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/src/Turm.c b/src/Turm.c index 6c59966..54eaa51 100644 --- a/src/Turm.c +++ b/src/Turm.c @@ -17,6 +17,13 @@ int counter = 0; } } + }else if(startY == endY){ + counter = endX-startX; + for(int i = 0; i