|
|
@ -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; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|