← All worlds

Engine Lab

Raw JSON harness

The engine loads a world and an agent's brain from data, then loops: observe → decide → act → update → render. Every layer of the brain is editable below — change goals, states, rules, functions, or memory, press Apply & Reset, and the same engine executes what you wrote.

wallvisitedgoalstart▶ robot
Debug panel⌄Idle

Decision pipeline

Tick0
Active goalreach-goal
Active stateexplore
Triggered ruleexplore-advance
Executed functionstep
Returned actionmoveForward

Why this action?

WHEN !wallAhead

This was the first top-to-bottom rule whose WHEN condition was true and whose next action was executable.

World observation
Position(1, 1)
DirectionE
Wall ahead / left / rightno / yes / yes
Goal visibleno
Visited tiles1
Energy400
Holding on goal0 / 3
Memory1
notesLeft-hand wall follower. Memory is unused by this brain but is loaded and shown in the debug panel to prove the channel works.

rules.json — Reactions: when → do, plus optional state / setState / priority. Condition flags: wallAhead, wallLeft, wallRight, goalVisible, goalAhead, atGoal, visitedAhead, visitedCount, energy, tick, always, never. Available bricks: .

Edit any layer, then Apply & Reset — the same engine runs your brain.