outLose
untyped bigint// player loses
Value
(0 <untyped> bigint)
outDraw
untyped bigintOutcomes.
Value
(1 <untyped> bigint)
outWin
untyped bigint// player wins
Value
(2 <untyped> bigint)
tally
typetally holds a single player's cumulative record.
Value
v1.tally
round
typeround is one recorded game (for the recent-rounds table).
Value
v1.round
players
*v0.Tree// address string -> \*tally
- OID
- 09e26d…28f2:4
players details
rounds
[]v1.round// append-only history; Render shows the tail
Value
<zero>
totalWins
int// player wins
Value
0
totalLosses
int// player losses
Value
0
totalDraws
intState.
Value
0
totalRounds
intState.
Value
0
maxRecent
untyped bigintValue
(8 <untyped> bigint)
houseMove
func(height int64, playCount int) v0.MovehouseMove derives the house move deterministically from the chain height and the caller's play count (so repeated calls in the same block differ).
- OID
- 09e26d…28f2:11
houseMove details
decide
func(playerMove v0.Move, houseM v0.Move) intdecide returns the outcome from the player's perspective.
- OID
- 09e26d…28f2:13
decide details
getTally
func(key string) *v1.tally- OID
- 09e26d…28f2:14
getTally details
Play
func(choice string)Play plays one round against the chain. choice is "rock"|"paper"|"scissors" (single-letter shortcuts accepted). It panics on an invalid choice.
- OID
- 09e26d…28f2:15
Play details
outcomeName
func(o int) string- OID
- 09e26d…28f2:16
outcomeName details
winRate
func(wins int, plays int) string- OID
- 09e26d…28f2:17
winRate details
Render
func(path string) stringRender returns a Markdown dashboard: global tally, per-player table, and the last few rounds. It is caller-agnostic (no cur).
- OID
- 09e26d…28f2:18