Created
October 21, 2014 20:41
-
-
Save mattdeboard/0d5817f55434a0dbed2f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 transition-handler | |
"This handler takes messages off the transition subscription channel and | |
uses that information to transition the grid after dots are removed." | |
[channel owner] | |
(go-loop [] | |
(let [msg (<! channel) | |
dot-row (:dot-row msg) | |
dot-col (:dot-column msg) | |
cur (columns-state-cur)] | |
(. js/console log @cur)) | |
(recur))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment