added docstring to tick-robot

This commit is contained in:
Richard Harrington
2013-07-30 08:23:05 -04:00
parent 099e20d732
commit 42676dff1c
+4 -1
View File
@@ -65,7 +65,10 @@
(conj return-state {:action unresolved-arg-val})
return-state)))))
(defn init-robot [program]
(defn init-robot
"initialize all the state variables that go along
with the robot program when it's running."
[program]
{:program program
:acc 0
:instr-ptr 0