answers
[]stringThe 20 classic Magic 8-Ball answers.
- OID
- 0c81ec…84ac:4
answers details
shake
typeValue
v0.shake
history
[]v0.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
- 0c81ec…84ac: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
- 0c81ec…84ac:8
Ask details
Asked
func() intAsked returns how many questions have been asked. Read-only.
- OID
- 0c81ec…84ac:9
Asked details
Render
func(path string) stringRender is the gnoweb Markdown view.
- OID
- 0c81ec…84ac:10
Render details
shortAddr
func(a string) string- OID
- 0c81ec…84ac:11