From 8091e1f216f6ba1923ef0a964454aef0751e8e9b Mon Sep 17 00:00:00 2001 From: Richard Harrington Date: Mon, 5 Aug 2013 00:36:13 -0400 Subject: [PATCH] fixed typo, got push-test in brain-test working --- src/robotwar/robot.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/robotwar/robot.clj b/src/robotwar/robot.clj index 1023cb1..1818d9f 100644 --- a/src/robotwar/robot.clj +++ b/src/robotwar/robot.clj @@ -10,7 +10,7 @@ the parameters except the vector path to the register val, which is provided by the let clojure." [reg-name robot-idx read-func write-func val] - (let [path-to-val [:robots robot-idx :register reg-name :val]] + (let [path-to-val [:robots robot-idx :registers reg-name :val]] {reg-name {:read (fn [world] (read-func world path-to-val)) :write (fn [world data]