Game
typeGame is a match between First and Second. First plays turn 1.
Value
pingpong.Game
games
v0.Tree// id → \*Game
- OID
- 00edf1…4d80:4
games details
lastGame
v0.IDValue
<zero>
declared
boolValue
true
NewGame
func(opponent .uverse.address) stringNewGame opens a game against opponent and returns its id. The caller plays first.
- OID
- 00edf1…4d80:7
NewGame details
Play
func(game string)Play takes the caller's turn in game and passes it to the other player.
- OID
- 00edf1…4d80:9
Play details
DeclareTriggers
func()DeclareTriggers declares the "your turn" trigger in the gnotif registry. The registry sees this realm as the caller, so the trigger is verified.
- OID
- 00edf1…4d80:10
DeclareTriggers details
Render
func(path string) stringRender lists the games with their players, turn and next player.
- OID
- 00edf1…4d80:11