From 28cff960d5c7b139b4fe945bbc660245f0cd904c Mon Sep 17 00:00:00 2001 From: Emman Mensdorf Date: Mon, 5 Feb 2024 21:20:59 +0100 Subject: [PATCH] Dame bewegung innerhalb Spielbrett, Emman Mensdorf --- src/Dame.c | 16 ++++++++++++++++ src/Moving.c | 1 + 2 files changed, 17 insertions(+) create mode 100644 src/Dame.c diff --git a/src/Dame.c b/src/Dame.c new file mode 100644 index 0000000..210d10b --- /dev/null +++ b/src/Dame.c @@ -0,0 +1,16 @@ +#include +#include +#include +#include +#include "Spieler.h" +#include "Moving.h" +#include "Dame.h" + +bool istzugerlaubt_Dame(char** Brett, int startX, int startY, int endX, int endY, Player player){ + +// Überprüfe, ob der Zug auf dem Spielbrett liegt + if (endX < 0 || endX >= 8 || endY < 0 || endY >= 8) + return false; + + +} \ No newline at end of file diff --git a/src/Moving.c b/src/Moving.c index 980da99..126a85f 100644 --- a/src/Moving.c +++ b/src/Moving.c @@ -6,6 +6,7 @@ #include "Turm.h" #include "Springer.h" #include "Koenig.h" +#include "Dame.h" bool istzugerlaubt(char** Brett, int startX, int startY, int endX, int endY, Player player) {