answers
[]stringThe 20 classic Magic 8-Ball answers.
- OID
- 086950…181d:4
answers details
shake
typeValue
eightball.shake
history
[]eightball.shakeValue
<zero>
answerIndex
func(height int64, n int) intanswerIndex maps (block height, prior shakes) to an answer slot. Pure and deterministic so it can be tested without touching realm state.
- OID
- 086950…181d:6
answerIndex details
Ask
func(question string) stringAsk poses a question to the Magic 8-Ball and returns its answer. Crossing function: it mutates persistent state, so it takes \`cur realm\` (gno 0.9).
- OID
- 086950…181d:8
Ask details
Asked
func() intAsked returns how many questions have been asked. Read-only.
- OID
- 086950…181d:9
Asked details
Render
func(path string) stringRender is the gnoweb Markdown view.
- OID
- 086950…181d:10
Render details
shortAddr
func(a string) string- OID
- 086950…181d:11