From fa88b473d662afb84614af0f3e90c09bacdd58fc Mon Sep 17 00:00:00 2001 From: Luis Hahn Date: Mon, 5 Feb 2024 19:02:04 +0100 Subject: [PATCH] =?UTF-8?q?Fertigstellung=20der=20Ausf=C3=BChrung=20von=20?= =?UTF-8?q?Bauernumwandlung,=20Luis=20Hahn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Bauernumwandlung.c | 4 +++- src/Bauernumwandlung.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Bauernumwandlung.c b/src/Bauernumwandlung.c index 7008289..75dd8a7 100644 --- a/src/Bauernumwandlung.c +++ b/src/Bauernumwandlung.c @@ -44,7 +44,9 @@ char* bauer_umwandel_abfrage(char** Brett, int startX, int startY, int endX, int } } -void bauer_umwandeln(){ +void bauer_umwandeln(char** Brett, int startX, int startY, int endX, int endY, Player player){ + Brett[endY][endX] = bauer_umwandel_abfrage(Brett,startX,startY,endX,endY,player); + Brett[startY][startX] = ' '; } diff --git a/src/Bauernumwandlung.h b/src/Bauernumwandlung.h index 2c87b81..8f6d85f 100644 --- a/src/Bauernumwandlung.h +++ b/src/Bauernumwandlung.h @@ -6,6 +6,6 @@ bool ist_umwandlung_gerlaubt_Bauer(char** Brett, int startX, int startY, int endX, int endY, Player player); char* bauer_umwandel_abfrage(char** Brett, int startX, int startY, int endX, int endY, Player player); -void bauer_umwandeln(); +void bauer_umwandeln(char** Brett, int startX, int startY, int endX, int endY, Player player); #endif // BAUER_UM_H