File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 193
193
194
194
# Compare choices and determine the winner
195
195
if player_choice == computer_choice :
196
- print ( "It's a tie! Let's play again." )
196
+
197
197
elif player_choice == "rock" :
198
198
if computer_choice == "scissors" :
199
- print ("You win! Rock beats Scissors. " )
199
+ print ("You win!" )
200
200
player_score += 1
201
201
else :
202
- print ("You lose! Paper beats Rock. " )
202
+ print ("You lose!" )
203
203
computer_score += 1
204
204
elif player_choice == "paper" :
205
205
if computer_choice == "rock" :
206
- print ("You win! Paper beats Rock. " )
206
+ print ("You win!" )
207
207
player_score += 1
208
208
else :
209
- print ("You lose! Scissors beats Paper. " )
209
+ print ("You lose!" )
210
210
computer_score += 1
211
211
elif player_choice == "scissors" :
212
212
if computer_choice == "paper" :
213
- print ("You win! Scissors beats Paper. " )
213
+ print ("You win!" )
214
214
player_score += 1
215
215
else :
216
- print ("You lose! Rock beats Scissors. " )
216
+ print ("You lose!" )
217
217
computer_score += 1
218
218
else :
219
219
print ("Invalid choice. Please choose either Rock, Paper, or Scissors." )
220
220
221
- # Game ends, determine the final winner
222
- print ("------------------------------" )
223
- print ("Final Scores:" )
224
- print ("Player Score: " , player_score )
225
- print ("Computer Score: " , computer_score )
226
- print ("------------------------------" )
227
221
You can’t perform that action at this time.
0 commit comments