Simulation and State Tracking
Follow the story rules exactly, keep a small set of state variables, and update them in the right order.
When to use it
Look for movement, swaps, logs, repeated events, time steps, changing display state, or a process that must be replayed.
Practice focus
- Name the state before coding.
- Trace one tiny input in a table.
- Update the answer only after the current event is fully processed.
