Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(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