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 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
A character moves through positions.
They collect treasure objects.
Treasure updates money or experience.
The game tracks progress over time.
Build path
These steps appear inside the editor so you can build one part at a time.
- 1
Step 1
Create a character
Create a Character object with a name.
- 2
Step 2
Create treasure items
Create at least two Treasure objects.
- 3
Step 3
Apply rewards
Use update_values to apply treasure effects.
- 4
Step 4
Move the player
Update the character position.
- 5
Step 5
Display results
Print final money, experience, and position.
More to explore
Want a different challenge?
Browse more guided projects, or come back and start this one whenever you are ready.