Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
(defn show-top-menu
"Show the top menu of the game that contains
* The player scores
* The main commands"
[scores current-player interactions]
[make-button #(i/on-new-game interactions) vutils/star]
[make-button #(i/on-toogle-help interactions) "?"]
(show-scores scores #(= % current-player))
[make-button #(i/on-restart interactions) vutils/circle-arrow]
[make-button #(i/on-undo interactions) vutils/back-arrow]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment