I know that there are more clever and short answers than this, but it's not printing the conditions that I give it. Do you have solutions for this? And how can I use if statements in loops?
import random
game = input("Do you want to play the game? yes/no")
for x in range(1):
pc_input = random.randint(1,3)
rock = 1
paper = 2
scissors = 3
if game == "yes":
usr_input = input("Rock , paper , scissors ")
if pc_input == 1 and usr_input == 1:
print("Tied game...")
if pc_input == 1 and usr_input == 2:
print("You won")
if pc_input == 1 and usr_input == 3:
print("You lost")
if pc_input == 2 and usr_input == 1:
print("You lost")
if pc_input == 2 and usr_input == 2:
print("Tied game...")
if pc_input == 2 and usr_input == 3:
print("You won")
if pc_input == 3 and usr_input == 1:
print("You won")
if pc_input == 3 and usr_input == 2:
print("You lost")
if pc_input == 3 and usr_input == 3:
print("Tied game...")