Mar-18-2020, 06:14 PM
everything running great but there is a bug that i cant find... there is not error coming back from this so basically i cant trace it back
--some times when input Scissors it return "Enter a Rock, Paper or Scissors not numbers please what the "
i put the screenshot if not working here is the link https://pasteboard.co/IZHil4E.jpg
--some times when input Scissors it return "Enter a Rock, Paper or Scissors not numbers please what the "
i put the screenshot if not working here is the link https://pasteboard.co/IZHil4E.jpgimport random
options = ["Rock", "Paper", "Scissors"]
player = input("Whats your name: ")
counter = 0
player_score = 0
computer_score = 0
while counter < 7:
y = str(input("Rock, Paper or Scissors: "))
x = random.choice(options)
counter += 1
if x == y:
print("Draw again....... ")
counter -= 1
# rock wins ....................... paper wins
elif y == "Rock" and x == "Paper":
player_score += 1
print("Fuck that your good! you win this time! ")
print(x)
elif y == "Scissors" and x == "Paper":
player_score += 1
print("That's some bullshoot dude again!!! ")
print(x)
elif y == "Paper" and x == "Rock":
player_score += 1
print("im outta here your FEAKNIN CHEATING!!! ")
print(x)
elif x == "Rock" and y == "Paper":
computer_score += 1
print("I beat yo ass you stupid your not going to make it!!! ")
print(x)
elif x == "Scissors" or y == "Paper":
computer_score += 1
print("that how you do it !!! ")
print(x)
elif x == "Paper" and y == "Rock":
computer_score += 1
print("I will be wining a ")
print(x)
elif y != str:
counter += 0
print("Enter a Rock, Paper or Scissors not numbers whats wrong with you!!")
if computer_score > player_score:
print("{} i win you doofus!! my score is {} and yours {}".format(player, computer_score, player_score))
else:
print("{} you win this your score is {} and mine is {} ".format(player, player_score, computer_score))
