reduce verbosity
This commit is contained in:
parent
ebcd9fbfe3
commit
6390aa96da
3
main.go
3
main.go
@ -161,7 +161,6 @@ func main() {
|
|||||||
log.Fatal("Connection lost")
|
log.Fatal("Connection lost")
|
||||||
}
|
}
|
||||||
me = boardstate.MyRobots[0]
|
me = boardstate.MyRobots[0]
|
||||||
log.Printf("%+v", me)
|
|
||||||
if govector.Distance(me.Position, moveto) < 3.0 {
|
if govector.Distance(me.Position, moveto) < 3.0 {
|
||||||
log.Printf("old: %+v: %+v", me.Position, moveto)
|
log.Printf("old: %+v: %+v", me.Position, moveto)
|
||||||
moveto = govector.Point2d{
|
moveto = govector.Point2d{
|
||||||
@ -178,11 +177,9 @@ func main() {
|
|||||||
FireAt: &moveto,
|
FireAt: &moveto,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
log.Printf("instruction: %+v", instruction)
|
|
||||||
err = websocket.JSON.Send(ws, instruction)
|
err = websocket.JSON.Send(ws, instruction)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
//log.Fatal("WIP")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user