diff --git a/build/test/out/c/schach.o b/build/test/out/c/schach.o index a743862..9644378 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 b721ff3..1d39d0e 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 3e0bcda..0a65181 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.051523500005714595 +:time: 0.1550635999883525 diff --git a/src/schach.c b/src/schach.c index e799e42..e8ba686 100644 --- a/src/schach.c +++ b/src/schach.c @@ -75,6 +75,35 @@ void choose_Figur(char active_Player, char** spielfeld){ y = read_input(); + char ausgewählte_Figur = spielfeld[x][y]; + + if (active_Player == 'w'){ + 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; + } + + } } void print_Schachfeld(char** Spielfeld, int x, int y) {