diff --git a/src/main/c/Template/Battleship_game.c b/src/main/c/Template/Battleship_game.c index 9524763..e9bf2e5 100644 --- a/src/main/c/Template/Battleship_game.c +++ b/src/main/c/Template/Battleship_game.c @@ -41,6 +41,10 @@ int singleplayer() { int multiplayer() { char multi[100]; + char player1[100]; + char player2[100]; + char ships1[100]; + char ships2[100]; for (int i = 0; i <= 99; i++) { @@ -48,6 +52,30 @@ int multiplayer() { } + for (int i = 0; i <= 99; i++) { + + player1[i] = 'X'; + + } + + for (int i = 0; i <= 99; i++) { + + player2[i] = 'X'; + + } + + for (int i = 0; i <= 99; i++) { + + ships1[i] = 'X'; + + } + + for (int i = 0; i <= 99; i++) { + + ships2[i] = 'X'; + + } + !feld(multi);