diff --git a/build/test/out/c/schach.o b/build/test/out/c/schach.o index 9644378..e3466ef 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/test_schach.out b/build/test/out/test_schach.out index 1d39d0e..fa26dd9 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 0a65181..a49422f 100644 --- a/build/test/results/test_schach.pass +++ b/build/test/results/test_schach.pass @@ -31,4 +31,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.1550635999883525 +:time: 1.9014686000300571 diff --git a/src/schach.c b/src/schach.c index e8ba686..eaeca25 100644 --- a/src/schach.c +++ b/src/schach.c @@ -79,30 +79,56 @@ void choose_Figur(char active_Player, char** spielfeld){ if (active_Player == 'w'){ switch(ausgewählte_Figur){ - case 'D' : - //dame.c; + case 'D' : + //dame.c; break; - case 'K' : - //könig.c; + case 'K' : + //könig.c; break; case 'L' : - //läufer.c; + //läufer.c; break; - case 'T' : - //turm.c; + case 'T' : + //turm.c; break; - case 'P' : - //pferd.c; + case 'P' : + //pferd.c; break; - case 'B' : - //bauer.c; + case 'B' : + //bauer.c; break; - default : - printf("Wrong Input"); + default : + printf("Wrong Input"); choose_Figur(active_Player,spielfeld); break; } + }else{ + switch(ausgewählte_Figur){ + case 'd' : + //dame.c; + break; + case 'k' : + //könig.c; + break; + case 'l' : + //läufer.c; + break; + case 't' : + //turm.c; + break; + case 'p' : + //pferd.c; + break; + case 'b' : + //bauer.c; + break; + default : + printf("Wrong Input"); + choose_Figur(active_Player,spielfeld); + break; + + } } }