Question: i would help with this i keep getting 8 / 1 0 here is my code below: import random ROCK = 0 PAPER = 1

i would help with this i keep getting 8/10 here is my code below:
import random
ROCK =0
PAPER =1
SCISSORS =2
# Read random seed to support testing (do not alter) and starting credits
seed = int(input())
# Set the seed for random
random.seed(int(seed))
# Type your code here.
player_1= input()
player_2= input()
rounds =0
count =0
win_count1=0
win_count2=0
while True:
rounds = int(input())
if rounds >=1:
break
else:
print("Rounds must be >0")
print(player_1+" vs "+ player_2+" for "+ str(rounds)+" rounds")
while count rounds:
p1= random.randint(0,2)
p2= random.randint(0,2)
if p1== p2:
print("Tie")
elif p1== ROCK:
if p2== SCISSORS:
print(player_1+" wins with rock")
win_count1= win_count2+1
else:
print(player_2+" wins with paper")
win_count2= win_count2+1
count = count +1
elif p1== PAPER:
if p2== ROCK:
print(player_1+" wins with paper")
win_count1= win_count1+1
else:
print(player_2+" wins with scissors")
win_count2= win_count2+1
count = count +1
elif p1== SCISSORS:
if p2== PAPER:
print(player_1+" wins with scissors")
win_count1= win_count1+1
else:
print(player_2+ "wins with rock")
win_count2= win_count2+1
count = count +1
print(player_1+" wins "+ str(win_count1)+" and "+ player_2+" wins "+ str(win_count2))
 i would help with this i keep getting 8/10 here is

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!