Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active March 17, 2017 17:40
  • 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/a847133ad1203735b01b99237c98f805 to your computer and use it in GitHub Desktop.
(defprotocol IUserInteractions
"A protocol for the interactions that can be triggered from the GUI"
(on-new-game [this] "Send a new game command")
(on-toogle-help [this] "Send a toggle help command")
(on-restart [this] "Send a restart command")
(on-undo [this] "Send an undo command")
(on-player-move [this x y] "Send a play command at [x y]"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment