This project is a simple, console-based implementation of the classic game Rock, Paper, Scissors. The game is played against an AI opponent, which makes its choices randomly.
The game is divided into three main functions:
get_user_choice(): This function displays the options to the user and takes their input. The user can choose between Rock, Paper, Scissors, or Quit.
get_computer_choice(): This function uses the random module to generate the AI's choice. It can choose between Rock (1), Paper (2), and Scissors (3).
determine_winner(user_choice, computer_choice): This function takes in the choices of the user and the AI and determines the winner according to the rules of the game. It returns a string announcing whether the user won, lost, or tied.
The game continues in a loop until the user decides to quit. This project is a great example of a simple interactive programand demonstrates the use of basic Python concepts like functions, loops, and conditionals.
Log in or sign up for Devpost to join the conversation.