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