Skip to content

Instantly share code, notes, and snippets.

Last active Mar 1, 2017
What would you like to do?
(defn render-cell
"Dispatch the rendering of the cell based on the player"
[[coord owner :as cell] on-move]
(let [renderer (case owner
:owner/cross render-cross
:owner/circle render-circle
(renderer coord {:on-click #(on-move coord)})))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment