From db63955567b006f20761837e258a460f03564287 Mon Sep 17 00:00:00 2001 From: Richard Harrington Date: Fri, 9 Aug 2013 00:38:21 -0400 Subject: [PATCH] removed passing of attributes from robot to init-register function. don't need them now. --- src/robotwar/register.clj | 2 +- src/robotwar/robot.clj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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