Dan Tech Academy
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.

What this lesson covers
  1. 01Lesson Goal
  2. 02Part 1: Read State First, Branches Second
  3. 03Part 2: From StartGame to Playing
  4. 04Part 3: SubmitAnswer and the PENDING State
  5. 05Part 4: AnswerRevealed
  6. 06Part 5: The Wrong Branch Ends the Game
  7. 07Part 6: Using Guards Correctly
  8. 08Code Reading Path
  9. 09Bad Smells
  10. 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
Sign in