Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active March 3, 2017 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/25da93bea588ed9bb3c7b93d2eb69e7b to your computer and use it in GitHub Desktop.
Save deque-blog/25da93bea588ed9bb3c7b93d2eb69e7b to your computer and use it in GitHub Desktop.
(defn render-board
"Render the board:
* Creates a SVG panel
* Render the cells in it"
[board {:keys [on-move]}]
(utils/square-svg-panel
{:model-size board/size
:pixel-size cst/board-pixel-size}
(for [cell board]
[cell/render-cell cell on-move]
)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment