moved constants out into their own file

This commit is contained in:
Richard Harrington 2013-08-15 11:31:37 -04:00
parent 17cd71f758
commit 45f6947ea8
3 changed files with 10 additions and 6 deletions

View File

@ -0,0 +1,7 @@
(ns robotwar.constants)
; MAX_ACCEL is in decimeters per second per second.
(def MAX-ACCEL 4.0)
(def ^:dynamic *GAME-SECONDS-PER-TICK* 0.03)

View File

@ -1,12 +1,8 @@
(ns robotwar.robot
(:use [robotwar.constants])
(:require [robotwar.brain :as brain]
[robotwar.register :as register]))
; MAX_ACCEL is in decimeters per second per second.
; TODO: should be passed in from some higher level module, or a config module.
(def MAX-ACCEL 4.0)
(def ^:dynamic *GAME-SECONDS-PER-TICK* 0.03)
; yay classical mechanics
(defn time-to-reach-desired-v

View File

@ -1,7 +1,8 @@
(ns robotwar.robot-test
(:use [clojure.test]
[midje.sweet]
[robotwar.robot])
[robotwar.robot]
[robotwar.constants])
(:require [robotwar.register :as register]
[robotwar.world :as world]))