Make some edits.
This commit is contained in:
parent
7f0415954c
commit
3b5a789333
|
@ -5,7 +5,7 @@
|
||||||
[ludus.scanner :as s]))
|
[ludus.scanner :as s]))
|
||||||
|
|
||||||
(def source
|
(def source
|
||||||
"(1 2)
|
"(1, 2)
|
||||||
"
|
"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
heading (:heading prev)
|
heading (:heading prev)
|
||||||
unit (heading->vec heading)
|
unit (heading->vec heading)
|
||||||
move (scale unit steps)
|
move (scale unit steps)
|
||||||
curr (update prev :postion #(add % move))]
|
curr (update prev :postion #(add % move))]
|
||||||
(swap! path #(conj % curr))))
|
(swap! path #(conj % curr))))
|
||||||
|
|
||||||
(defn back [steps] (forward (* -1 steps)))
|
(defn back [steps] (forward (* -1 steps)))
|
Loading…
Reference in New Issue
Block a user