Created
December 28, 2019 18:46
-
-
Save IntegerMan/51cd6524b796471f1a06aa11fbf48231 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
const gameReducer = createReducer(GameSimulator.buildDefaultState(), | |
on(resetAction, () => GameSimulator.buildDefaultState()), | |
on(nextTurnAction, state => GameSimulator.simulate(state, 1)), | |
on(clearAction, state => { ... state, messages: [] }) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment