# 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.

- URL: https://dantech.academy/en/courses/kotlin-accelerator/engineer-builder/03-state-machine-mvvm/lesson-03-read-game-state-machine
- Course: [Mobile Action Pro](https://dantech.academy/en/courses/kotlin-accelerator.md)
- Module: State Machine and MVVM
- Duration: 12 min
- Difficulty: intermediate
- Access: Enrolled students
- Tiếng Việt: https://dantech.academy/courses/kotlin-accelerator/engineer-builder/03-state-machine-mvvm/lesson-03-read-game-state-machine.md

## Objectives

- 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

## In this lesson

1. Lesson Goal
2. Part 1: Read The State First, Branches Later
3. Part 2: From StartGame To Playing
4. Part 3: SubmitAnswer And The PENDING State
5. Part 4: AnswerRevealed
6. Part 5: Handling The Wrong Branch That Ends The Game
7. Part 6: Using Guards The Right Way
8. Code Reading Path
9. Bad Smells
10. Key Takeaways

## Study with an AI agent

The full lesson is for students of this course. Students open the lesson on the web and press **Markdown** to copy all of it, then paste it into Claude, ChatGPT, Cursor or whichever agent you use. Faster: mint a token at `/profile/ai-agents` and your agent reads lessons over MCP.

- [Join the course](https://dantech.academy/en/kotlin-accelerator/checkout)

---

- Previous lesson: [Design State, Action, Effect And AsyncOp](https://dantech.academy/en/courses/kotlin-accelerator/engineer-builder/03-state-machine-mvvm/lesson-02-design-state-action-effect-asyncop.md)
- Next lesson: [Wire The ViewModel To The DRE Store](https://dantech.academy/en/courses/kotlin-accelerator/engineer-builder/03-state-machine-mvvm/lesson-04-wire-viewmodel-with-store.md)
