DELETE: print out user events

This commit is contained in:
Stephen McQuay 2016-07-17 23:36:53 -07:00
parent aaf2641d80
commit b597ec529e
No known key found for this signature in database
GPG Key ID: 1ABF428F71BAFC3D
1 changed files with 9 additions and 0 deletions

View File

@ -39,6 +39,15 @@ func main() {
ui := client.NewSpectator(c.Width, c.Height)
c.Player = ui
go func() {
if ui.User == nil {
return
}
for e := range ui.User {
fmt.Printf("%+v\n", e)
}
}()
go func() {
if err := c.Play(); err != nil {
close(ui.Die)