added new shooter program; commented out because writing to SHOT not working

This commit is contained in:
Richard Harrington 2013-08-21 19:33:01 -04:00
parent 4c90966445
commit 1cb3d98701
2 changed files with 13 additions and 2 deletions

View File

@ -11,7 +11,8 @@
; TODO: have this source-code-picking be done in requests from the UI
; in the browser, not hard-coded here.
(def progs
(repeat 3 (:moving-to-spot source-programs/programs)))
(conj (repeat 3 (:moving-to-spot source-programs/programs))
(:shooter source-programs/programs)))
(defn add-game
"a function to update the games store agent state.

View File

@ -64,4 +64,14 @@
MOVEY
B - Y TO SPEEDY ; Take distance from destination in meters and use
; it to set SPEEDY, which is measured in decimeters/second.
ENDSUB "})
ENDSUB "
:shooter
"
90 TO AIM
Y TO RANDOM
RANDOM TO S
SHOOT
; S TO SHOT
GOTO SHOOT "
})