PathrockNetwork Gno Explorer
HomeBlocksTransactionsTokensRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/r/moul/x/daily/life/v0

Realm
Open in gnoweb ↗

Overview

Kind
Realm (renderable)
Name
v0
Namespace
moul / x / daily / life
Files
3 (README)(gnomod.toml)
Exported functions
6
Module
gno.land/r/moul/x/daily/life/v0
gno
0.9

Files (3)

  • README.mdmarkdown
  • gnomod.tomltoml
  • life.gnogno

Select a file to view its exact on-chain source. Sorted README → gnomod → sources → tests.

Functions

  • LoadPreset(name string)

  • MultiStep(n int)

  • Render(path string) string

  • Reset(w int, h int)

  • SetCell(x int, y int, live bool)

  • Step()

Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.

Rendered

RenderedRawgnoweb ↗
# 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

1. A live cell with 2 or 3 live neighbours survives.
2. A dead cell with exactly 3 live neighbours becomes alive.
3. All other cells die or remain dead.

vm/qrender output, sanitized (docs/render-security.md) and displayed in an empty-sandbox iframe — scripts, forms and popups cannot run. Links stay inert in-preview; right-click to open.