feat: add tutorial and onboarding experience - #37
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 65d361985b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (state.stepIndex >= steps.length - 1) { | ||
| this.completeTutorial(); | ||
| return; |
There was a problem hiding this comment.
Enforce end-turn requirement before finishing tutorial
At the last onboarding step, clicking Finish calls completeTutorial() directly, which bypasses the required-action guard in advanceTutorialStep. In practice, players can mark the tutorial as completed without ever performing the Step 5 endTurn action, so onboarding state is persisted as done while the final mechanic was never demonstrated.
Useful? React with 👍 / 👎.
Summary
Validation
Closes #24