Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active March 18, 2017 14:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save deque-blog/ee12417bb1b6e30f582c526a0b6d6244 to your computer and use it in GitHub Desktop.
(defn render-board
[board suggestions interactions]
(into
(empty-svg-board)
(for [[position cell] (board/to-seq board)]
^{:key position}
(if (= :none cell)
[empty-cell position interactions (if (suggestions position) :help :none)]
[rect-cell position cell]))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment