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) {