rock = '''
    _______
---'   ____)
      (_____)
      (_____)
      (____)
---.__(___)
'''

paper = '''
    _______
---'   ____)____
          ______)
          _______)
         _______)
---.__________)
'''

scissors = '''
    _______
---'   ____)____
          ______)
       __________)
      (____)
---.__(___)
'''


import random, time

end_game = False

while end_game is not True: 
    player_choice = int(input("What do you choose? Type 0 for Rock, 1 for Paper or 2 for Scissors.  "))

    player_hand = ""
    player_call = ""
    com_choice = random.randint(0,3)
    com_hand = ""
    com_call = ""

    if player_choice == 0:
        player_hand = rock
        player_call = "Rock"
    elif player_choice == 1:
        player_hand = paper
        player_call = "Paper"
    elif player_choice == 2:
        player_hand = scissors
        player_call = "Scissors"
    else:
        print("Invalid option...You Lose!!")

    if com_choice == 0:
        com_hand = rock
        com_call = "Rock"
    elif com_choice == 1:
        com_hand = paper
        com_call = "Paper"
    else:
        com_hand = scissors
        com_call = "Scissors"

    if player_choice == com_choice:
        print(player_hand)
        print("You threw a " + player_call + "!")
        print(com_hand)
        print("The computer threw a " + com_call + "!")
        print("It's a draw!")
    elif player_choice == com_choice - 1:
        print(player_hand)
        print("You threw a " + player_call + "!")
        print(com_hand)
        print("The computer threw a " + com_call + "!")
        print("You lose!")
    elif player_choice == 2 and com_choice == 0:
        print(player_hand)
        print("You threw a " + player_call + "!")
        print(com_hand)
        print("The computer threw a " + com_call + "!")
        print("You lose!")
    else:
        print(player_hand)
        print("You threw a " + player_call + "!")
        print(com_hand)
        print("The computer threw a " + com_call + "!")
        print("You Win!!")
    
    replay = int(input("\nWould you like to run again?\n1 = Yes\n2 = No\n"))
    
    if replay == 2:
        end_game = True
    else:
        pass

print("Thanks for playing!")
time.sleep(5)

