This is a command-line based game of Rock Paper Scissors. The game is played between a user and a computer, and the objective is to beat the computer by choosing the winning option. The game is written in Python and utilizes the random and os libraries.
The game follows the classic rules of Rock Paper Scissors, with the user choosing one of three options: rock, paper, or scissors. The computer also chooses one of these options randomly. The winner is determined by the following rules:
- Rock beats scissors
- Scissors beat paper
- Paper beats rock If the user and the computer choose the same option, the game is considered a tie. The game keeps track of the user's score, the computer's score, and the high score.
The game utilizes the 'random' library to generate the computer's choice, and the 'os' library to clear the command line screen between rounds.
- Download or clone the RockPaperScissors.py file from the repository.
- Open a terminal or command prompt and navigate to the directory where the RockPaperScissors.py file is located.
- Run the game by typing python RockPaperScissors.py in the terminal/command prompt.
- Follow the on-screen instructions to play the game. Choose an option by typing rock, paper, or scissors when prompted.