mirror of
https://github.com/richardharrington/robotwar.git
synced 2024-08-20 02:29:35 +00:00
updated the hacky inspection code in core.clj to work with the new robot and world apis
This commit is contained in:
parent
28efa906c2
commit
42dade809c
@ -14,7 +14,7 @@
|
|||||||
; their ugly full system-names of the read and write functions.) Very convenient.
|
; their ugly full system-names of the read and write functions.) Very convenient.
|
||||||
|
|
||||||
(def get-robot (fn [world-tick-idx robot-idx]
|
(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]]
|
(def ppt (fn [world-tick-idx robot-idx & [reg-keys]]
|
||||||
(let [{:keys [brain registers] :as robot} (get-robot world-tick-idx robot-idx)]
|
(let [{:keys [brain registers] :as robot} (get-robot world-tick-idx robot-idx)]
|
||||||
|
Loading…
Reference in New Issue
Block a user