Browse Source

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

remotes/origin/Battleship_game
fdai7729 11 months ago
parent
commit
0ecc47c3e7
  1. 24
      src/main/c/Template/Battleship_game.c

24
src/main/c/Template/Battleship_game.c

@ -115,7 +115,7 @@ int multiplayer() {
!feld(multi); !feld(multi);
int k = 1;
int k1 = 1;
do do
{ {
@ -128,9 +128,27 @@ int multiplayer() {
ships1[coor] = 'X'; ships1[coor] = 'X';
!feld(ships1); !feld(ships1);
k++;
k1++;
} while (k < 17);
} while (k1 < 17);
int k2 = 1;
do
{
printf("Player 2, platziere deine Schiffe.\nKoordinate: ");
scanf("%c%d", &letco, &numco);
coor = convertcoor(letco, numco);
ships1[50] = 'X';
!feld(ships1);
k2++;
} while (k2 < 17);
return 0; return 0;
} }

Loading…
Cancel
Save