|
@ -79,30 +79,56 @@ void choose_Figur(char active_Player, char** spielfeld){ |
|
|
|
|
|
|
|
|
if (active_Player == 'w'){ |
|
|
if (active_Player == 'w'){ |
|
|
switch(ausgewählte_Figur){ |
|
|
switch(ausgewählte_Figur){ |
|
|
case 'D' : |
|
|
|
|
|
//dame.c; |
|
|
|
|
|
|
|
|
case 'D' : |
|
|
|
|
|
//dame.c; |
|
|
break; |
|
|
break; |
|
|
case 'K' : |
|
|
|
|
|
//könig.c; |
|
|
|
|
|
|
|
|
case 'K' : |
|
|
|
|
|
//könig.c; |
|
|
break; |
|
|
break; |
|
|
case 'L' : |
|
|
case 'L' : |
|
|
//läufer.c; |
|
|
|
|
|
|
|
|
//läufer.c; |
|
|
break; |
|
|
break; |
|
|
case 'T' : |
|
|
|
|
|
//turm.c; |
|
|
|
|
|
|
|
|
case 'T' : |
|
|
|
|
|
//turm.c; |
|
|
break; |
|
|
break; |
|
|
case 'P' : |
|
|
|
|
|
//pferd.c; |
|
|
|
|
|
|
|
|
case 'P' : |
|
|
|
|
|
//pferd.c; |
|
|
break; |
|
|
break; |
|
|
case 'B' : |
|
|
|
|
|
//bauer.c; |
|
|
|
|
|
|
|
|
case 'B' : |
|
|
|
|
|
//bauer.c; |
|
|
break; |
|
|
break; |
|
|
default : |
|
|
|
|
|
printf("Wrong Input"); |
|
|
|
|
|
|
|
|
default : |
|
|
|
|
|
printf("Wrong Input"); |
|
|
choose_Figur(active_Player,spielfeld); |
|
|
choose_Figur(active_Player,spielfeld); |
|
|
break; |
|
|
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; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|