Created
April 15, 2018 16:55
-
-
Save brian-watkins/90e30d3199819fc2d720e87005ae2a1c 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
scoresTagger : ScoresTagger Msg | |
scoresTagger = | |
ReceivedScores | |
updateWith : PersistScore Msg -> Msg -> Model -> (Model, Cmd Msg) | |
updateWith persistScore msg model = | |
case msg of | |
GameOver -> | |
(model, persistScore 4) | |
ReceivedScores scores -> | |
({ model | scores = scores }, Cmd.none) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment