The shapes being "rock" (a fist), "paper" (a flat hand), and "scissors" (a fist with the index and middle fingers together forming a V). The rules are very simple where a player who decides to play rock beats another player who chooses scissors ("rock crushes scissors") but loses to one who has chosen paper ("paper covers rock"); choosing paper will lose to a play of scissors ("scissors cut paper").
If both players choose the same shape, the game is a draw .
This is a nice for several reasons to use with students in their programming!
Firstly, it is a nice way to use conditionals in a very simple and limited way as the game only has three possible outcomes for a player and three possible choice to make:
Secondly, there is a need to use some kind of random selection to play against a computer opponent.
Thirdly, a counter variable can be added with a loop as an extension task to keep score
Planning the program can be difficult from students that are getting started with conditionals, some students will be able to figure out how to structure the questions that the computer needs to ask. For other students, this flowchart can give a quick overview of what is required: