6/21/22

Rock, Paper, Scissors in Python

 Rock, Paper, Scissors is a very popular game played amongst children and even adults.

It is also a very good project for beginners because it implements i/o, data modification, randomizing, conditions and others.


The Algorithm

  1. A list with rock, paper and scissors should be create as the computers inputs
  2. A string input should be taken from the user and changed to lower case
  3. The string must be an acceptable input else an error should be passed
  4. The computer should pick a random input from the list
  5. Both inputs (user and computer) should be compared according to the rules of the game and a winner should be selected.
Its really simple and straight forward. But if you don't know how to go about it, here is my source code.





Blog Archive