|
@ -115,15 +115,22 @@ int multiplayer() { |
|
|
|
|
|
|
|
|
!feld(multi); |
|
|
!feld(multi); |
|
|
|
|
|
|
|
|
for (int i = 0; i <= 16; i++) { |
|
|
|
|
|
|
|
|
int k = 1; |
|
|
|
|
|
|
|
|
printf("Player 1, platziere deine Schiffe."); |
|
|
|
|
|
|
|
|
do |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
printf("Player 1, platziere deine Schiffe.\nKoordinate: "); |
|
|
scanf("%c%d", &letco, &numco); |
|
|
scanf("%c%d", &letco, &numco); |
|
|
|
|
|
|
|
|
coor = convertcoor(letco, numco); |
|
|
coor = convertcoor(letco, numco); |
|
|
|
|
|
|
|
|
ships1[coor] = 'X'; |
|
|
ships1[coor] = 'X'; |
|
|
|
|
|
!feld(ships1); |
|
|
|
|
|
|
|
|
|
|
|
k++; |
|
|
|
|
|
|
|
|
|
|
|
} while (k < 17); |
|
|
|
|
|
|
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |
|
|