winsNeeded
untyped bigintwinsNeeded is the number of round wins required to take a match.
Value
(2 <untyped> bigint)
match
typematch tracks an in-progress best-of-three series for one player.
Value
v1.match
playerState
typeplayerState is the persisted record for one address.
Value
v1.playerState
players
v0.Tree// address string -> \*playerState
- OID
- 023fe2…82b9:4
players details
nonce
intValue
0
totalRounds
intValue
0
champion
.uverse.addressValue
<zero>
championWins
intValue
0
pickHouseMove
func(caller .uverse.address, n int) v0.MovepickHouseMove derives a deterministic pseudo-random move from the current chain height, a monotonic per-realm nonce, and the caller's address, so repeated throws in the same block still diverge.
- OID
- 023fe2…82b9:9
pickHouseMove details
getOrCreate
func(addr .uverse.address) *v1.playerState- OID
- 023fe2…82b9:11
getOrCreate details
Throw
func(moveStr string) stringThrow plays one round of the caller's current match, starting a fresh match if none is in progress. Accepts "rock"/"paper"/"scissors" or the single-letter shorthand "r"/"p"/"s".
- OID
- 023fe2…82b9:12
Throw details
renderHome
func() string- OID
- 023fe2…82b9:13
renderHome details
renderPlayer
func(rawAddr string) string- OID
- 023fe2…82b9:14
renderPlayer details
Render
func(path string) stringRender shows the arena dashboard at "", or one player's record when path is their bech32 address.
- OID
- 023fe2…82b9:15