Code in a world

A Python scavenger hunt inside a Minecraft copy of a real place, built to teach kids to code where they already love to play.

Role
Game UX design and research, teaching
Tools
Minecraft Education, Python
Methods
Spatial recreation, play testing
A coding studio rebuilt block by block in Minecraft
The studio, rebuilt block by block from photos and video.

Question

Kids learn fastest when the lesson lives inside something they already care about. For most of the kids I taught, that was Minecraft. What if the first lines of code they wrote moved things in a world they recognized?

Approach

I rebuilt the kids' coding studio inside Minecraft from reference photos and video, so the virtual room matched the one they sat in. Then I designed a Python scavenger hunt through it. Each clue asked kids to write a little code to explore, find the next object and unlock the next step. Loops, conditions and coordinates stopped being abstract because kids could see each line change the world.

I tested it with the kids in the room and adjusted the clues to what kept them curious. The world lives on every device in the coding studio.

Why world models

A world model is a system's internal picture of how a place works, good enough to predict what happens next. Building a faithful digital copy of a real room raised the same questions: what has to be captured, what can be left out, and how actions in the copy should map back to reality. Minecraft has also become a common testbed for AI agents for the same reason it works for kids. It is a world simple enough to reason about and rich enough to learn from.