updated the hacky inspection code in core.clj to work with the new robot and world apis

This commit is contained in:
Richard Harrington 2013-08-05 00:35:17 -04:00
parent 28efa906c2
commit 42dade809c

View File

@ -14,7 +14,7 @@
; their ugly full system-names of the read and write functions.) Very convenient.
(def get-robot (fn [world-tick-idx robot-idx]
((:robots (get-world world-tick-idx robot-idx)) robot-idx)))
((:robots (get-world world-tick-idx robot-idx worlds)) robot-idx)))
(def ppt (fn [world-tick-idx robot-idx & [reg-keys]]
(let [{:keys [brain registers] :as robot} (get-robot world-tick-idx robot-idx)]