Realm
gno.land/r/moul/x/daily/life/v1
Rendered output
Conway's Game of Life
A classic cellular automaton, ported to Gno — board state lives on-chain.
Generation: 0 | Population: 5 | Board: 20×15
+--------------------+
|.O..................|
|..O.................|
|OOO.................|
|....................|
|....................|
|....................|
|....................|
|....................|
|....................|
|....................|
|....................|
|....................|
|....................|
|....................|
|....................|
+--------------------+
Transactions
| Call | Effect |
|---|---|
Step() |
Advance one generation |
MultiStep(n) |
Advance n generations (max 100) |
SetCell(x, y, alive) |
Flip a single cell |
Reset(w, h) |
Clear and resize (max 50×40) |
LoadPreset(name) |
glider · blinker · toad · beacon · block · pulsar |
Rules
- A live cell with 2 or 3 live neighbours survives.
- A dead cell with exactly 3 live neighbours becomes alive.
- All other cells die or remain dead.
Query (read-only)
non-crossing functions · no tx, no wallet neededLoadPreset(name string)
MultiStep(n int)
Reset(w int, h int)
SetCell(x int, y int, live bool)
Step()
All exported functions (6)
show raw signatures
| Name | Params | Returns |
|---|---|---|
| Step | — | — |
| MultiStep | [{"Name": "n", "Type": "int", "Value": ""}] | — |
| SetCell | [{"Name": "x", "Type": "int", "Value": ""}, {"Name": "y", "Type": "int", "Value": ""}, {"Name": "live", "Type": "bool", "Value": ""}] | — |
| Reset | [{"Name": "w", "Type": "int", "Value": ""}, {"Name": "h", "Type": "int", "Value": ""}] | — |
| LoadPreset | [{"Name": "name", "Type": "string", "Value": ""}] | — |
| Render | [{"Name": "path", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "string", "Value": ""}] |
Files
Storage
{
"raw": "storage: 22534, deposit: 2253400"
}