                            nextCheckpointX nextCheckpointY
                            nextCheckpointDist nextCheckpointAngle
                            opponentX opponentY
+                           x y 
                            boost-used? game-loop-counter)))
         (println "")))

(defn after [val1 val2] (if (> (- val2 val1) 0) true false))
(defn before [val1 val2] (if (< (- val2 val1) 0) true false))

;;Compute a boost value between 0 and 100
(defn compute-boost [next-checkpoint-distance next-checkpoint-angle]
  (cond
    (> (Math/abs next-checkpoint-angle) 90) "0"
    (and (< next-checkpoint-distance 1000) (> (Math/abs next-checkpoint-angle) 30)) "0"
    ; (< (Math/abs next-checkpoint-angle) 30) "100"
    ; (> next-checkpoint-distance 4000) "100"
    true "100"))

(ns coders-strike-back.core
  (:gen-class))

(def checkpoint-core-size 50)
(def max-loop-before-boost 3)
(def max-loop-before-shield 10)
(def pod-radius 400)
(def checkpoint-radius 600)

(defn inc-atom [curr-val] (inc curr-val))
(defn dec-atom [curr-val] (dec curr-val))
