Create a program for the classic game 'Rock, Paper, Scissors' and play against the computer. Recap how to use variables, ask for user input and decide who wins with conditional if statements. Also try some simple ASCII art to display the rock, paper or scissors.
A program to play the classic game Rock, Paper, Scissors.
Getting user input
Printing text to the screen
If statements and comparison operators
ASCII art
A computer or tablet capable of accessing the online interactive Python environment called Trinket. You can create a trinket.io account using your google school account; or
If you don’t want to create an account you can use the embedded interactive trinkets below to run code and see what happens; or
You can use a computer that has the Python programme installed.
Sign in to your trinket.io account, click on your name and then select ‘New Trinket’ and ‘Python’ from the drop-down menus.
Use this link to go to the Code Club online project: projects.raspberrypi.org/en/projects/rock-paper-scissors
Follow each step in the project, type code into your own trinket. You can look at the embedded trinket below for help if you get stuck.