Skip to content

Instantly share code, notes, and snippets.

@pjazdzewski1990
Created May 14, 2015 19:00
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 pjazdzewski1990/26e0c77f879e4481ac65 to your computer and use it in GitHub Desktop.
Save pjazdzewski1990/26e0c77f879e4481ac65 to your computer and use it in GitHub Desktop.
(defn home-page []
[:div.pexeso
[:h2 "Pexeso"]
[:div.status (if (= (matched-cards-count) board-size)
"Game is finished, congratulations !"
)]
[:br]
[:button.button {:onClick start-game} "Restart game"]
[:div.board
(doall (for [card-state (@state :cards)] (card card-state)))
]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment