We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e971cbe commit fdcc433Copy full SHA for fdcc433
new/client/templates/wrappers/main.go.tmpl
@@ -42,7 +42,9 @@ func main() {
42
43
fmt.Println("GameID:", game.Id)
44
45
- // TODO register event listeners
+ game.OnCGErrorEvent(func(origin tictactoesimple.Player, data cg.ErrorEventData) {
46
+ fmt.Println("error:", data.Message)
47
+ })
48
49
game.Run()
50
}
0 commit comments