now removing brain from all robots in sim-world construction; easier to send by json

This commit is contained in:
Richard Harrington 2013-08-17 01:18:53 -04:00
parent db061c7c36
commit d567887ee6

View File

@ -8,7 +8,10 @@
(defn build-sim-worlds [combined-worlds fast-forward]
(let [tick-duration (/ *GAME-SECONDS-PER-TICK* fast-forward)]
(map-indexed (fn [idx combined-world]
{:sim-world combined-world
{:sim-world (assoc
combined-world
:robots
(vec (map #(dissoc % :brain) (:robots combined-world))))
:idx idx
:timestamp (int (* idx tick-duration 1000))})
combined-worlds)))