mirror of
https://github.com/richardharrington/robotwar.git
synced 2024-10-10 23:23:43 +00:00
fixed typo, got push-test in brain-test working
This commit is contained in:
parent
42dade809c
commit
8091e1f216
@ -10,7 +10,7 @@
|
|||||||
the parameters except the vector path to the register val, which is provided by
|
the parameters except the vector path to the register val, which is provided by
|
||||||
the let clojure."
|
the let clojure."
|
||||||
[reg-name robot-idx read-func write-func val]
|
[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]
|
{reg-name {:read (fn [world]
|
||||||
(read-func world path-to-val))
|
(read-func world path-to-val))
|
||||||
:write (fn [world data]
|
:write (fn [world data]
|
||||||
|
Loading…
Reference in New Issue
Block a user