Hacking
Hacking
def play_game():
user_choice = input("Enter your choice (rock/paper/scissors): ")
options = ["rock", "paper", "scissors"]
computer_choice = random.choice(options)
if user_choice == computer_choice:
print("It's a tie!")
elif (user_choice == "rock" and computer_choice == "scissors") or \
(user_choice == "scissors" and computer_choice == "paper") or \
(user_choice == "paper" and computer_choice == "rock"):
print("You win!")
else:
print("Computer wins!")
play_game()
```
Run this code, and you can play a game of Rock, Paper, Scissors against the
computer!