mirror of
https://github.com/richardharrington/robotwar.git
synced 2024-05-28 23:41:31 +00:00
now removing brain from all robots in sim-world construction; easier to send by json
This commit is contained in:
parent
db061c7c36
commit
d567887ee6
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user