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 mini game system where a character collects treasure and gains rewards.

What you'll learn

  • How multiple classes interact
  • How to pass objects into methods
  • How to design systems, not just functions
  • How to structure larger programs

How it works

1

A character moves through positions.

2

They collect treasure objects.

3

Treasure updates money or experience.

4

The game tracks progress over time.

Build path

These steps appear inside the editor so you can build one part at a time.

  1. 1

    Step 1

    Create a character

    Create a Character object with a name.

    Complete in the editor
  2. 2

    Step 2

    Create treasure items

    Create at least two Treasure objects.

    Complete in the editor
  3. 3

    Step 3

    Apply rewards

    Use update_values to apply treasure effects.

    Complete in the editor
  4. 4

    Step 4

    Move the player

    Update the character position.

    Complete in the editor
  5. 5

    Step 5

    Display results

    Print final money, experience, and position.

    Complete in the editor

More to explore

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