← all notes

note 4 of 4

building a world before the ai

why i built a quiet village first, as a training ground for a small ai model, and what comes next.

written
reading time
about 3 minutes

I want a small AI model of my own to learn how to make a home. The first thing I built for it was not a model. It was a quiet mountain village.

This note explains why the world came first, and what comes next.

where it stands today

I will start with the honest part. The world is built and playable. The AI training is the next stage, and it is not built yet. No model has been trained on it, and no model is playing it.

why build a world at all

A model learns by going round one loop many times. It looks at the world, chooses something to do, sees what happened, and is told how well it is doing.

Small models learn best from a simple, fair world. They need goals they can reach, rules that do not change, and quick feedback.

Most games are the wrong size for that. They are too big, too fast or too random. Real-world data is messy in another way: it is hard to tell a model what “better” means.

So I made my own small world: one village, a handful of materials, and one clear goal, which is to build a house.

the village

You play a villager in a mountain village in old Japan. You cut bamboo with a katana, and you gather wood, stone, straw and flowers.

Then you build a house piece by piece. There are seven pieces: floor, post, wall, door, roof, veranda and flowers. They snap to the traditional ken grid, with 1.82 metres between posts.

Day turns into night, and the game saves your progress. It is made in Godot, in about 11,000 lines of GDScript.

what makes it a good teacher

I made several choices with the learner in mind.

  • One clear goal, with steps that build on each other. Gather, have enough, place a piece, finish the house.
  • Progress can be measured. The inventory is a plain list of amounts, and every piece has an exact cost.
  • The rules explain themselves. A piece that does not fit says why, on the screen. A learner that only hears “no” has to guess. A learner that hears why can fix it.
  • Mistakes can be undone. Taking a piece away gives its materials back, so a learner can try again without getting stuck.
  • The world is the same every time. One map decides where everything is, so the results of two training runs can be compared.

The game can already run a little by itself. It has test switches: an autopilot that walks the main path on its own, and fixed test cameras. That is the first step toward letting an AI control the villager.

what comes next

  • Let the AI control the villager through the same actions a player has.
  • Record what it sees and does, and score its progress toward a finished house.
  • Train my small model on that, and show its first attempts.

There are no AI results to show yet, because training has not started. I will not write about results until there are some.

why this order

A model can only be as good as what it learns from. I wanted mine to have something worth learning.

And the world does not have to wait for the model. A person can play it today, from the first cut of bamboo to a finished house.

parth, december 2026