One fact, five answers: the whole game is the question "is my cell lit?"
Heimleuchten has one fact. A cell of the room is lit, or it is not. Everything in the night answers that fact in its own way, and that is the whole game.
The answers
- Bees fly to the brighter cell next to them until none is brighter. In the dark they sleep where they are.
- Beetles crawl one cell away from the light.
- Wasps wake a little with every beat of light on their nest. At 3 they come out and chase every swarm that is awake back to where it was found.
- Glow-caps keep the lantern's light for 4 beats after it has left them.
- A stone slab opens the gates while you, a beetle or the lantern stands on it.
You do three things: walk, open or shut the lantern, set it down or pick it up.
Why one fact is enough
The same light pulls the bees, pushes the beetles and wakes the wasps. You can never do just one of the three. So every room is the same question in a new place: where does the lamp stand, and when is it shut? We did not have to invent 11 puzzles. We had to find 11 places where the answers get in each other's way.
The night moves when you move
Nothing in the game happens while you think. Every thing you do is one beat, and the room answers in a fixed order: the caps, the beetles, the gates, the wasps, the bees. That comes from a rule we hold for all our small games: what is hard should be the rule, not the hands. It also made the next step possible, because a game that moves in beats can be searched from its first position to its last.
A model before a picture
The rules were a file with no picture in it, played as rows of letters, before a single bush was drawn. The first draft let the wasps forget everything after one beat of dark. Thinking one room through on paper showed that blinking the lantern then makes them harmless. Now the dark calms them one beat at a time, and a nest is something you have to plan around.
For your own game
Ask your AI to write the rules of your game as one file that knows nothing about the screen, with a test for each thing that can happen. Ask for the picture after that.
Read up
The pages of ours this note builds on, and what others have written about its point.
A nest that counts to three and a cap that counts down from four are two of these.
The check that finds a state nothing leads out of, before a player does.
The slab that holds a gate open, as a blueprint with its own tested code.
Does Modelling First Make AI Game Code Correct? We Tested It
What we measured about drawing a model first, and why the gain is in checking it.
Next note Every room is searched: what a program found in our rooms