Last active
March 20, 2017 19:19
-
-
Save deque-blog/8e6075309d86454241f99d03960bb41d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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