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

View File

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