|
@ -728,9 +728,10 @@ int singleplayer() { |
|
|
char progplayer[100]; |
|
|
char progplayer[100]; |
|
|
char ships1[100]; |
|
|
char ships1[100]; |
|
|
char ships2[100]; |
|
|
char ships2[100]; |
|
|
|
|
|
int* gencoor = coorgenerator(); |
|
|
|
|
|
|
|
|
char letco; |
|
|
char letco; |
|
|
int numco; |
|
|
|
|
|
|
|
|
int numco, ranco; |
|
|
int coor, coor1, coor2; |
|
|
int coor, coor1, coor2; |
|
|
int score1 = 0; |
|
|
int score1 = 0; |
|
|
int score2 = 0; |
|
|
int score2 = 0; |
|
@ -760,6 +761,11 @@ int singleplayer() { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i <= 18; i++) { |
|
|
|
|
|
ranco = gencoor[i]; |
|
|
|
|
|
ships2[ranco] = 'X'; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
!feld(ships1); |
|
|
!feld(ships1); |
|
|
|
|
|
|
|
|
printf("\nPlayer, platziere dein Schlachtschiff (5).\nKoordinate: "); |
|
|
printf("\nPlayer, platziere dein Schlachtschiff (5).\nKoordinate: "); |
|
|