From beebe3fa928a1229b384733a62f36c497b56895e Mon Sep 17 00:00:00 2001 From: fdlt3859 Date: Fri, 3 Feb 2023 21:25:26 +0000 Subject: [PATCH] added a loop to end game after 3 wins RockPprScs --- src/main/quizproject.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index f172df5..78e4d22 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -1853,7 +1853,10 @@ void v_play_rockpapersciss(){ { printf("Invalid choice!\n"); } - + if (player_score == 3 || computer_score == 3) + { + break; + } } }