switch from single point to Event
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user