Start building now
Choose how you want to begin this project.
Open it privately for practice or create a shared workspace to build it together.
No setup required • Guided steps inside the editor
Private practice
Open a private editor and work through the steps at your own pace.
Start project aloneShared workspace
Create a live session so you can teach, pair, or build the project together.
What you'll build
A simple game that asks the player to choose rock, paper, or scissors and compares it with a random computer choice.
What you'll learn
- How to collect and check text input
- How to use random choice in Python
- How to compare multiple outcomes with if and elif
- How to build a simple game with clear rules
How it works
The player enters rock, paper, or scissors.
The computer randomly chooses one of the three options.
The program compares the two choices.
It prints whether the player wins, loses, or draws.
Build path
These steps appear inside the editor so you can build one part at a time.
- 1
Step 1
Check for a draw
Use an if statement to check whether player_choice and computer_choice are the same.
- 2
Step 2
Add the player win conditions
Use elif to check the three winning combinations for the player.
- 3
Step 3
Handle the computer win
Use else for all the remaining outcomes where the computer wins.
- 4
Step 4
Print the result clearly
Print a message telling the user whether they won, lost, or drew.
- 5
Step 5
Improve the game
Add validation so the user must enter rock, paper, or scissors correctly.
More to explore
Want a different challenge?
Browse more guided projects, or come back and start this one whenever you are ready.