Created
February 25, 2013 22:57
-
-
Save kanzure/5034109 to your computer and use it in GitHub Desktop.
pc-trail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn pc-trail | |
"Track the PC for a number of ticks." | |
[state ticks] | |
(tick state) | |
(set-state! state) | |
(loop [pcs [(PC)] ] | |
(if (> (count pcs) ticks) pcs | |
(do | |
(com.aurellem.gb.Gb/tick) | |
(recur (conj pcs (PC))))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment