added gameover packet

This commit is contained in:
sm
2013-11-13 22:24:54 -08:00
parent aabda1cc90
commit 84ed6c9c32
4 changed files with 97 additions and 73 deletions
+2 -2
View File
@@ -8,13 +8,13 @@ import (
type player struct {
ws *websocket.Conn
Robots []*Robot
send chan *Boardstate
send chan Message
Instruction Instruction
}
func (p *player) sender() {
for things := range p.send {
err := websocket.JSON.Send(p.ws, *things)
err := websocket.JSON.Send(p.ws, things)
if err != nil {
break
}