package game import "github.com/google/uuid" type Race struct { ID uuid.UUID Name string Killed bool // Votes float64 Ally uuid.UUID // Race's Votes receiver Drive float64 Weapons float64 Shields float64 Cargo float64 } func (r Race) FlightDistance() float64 { return r.Drive * 40 } func (r Race) VisibilityDistance() float64 { return r.Drive * 30 }