Rounds=int(input("Enter the number of rounds."))#So hat the number of rounds get inputss.
Control_variable=0#Unitialising the control variable.
while Control_variablePoints_2:#If Player 1 has more points than Player 2.
PLAYER_1=="SCISSORS" and PLAYER_2=="PAPER" or
PLAYER_1=="PAPER" and PLAYER_2=="ROCK"):#If Player 1's choice defeats Player 2's choice.
Points_2=Points_2+1#Player 1 gets 1 point.
elif(PLAYER_1==PLAYER_2):#If bothof them make the same choice.
Points_1=Points_1+0#Nothing happens.
else:#If anything else happens.
print("Error.")#Printing an appropriate message.
Control_variable+=1#Round is over.
if Points_1>Points_2:#If Player 1 has more points than Player 2.
print("Player_1 wins.")#Printing an appropriate message.
elif Points_2>Points_1:#If Player 2 has more points than Player 1,
print("PLayer_2 wins.")#Printing an appropriate message.
elif Points_2==Points_1:If both the points are the same.
print("It is a tie.")#Printing an appropriate message.
else:#If anything else happens.
print("Error.")#Printing an appropriate message.
I am a human who transcribes posts to improve accessibility on Lemmy. Transcriptions help people who use screen readers or other assistive technology to use the site. For more information, see here.
Image Transcription: Code
I am a human who transcribes posts to improve accessibility on Lemmy. Transcriptions help people who use screen readers or other assistive technology to use the site. For more information, see here.