Lets make a game of Rock paper scissor.
The following numbers represent each input
- 1 - Paper
- 2 - Scissors
- 3 - Rock
i.e. 1 means paper, 2 means scissor, 3
- If Rock and paper, Rock wins
- If Rock and Scissor, Rock wins
- If Paper and Scissor, Scissor wins
- If Paper and Rock, Rock wins
Start by writing a Pseudocode to ensure you have your logic right before writing anycode.