diff --git a/build/test/results/test_Input.pass b/build/test/results/test_Input.pass index f215d25..c6bc487 100644 --- a/build/test/results/test_Input.pass +++ b/build/test/results/test_Input.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - "-> " -:time: 0.178285300033167 +:time: 0.027696100063621998 diff --git a/build/test/results/test_Moving.pass b/build/test/results/test_Moving.pass index cf14482..a1d44a0 100644 --- a/build/test/results/test_Moving.pass +++ b/build/test/results/test_Moving.pass @@ -27,4 +27,4 @@ - " " - " p p p p p p p p " - " r n b q k b n r " -:time: 0.14185060001909733 +:time: 0.029342600028030574 diff --git a/build/test/results/test_Schachbrett.pass b/build/test/results/test_Schachbrett.pass index f9bee13..04fbb76 100644 --- a/build/test/results/test_Schachbrett.pass +++ b/build/test/results/test_Schachbrett.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.12520380003843457 +:time: 0.024795700097456574 diff --git a/src/Moving.c b/src/Moving.c index 731e59b..d711ade 100644 --- a/src/Moving.c +++ b/src/Moving.c @@ -19,6 +19,22 @@ bool istzugerlaubt(char** Brett, int startX, int startY, int endX, int endY, Pla return false; } + switch (Brett[startY][startX]) { + case 'R': + break; + case 'N': + break; + case 'B': + break; + case 'Q': + break; + case 'K': + break; + case 'P': + break; + default: + break; + } /* Regeln hierhin z.B. schauen ob der zug auch innerhalb vom spielbrett ist, schauen ob auf dem zielfeld keine eigene Figur steht,