Skip to content

Rock paper scissors game developed by Lisa Ogbechie as a task during the Zuri x I4G training on Backend-Python.

Notifications You must be signed in to change notification settings

princesslisa/Rock-Paper-Scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rock-Paper-Scissors-by-Lisaogbechie

Rock paper scissors game developed by Lisa Ogbechie as a task during the Zuri x I4G training on Backend-Python.

The aim of the task was to learn more about creating and using python packages.

The choice method of the random module was used along with dictionaries and lists.

Rock-Paper-Scissors is a simple two-player game where, at a signal, players make figures with their hands, representing a rock, a piece of paper, or a pair of scissors

When the program is run, the user is asked to pick an option between "R", "P" or "S". If user input is invalid (not amongst our options), an error message is printed, and their input is asked for again.

Check both player's moves: If there is a winner, the winner is printed, and the program ends. If it's a tie (the computer and player pick the same move), the user input is asked for again and the game continues.