diff --git a/src/main/c/Template/Battleship_game.c b/src/main/c/Template/Battleship_game.c index f44829d..50d9322 100644 --- a/src/main/c/Template/Battleship_game.c +++ b/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) { higherscore = score1; }