Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(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