diff --git a/src/main/c/Template/Battleship_game.c b/src/main/c/Template/Battleship_game.c index 31faf5f..39f5a59 100644 --- a/src/main/c/Template/Battleship_game.c +++ b/src/main/c/Template/Battleship_game.c @@ -115,7 +115,7 @@ int multiplayer() { !feld(multi); - int k = 1; + int k1 = 1; do { @@ -128,9 +128,27 @@ int multiplayer() { ships1[coor] = 'X'; !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; }