import random

while True:
    print("Enter Choise\n1. Rock\n2. Paper\n3. Scissor\n")

    choice = int(input("User's turn..."))

    while choice > 3 or choice < 1:
        choice - int(input("Enter Valid Input"))

    if (choice == 1):
        choice_name = "Rock"
    elif (choice == 2):
        choice_name = "Paper"
    else:
        choice_name = "Scissor"
    
    print("User choice is:", choice_name)
    print("Now computer's turn...")

    comp_choice = random.randint(1, 3)

    if (comp_choice == 1):
        comp_choice_name = "Rock"
    elif (comp_choice == 2):
        comp_choice_name = "Paper"
    else:
        comp_choice_name = "Scissor"

    print("Computer choice is:", comp_choice_name)
    print(choice_name, "V/S", comp_choice_name)

    if (choice == comp_choice):
        result = "Draw" 
    elif ((choice == 1 and comp_choice == 2) or (choice == 2 and comp_choice == 1)):
        print("Paper Wins...")
        result = "Paper"
    elif ((choice == 1 and comp_choice == 3) or (choice == 3 and comp_choice == 1)):
        print("Rock Wins...")
        result = "Rock"
    else:
        print("Scissor Wins...")
        result = "Scissor"

    if (result == "Draw"):
        print("Game Draw...")
    elif (result == comp_choice_name):
        print("USER Wins...")
    else:
        print("Computer Wins...")

    print("Do you want to play again? (Y/N)")

    ans = input()

    if (ans == 'n' or ans == 'N'):
        break

else:
    print("Thanks for playing...")