Created
January 24, 2015 19:38
-
-
Save kineticz/8114727bdbb2dff39f4f to your computer and use it in GitHub Desktop.
Using -> where there is no pipe line
This file contains hidden or 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
| (defmulti process-input | |
| (fn [game input] | |
| (:kind (last (:uis game))))) | |
| (defmethod process-input :start [game input] | |
| (-> game | |
| (assoc :world (random-world)) | |
| (assoc :uis [(new UI :play)]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment