Skip to content

AusBoone/RockPaperScissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RockPaperScissors

Overview

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.

Game Logic

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.

Imports

The game utilizes the 'random' library to generate the computer's choice, and the 'os' library to clear the command line screen between rounds.

How to Play/Run the Game

  • 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.

About

A command-line based game of Rock Paper Scissors.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages