mirror of
https://github.com/richardharrington/robotwar.git
synced 2024-05-28 23:41:31 +00:00
added new shooter program; commented out because writing to SHOT not working
This commit is contained in:
parent
4c90966445
commit
1cb3d98701
|
@ -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.
|
||||
|
|
|
@ -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 "
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user