added gameover packet
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user