Skip to content

feat(playground): replace demo with interactive Wordle game#14

Merged
naji247 merged 1 commit intomainfrom
feat/wordle-playground
Mar 5, 2026
Merged

feat(playground): replace demo with interactive Wordle game#14
naji247 merged 1 commit intomainfrom
feat/wordle-playground

Conversation

@naji247
Copy link
Member

@naji247 naji247 commented Mar 5, 2026

Summary

  • Rewrite the playground as a fully playable Wordle clone (WebMCP Wordle Demo) that showcases webmcp-react hooks
  • Tools dynamically register/unregister across game phases (idle → playing → won/lost), demonstrating conditional tool rendering
  • Guesses can be made via keyboard or through the DevPanel / MCP bridge, showing dual execution paths
  • Includes game engine with comprehensive tests, extension bridge detection banner, and easy-mode toggle for the hint tool

Test plan

  • Run test suite: pnpm test — 151 tests pass (18 new engine tests + 133 existing)
  • Run playground build: cd examples/playground && pnpm build
  • Open playground locally (pnpm dev) and play a full game via keyboard
  • Verify tools appear/disappear in DevPanel as game phase changes
  • Toggle easy mode and confirm the hint tool registers/unregisters
  • Try hard mode and verify green/yellow letter constraints are enforced

Rewrite the playground as a fully playable Wordle clone that showcases
webmcp-react hooks. Tools dynamically register/unregister across game
phases (idle, playing, won/lost), and guesses can be made via keyboard
or through the DevPanel/MCP bridge. Includes game engine with tests,
extension bridge detection banner, and easy-mode toggle for the hint tool.
@naji247 naji247 merged commit 90d6120 into main Mar 5, 2026
3 checks passed
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