Skip to content

Flappy Term tutorial reward + GitHub star prompt + spec sync#81

Merged
nedtwigg merged 7 commits into
mainfrom
codex/flappy-term-fixes
May 22, 2026
Merged

Flappy Term tutorial reward + GitHub star prompt + spec sync#81
nedtwigg merged 7 commits into
mainfrom
codex/flappy-term-fixes

Conversation

@nedtwigg
Copy link
Copy Markdown
Member

Summary

  • Adds the GitHub star prompt and the Flappy Term mini-game as the tutorial's mystery reward (commits 9e47c49…3bf18dc, originally drafted on a worktree branch that no longer exists locally).
  • Enables @xterm/addon-unicode-graphemes with allowProposedApi: true so emoji widths in the game and tutorial render correctly.
  • Final commit (this branch's tip) syncs docs/specs/tutorial.md to match the shipped Flappy Term implementation (was still describing the placeholder 🧀 The Burrow 🧀 animation) and replaces a tautological not.toContain("star the repo") assertion in tut-runner.test.ts with not.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
  • Manual: open /playground, complete the three sections, confirm the mystery row unlocks to 🐭 Flappy Term 🐭 with [High score: 0] and Enter starts the game.
  • Manual: die in Flappy Term, confirm Enter restarts, Esc returns to the menu, and p opens dormouse.sh/pocket in a new tab.
  • Manual: select Starred on GitHub, confirm the row flips from [not yet] to [thanks ⭐] and a new tab opens to github.com/diffplug/dormouse.
  • Manual: run Reset progress, confirm checkmarks, star state, and Flappy high score all clear.

🤖 Generated with Claude Code

nedtwigg and others added 7 commits May 19, 2026 00:56
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>
@nedtwigg nedtwigg merged commit bd1f4eb into main May 22, 2026
6 checks passed
@nedtwigg nedtwigg deleted the codex/flappy-term-fixes branch May 22, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant