Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active March 18, 2017 14:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save deque-blog/e90751967cb053d02aeca7f22e826f5d to your computer and use it in GitHub Desktop.
(defn show-top-menu
"Show the top menu of the game that contains
* The player scores
* The main commands"
[scores current-player interactions]
[:div.scores
[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