Browse Source

Update src/main/c/Template/Battleship_game.c

remotes/origin/Battleship_game
fdai7729 11 months ago
parent
commit
85bbb6ad66
  1. 11
      src/main/c/Template/Battleship_game.c

11
src/main/c/Template/Battleship_game.c

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

Loading…
Cancel
Save