mirror of
https://github.com/richardharrington/robotwar.git
synced 2024-05-28 23:41:31 +00:00
whitespace and other cosmetic changes
This commit is contained in:
parent
47f922512f
commit
5893e4b5e6
|
@ -15,15 +15,13 @@
|
|||
:*GAME-SECONDS-PER-TICK* *GAME-SECONDS-PER-TICK*})
|
||||
|
||||
(defn parse-program-names
|
||||
"takes a string parameter from the browser and returns a seqence
|
||||
"takes a string parameter from the browser and returns a sequence
|
||||
of program keys"
|
||||
[programs-str]
|
||||
(map keyword (split programs-str #"[,\s]\s*")))
|
||||
|
||||
(defn get-programs
|
||||
"gets a sequence of programs from the source-code
|
||||
repository. some may be repeats. discards failed matches.
|
||||
cuts off after five."
|
||||
"gets a sequence of five programs from the source-code repository."
|
||||
[program-keys]
|
||||
(take 5 (filter identity (map #(% source-programs/programs) program-keys))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user