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
- A list with rock, paper and scissors should be create as the computers inputs
- A string input should be taken from the user and changed to lower case
- The string must be an acceptable input else an error should be passed
- The computer should pick a random input from the list
- 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.