Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active March 20, 2017 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/8e6075309d86454241f99d03960bb41d to your computer and use it in GitHub Desktop.
Save deque-blog/8e6075309d86454241f99d03960bb41d to your computer and use it in GitHub Desktop.
(defn triboard []
(frame/main-frame @store/current-turn @store/suggestions
(reify view/IUserInteractions
(on-new-game [_] (loop/send-game-event! :new-game))
(on-toogle-help [_] (store/toggle-help!))
(on-restart [_] (loop/send-game-event! :restart))
(on-undo [_] (loop/send-game-event! :undo))
(on-player-move [_ x y] (loop/send-play-event! [x y]))
)))
(reagent/render [triboard]
(js/document.getElementById "app"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment