Browse Source

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

remotes/origin/Battleship_game
fdai7729 11 months ago
parent
commit
6deabe9039
  1. 28
      src/main/c/Template/Battleship_game.c

28
src/main/c/Template/Battleship_game.c

@ -41,6 +41,10 @@ int singleplayer() {
int multiplayer() { int multiplayer() {
char multi[100]; char multi[100];
char player1[100];
char player2[100];
char ships1[100];
char ships2[100];
for (int i = 0; i <= 99; i++) { 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); !feld(multi);

Loading…
Cancel
Save