Created
May 14, 2015 19:00
-
-
Save pjazdzewski1990/26e0c77f879e4481ac65 to your computer and use it in GitHub Desktop.
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 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