From a573824325f9b413618060eee6fdcd6bc60c51bb Mon Sep 17 00:00:00 2001 From: fdlt3859 Date: Fri, 3 Feb 2023 21:56:27 +0000 Subject: [PATCH] Stores and shows score for RockPprSciss --- src/main/quizproject.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 68b566f..d41cd44 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -1814,11 +1814,13 @@ void v_play_rockpapersciss(){ { printf("\nYou lose! I picked Paper\n\n"); computer_score++; + printf("You have %d/3 points and I have %d/3 points.\n\n",player_score, computer_score); } else { printf("\nYou win! I picked Scissors\n\n"); player_score++; + printf("You have %d/3 points and I have %d/3 points.\n\n",player_score, computer_score); } } else if (player_choice == PAPER) @@ -1827,6 +1829,7 @@ void v_play_rockpapersciss(){ { printf("\nYou win! I picked Rock\n\n"); player_score++; + printf("You have %d/3 points and I have %d/3 points.\n\n",player_score, computer_score); } else if (computer_choice == PAPER) { @@ -1836,6 +1839,7 @@ void v_play_rockpapersciss(){ { printf("\nYou lose! I picked Scissors\n\n"); computer_score++; + printf("You have %d/3 points and I have %d/3 points.\n\n",player_score, computer_score); } } else if (player_choice == SCISSORS) @@ -1844,11 +1848,13 @@ void v_play_rockpapersciss(){ { printf("\nYou lose! I picked Rock\n\n"); computer_score++; + printf("You have %d/3 points and I have %d/3 points.\n\n",player_score, computer_score); } else if (computer_choice == PAPER) { printf("\nYou win! I picked Paper\n\n"); player_score++; + printf("You have %d/3 points and I have %d/3 points.\n\n",player_score, computer_score); } else {