After this lesson you will
- Follow a game action to the 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's Real Reducer
Read the real reducer from the Game State Machine, following an action to the new state, one-time effects and follow-up work.
- 01Lesson Goal
- 02Part 1: Read The State First, Branches Later
- 03Part 2: From StartGame To Playing
- 04Part 3: SubmitAnswer And The PENDING State
- 05Part 4: AnswerRevealed
- 06Part 5: Handling The Wrong Branch That Ends The Game
- 07Part 6: Using Guards The Right Way
- 08Code Reading Path
- 09Bad Smells
- 10Key Takeaways
Topics: mobile-action-pro, mvvm-state-machine
10 sections left in this lessonUnlock all of Mobile Action ProLesson Goal, Part 1: Read The State First, Branches Later, … — plus 114 lessons in this course, source code and checklists.
Unlock Mobile Action ProOne-time payment — lifetime access — 7-day money-back. Already purchased? Sign in