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 alone

Shared 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

1

The player enters rock, paper, or scissors.

2

The computer randomly chooses one of the three options.

3

The program compares the two choices.

4

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. 1

    Step 1

    Check for a draw

    Use an if statement to check whether player_choice and computer_choice are the same.

    Complete in the editorHint available
  2. 2

    Step 2

    Add the player win conditions

    Use elif to check the three winning combinations for the player.

    Complete in the editorHint available
  3. 3

    Step 3

    Handle the computer win

    Use else for all the remaining outcomes where the computer wins.

    Complete in the editorHint available
  4. 4

    Step 4

    Print the result clearly

    Print a message telling the user whether they won, lost, or drew.

    Complete in the editorHint available
  5. 5

    Step 5

    Improve the game

    Add validation so the user must enter rock, paper, or scissors correctly.

    Complete in the editorHint available

More to explore

Browse more guided projects, or come back and start this one whenever you are ready.