diff --git a/src/main/c/Template/Battleship_game.c b/src/main/c/Template/Battleship_game.c index 315a2aa..31faf5f 100644 --- a/src/main/c/Template/Battleship_game.c +++ b/src/main/c/Template/Battleship_game.c @@ -115,15 +115,22 @@ int multiplayer() { !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); coor = convertcoor(letco, numco); ships1[coor] = 'X'; + !feld(ships1); + + k++; + } while (k < 17); return 0; }