moved a bunch of logic out of run and into functions of the game, for a cleaner separation of functionality.

Also, removed a bunch of overly verbose logging
This commit is contained in:
Fraser Graham
2013-10-20 21:15:23 -07:00
parent 776a7eee98
commit 200afffa7f
6 changed files with 84 additions and 87 deletions
+1 -2
View File
@@ -97,13 +97,12 @@ func (s StatsRequest) Valid() bool {
s.ScannerRadius + s.Acceleration + s.TurnSpeed + s.FireRate)
// allowing for 50 pts in every category
if total > 350 {
if total > 400 {
return false
}
return true
}
type Instruction struct {
MoveTo *v.Point2d `json:"move_to,omitempty"`
FireAt *v.Point2d `json:"fire_at,omitempty"`