diff --git a/src/robotwar/register.clj b/src/robotwar/register.clj index 434751d..1c7b7e1 100644 --- a/src/robotwar/register.clj +++ b/src/robotwar/register.clj @@ -102,7 +102,7 @@ SHOT and DATA, respectively. In themselves, they're only storage registers. Likewise, SPEEDX and SPEEDY are used later in step-robot to determine the appropriate acceleration, which may have to applied over several ticks." - [robot-idx attributes] + [robot-idx] (let [storage-registers (for [reg-name storage-reg-names] {reg-name (->StorageRegister robot-idx reg-name 0)}) faux-storage-registers (for [reg-name ["AIM" "INDEX" "SPEEDX" "SPEEDY"]] diff --git a/src/robotwar/robot.clj b/src/robotwar/robot.clj index 900a192..f4c26f6 100644 --- a/src/robotwar/robot.clj +++ b/src/robotwar/robot.clj @@ -62,7 +62,7 @@ :v-x 0 :v-y 0 :damage (:damage attributes) - :registers (register/init-registers idx attributes) + :registers (register/init-registers idx) :brain (brain/init-brain src-code register/reg-names)}) (defn step-robot