switch from single point to Event

This commit is contained in:
sm
2015-02-05 21:34:35 -08:00
parent f4748ee52c
commit 5068159a31
3 changed files with 17 additions and 23 deletions
+11 -1
View File
@@ -4,10 +4,20 @@ import "log"
const Port = 1337
type Point struct {
type Robot struct {
X, Y, W float64
}
type Ball struct {
X, Y float64
}
type Event struct {
Players []Robot `json:"players"`
Enemies []Robot `json:"enemies"`
Ball Ball `json:"ball"`
}
func init() {
log.SetFlags(log.Lmicroseconds | log.Lshortfile)
}