From b5518b41cdc8ba21e93da1e74d3b6ee2c3421727 Mon Sep 17 00:00:00 2001 From: fdai8040 Date: Wed, 31 Jan 2024 16:49:42 +0000 Subject: [PATCH] =?UTF-8?q?refactoring:=5Fverbesserung=5Fpunktez=C3=A4hlen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/c/Pong/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/c/Pong/game.c b/src/main/c/Pong/game.c index c1d554f..6e3bc64 100644 --- a/src/main/c/Pong/game.c +++ b/src/main/c/Pong/game.c @@ -124,7 +124,7 @@ int main(){ int maxScore = 5; int isPaused = 0; - while (1) { + while (score1 < maxScore && score2 < maxScore) { //Steuerung für Schläger 1 if (!isPaused && kbhit()){ char input = getch();