After this lesson you will
- Trace one game action to its new state, one-time effects, and follow-up work
- Read the GamePhase chain from NotStarted through Answered to GameOver or Victory
Duration12 min
DifficultyIntermediate
Read the Game State Machine: The Real Reducer Power
Read a real reducer in the Game State Machine, tracing an action to new state, one-time effects, and follow-up work.
- 01Lesson Goal
- 02Part 1: Read State First, Branches Second
- 03Part 2: From StartGame to Playing
- 04Part 3: SubmitAnswer and the PENDING State
- 05Part 4: AnswerRevealed
- 06Part 5: The Wrong Branch Ends the Game
- 07Part 6: Using Guards Correctly
- 08Code Reading Path
- 09Bad Smells
- 10Key Takeaway
Topics: mobile-action-pro, mvvm-state-machine
10 sections left in this lessonUnlock all of Mobile Action ProLesson Goal, Part 1: Read State First, Branches Second, … — plus 64 lessons in this course, source code and checklists.
Unlock Mobile Action ProOne-time payment — lifetime access — 7-day money-back. Already purchased? Sign in