diff --git a/build/test/out/c/schach.o b/build/test/out/c/schach.o index d561eb7..eb217f1 100644 Binary files a/build/test/out/c/schach.o and b/build/test/out/c/schach.o differ diff --git a/build/test/out/c/test_schach.o b/build/test/out/c/test_schach.o index 75a55e7..93fb978 100644 Binary files a/build/test/out/c/test_schach.o and b/build/test/out/c/test_schach.o differ diff --git a/build/test/out/c/test_schach_runner.o b/build/test/out/c/test_schach_runner.o index 1630731..f82262b 100644 Binary files a/build/test/out/c/test_schach_runner.o and b/build/test/out/c/test_schach_runner.o differ diff --git a/build/test/out/test_schach.out b/build/test/out/test_schach.out index a4d07e1..9081829 100644 Binary files a/build/test/out/test_schach.out and b/build/test/out/test_schach.out differ diff --git a/build/test/results/test_schach.pass b/build/test/results/test_schach.pass index 437722f..2d96714 100644 --- a/build/test/results/test_schach.pass +++ b/build/test/results/test_schach.pass @@ -19,4 +19,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.15252570000302512 +:time: 1.9844588999985717 diff --git a/src/main.c b/src/main.c index 756a006..e27ca00 100644 --- a/src/main.c +++ b/src/main.c @@ -8,8 +8,9 @@ int main() { int y = 8; char** Spielfeld = create_Schachfeld(x, y); + while (checkmate() == 0){ print_Schachfeld(Spielfeld, x, y); - + } free_Schachfeld(Spielfeld, x); return 0; diff --git a/src/schach.c b/src/schach.c index 9c87ce1..a82fa23 100644 --- a/src/schach.c +++ b/src/schach.c @@ -38,6 +38,10 @@ 8.Schritt 2-8 wird Wiederholt */ +int checkmate(){ + return 0; +} + int read_input(){ int koordinate = 0; diff --git a/src/schach.h b/src/schach.h index 6412138..8bd499e 100644 --- a/src/schach.h +++ b/src/schach.h @@ -6,7 +6,7 @@ void print_Schachfeld(char** , int , int ); char** create_Schachfeld(int , int ); void free_Schachfeld(char** , int ); - +int checkmate(); int read_input(); void choose_Figur();