CIRCUIT QUAY / SHARED CODE PROJECT
The Glasshouse Engine
A tiny invented ecosystem. Paint a starting world, then advance it one step at a time.
· empty ground P plant G grazer F fungus R rock
Population history
Recorded snapshots begin at Step 0 and update whenever the world advances.
Read the rules
- An empty cell grows a plant if at least two of its four edge neighbours are plants.
- A plant becomes a grazer if an edge neighbour is a grazer. Otherwise it stays a plant.
- A grazer survives if an edge neighbour is a plant. Without a plant, it becomes fungus when an edge neighbour is fungus; otherwise it leaves empty ground.
- Seeded fungus stays fungus. An empty cell beside both a fungus and a plant becomes fungus, unless two plants already claim it for plant growth.
- A rock stays rock when the world advances. Rocks are not food or neighbours that trigger growth. You can repaint them with any brush.
Fungus never appears without a seeded fungus. The starter keeps its original three-state layout; choose the Fungus brush to introduce it. Rock is terrain that stays fixed during steps, not a locked tile. Reset starts without rocks; Clear removes them.
All cells update together from the previous step. Outside edges are empty; they do not wrap. These are fictional rules for a coding toy, not a scientific ecology model.
No automatic animation or saving. Reset or closing the preview loses changes.