mirror of
https://github.com/richardharrington/robotwar.git
synced 2024-09-28 16:54:23 +00:00
moved constants out into their own file
This commit is contained in:
parent
17cd71f758
commit
45f6947ea8
7
src/robotwar/constants.clj
Normal file
7
src/robotwar/constants.clj
Normal 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)
|
||||
|
||||
|
@ -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
|
||||
|
@ -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]))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user