beats
func(m v0.Move) v0.Movebeats returns the move that defeats m.
- OID
- 033658…d037:3
beats details
playerState
typeplayerState is the persisted record for one address.
Value
v1.playerState
players
v0.Tree// address string -> \*playerState
- OID
- 033658…d037:6
players details
nonce
intValue
0
totalRounds
intValue
0
oracleCorrect
int// rounds the oracle won by successfully countering
Value
0
topOutwitter
.uverse.addressValue
<zero>
topOutwitterWins
intValue
0
getOrCreate
func(addr .uverse.address) *v1.playerState- OID
- 033658…d037:12
getOrCreate details
predict
func(ps *v1.playerState, seed int64) v0.Movepredict guesses the player's next move as the most-played move in their history so far. Ties (including a fresh player's all-zero history) fall back to a chain-height-derived seed so the oracle doesn't always break ties the same way.
- OID
- 033658…d037:13
predict details
Play
func(moveStr string) stringPlay pits the caller against the oracle: it predicts your next move from your own move history and throws the counter. Accepts "rock"/"paper"/"scissors" or the single-letter shorthand "r"/"p"/"s".
- OID
- 033658…d037:14
Play details
renderHome
func() string- OID
- 033658…d037:15
renderHome details
renderPlayer
func(rawAddr string) string- OID
- 033658…d037:16
renderPlayer details
Render
func(path string) stringRender shows the oracle's dashboard at "", or one player's record when path is their bech32 address.
- OID
- 033658…d037:17