Browse Source

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

remotes/origin/Battleship_game
fdai7729 11 months ago
parent
commit
01132fd49e
  1. 12
      src/main/c/Template/Battleship_game.c

12
src/main/c/Template/Battleship_game.c

@ -293,6 +293,18 @@ int singleplayer() {
} }
} }
if (ships1[coor] == 'X') {
progplayer[coor] = 'X';
score2 += 1;
system("cls");
printf("Treffer!!\n\n");
}
else {
progplayer[coor] = '-';
system("cls");
printf("Kein Treffer.\n\n");
}
if (score1 >= score2) { if (score1 >= score2) {
higherscore = score1; higherscore = score1;
} }

Loading…
Cancel
Save