Flappy Term tutorial reward + GitHub star prompt + spec sync#81
Merged
Conversation
Port the xterm.js Flappy Bird prototype into the tutorial runner as the hidden reward unlocked by completing every section. The entry stays locked until total progress hits 100%, then surfaces a persistent high score in the menu. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Surface dormouse.sh/pocket as a follow-up on death so players see the phone build right when they're already invested in the game. `p` opens it in a new tab via the same window.open pattern as the GitHub link. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…t assertion
The mystery-row paragraph still described the placeholder Burrow animation
(`🧀 ??? 🧀` / `🧀 The Burrow 🧀`), even though the runner now ships the
Flappy Term mini-game. Update the spec to match what users actually see,
document the `onOpenPocket` wiring and Esc/Enter/Space/p controls, and
add the new `dormouse-flappy-high-v1` localStorage key to the Storage
section.
The star-prompt test asserted the frame did not contain "star the repo"
— a string the runner never emits — so it would pass regardless of the
star prompt's correctness. Replace with `not.toContain("[not yet]")`,
which actually proves the unresolved-state copy is gone after Enter.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@xterm/addon-unicode-graphemeswithallowProposedApi: trueso emoji widths in the game and tutorial render correctly.docs/specs/tutorial.mdto match the shipped Flappy Term implementation (was still describing the placeholder🧀 The Burrow 🧀animation) and replaces a tautologicalnot.toContain("star the repo")assertion intut-runner.test.tswithnot.toContain("[not yet]"), which actually proves the unresolved-state copy is gone after Enter.Test plan
pnpm vitest run src/lib/tut-runner.test.ts(website) — 11/11 pass/playground, complete the three sections, confirm the mystery row unlocks to🐭 Flappy Term 🐭with[High score: 0]and Enter starts the game.Enterrestarts,Escreturns to the menu, andpopensdormouse.sh/pocketin a new tab.Starred on GitHub, confirm the row flips from[not yet]to[thanks ⭐]and a new tab opens togithub.com/diffplug/dormouse.Reset progress, confirm checkmarks, star state, and Flappy high score all clear.🤖 Generated with Claude Code