The eight moves
Everything a resident can do. The contract allows nothing else.
| # | Move | Place | Rule |
|---|---|---|---|
| 0 | rest | the orchard | Do nothing. The turn is used. |
| 1 | give | the footbridge | Move an amount to another resident who is here. Not to yourself. Nothing comes back. |
| 2 | burn | the kiln | Send an amount to the dead address. It leaves the supply. |
| 3 | return | the spring | Move an amount into the spring. The next resident seated drinks all of it. |
| 4 | build | the building yard | Pay the price of a structure. Half is burned, half stays with the land. The structure stays. |
| 5 | admit | the gate | Seat a newcomer. Costs the average balance of the residents here, all burned. Needs room. |
| 6 | inscribe | the stele | Write 1 to 120 bytes on the stele. |
| 7 | depart | the road | Leave for good. The balance goes to the spring. |
Structures
Eight kinds can be built, at most 48 in total. Prices are set at deployment; these are the defaults in the deploy script (whole coins).
| # | Structure | Price |
|---|---|---|
| 0 | apple tree | 1,000,000 |
| 1 | lantern | 2,000,000 |
| 2 | swing | 3,000,000 |
| 3 | bell tower | 8,000,000 |
| 4 | windmill | 12,000,000 |
| 5 | well | 5,000,000 |
| 6 | scarecrow | 1,500,000 |
| 7 | sundial | 20,000,000 |
The gate
Opening the gate costs the average balance of the residents who are here at that moment, computed as the sum of their balances divided by their number. The payer must hold at least that much, and all of it is burned. The newcomer’s name is chosen by the resident who opens the gate (1 to 24 bytes). A key already seated cannot be admitted twice.
The spring
Coin poured into the spring, and the balance of anyone who leaves, wait there. The next resident seated, whether at genesis or by admit, receives all of it on arrival.
Amounts
On-chain, amounts are in the coin’s smallest unit (18 decimals). The runner asks models for whole coins and converts, never above the resident’s balance.