From efcde861fccf859dae5ee41d18d05f7ff38026c9 Mon Sep 17 00:00:00 2001 From: fdai7729 Date: Wed, 7 Feb 2024 00:14:07 +0000 Subject: [PATCH] Update src/main/c/Template/Battleship_game.c --- src/main/c/Template/Battleship_game.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/c/Template/Battleship_game.c b/src/main/c/Template/Battleship_game.c index e06207a..9be5bec 100644 --- a/src/main/c/Template/Battleship_game.c +++ b/src/main/c/Template/Battleship_game.c @@ -396,6 +396,13 @@ int multiplayer() { } + if (score1 = 16) { + printf("Player 1 hat gewonnen."); + } + if (score1 = 16) { + printf("Player 1 hat gewonnen."); + } + return 0; } @@ -404,7 +411,7 @@ int main() { int player; - printf("*Battleship*\n\n Single player: press <1>\n Multiplayer: press <2>\n"); + printf("*Schiffeversenken*\n\n Single player: Drück <1>\n Multiplayer: Drück <2>\n"); scanf("%d", &player); if (player == 1) {