import random
print("--- WELCOME TO THE ARENA ---")
print("Options: rock, paper, scissors")
# Score tracking
user_score = 0
comp_score = 0
while True:
options = ["rock", "paper", "scissors"]
computer_choice = random.choice(options)
user_choice = input("\nYour move (or type 'quit'): ").lower()
if user_choice == "quit":
print(f"\nFINAL SCORE -> You: {user_score} | Computer: {comp_score}")
print("Thanks for playing!")
break
if user_choice not in options:
print("Invalid move! Try again.")
continue
print(f"Computer chose: {computer_choice}")
# Logic to see who wins
if user_choice == computer_choice:
print("It's a tie!")
elif (user_choice == "rock" and computer_choice == "scissors") or \
(user_choice == "paper" and computer_choice == "rock") or \
(user_choice == "scissors" and computer_choice == "paper"):
print("YOU WIN!")
user_score += 1
else:
print("YOU LOSE!")
comp_score += 1
print(f"Scoreboard -> You: {user_score} | Computer: {comp_score}")