Last active
March 18, 2017 14:16
Star
You must be signed in to star a gist
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 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