mirror of
https://github.com/richardharrington/robotwar.git
synced 2026-04-20 23:17:04 +00:00
altered name and docstring for the function tying a world sequence to its tick-time
This commit is contained in:
@@ -37,8 +37,9 @@
|
||||
[world tick-duration]
|
||||
(iterate #(tick-world % tick-duration) world))
|
||||
|
||||
(defn world-seq
|
||||
"returns a world-sequence. keeps the tick-duration field
|
||||
(defn worlds-with-timer
|
||||
"returns a map containing a world-sequence and a tick-duration.
|
||||
keeps the tick-duration field
|
||||
as a key instead of just passing it to iterate-worlds and forgetting it,
|
||||
because it's needed later for rendering."
|
||||
[world tick-duration]
|
||||
|
||||
Reference in New Issue
Block a user