Skip to content

Instantly share code, notes, and snippets.

@mattdeboard
Created October 21, 2014 20:41
Show Gist options
  • Save mattdeboard/0d5817f55434a0dbed2f to your computer and use it in GitHub Desktop.
Save mattdeboard/0d5817f55434a0dbed2f to your computer and use it in GitHub Desktop.
(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