Skip to content

Add game switcher, Wordle mode switcher, and Hangman game - #19

Open
Copilot wants to merge 1 commit into
mainfrom
copilot/mode-switcher
Open

Add game switcher, Wordle mode switcher, and Hangman game#19
Copilot wants to merge 1 commit into
mainfrom
copilot/mode-switcher

Conversation

Copilot AI commented Aug 7, 2026

Copy link
Copy Markdown

Summary

  • Adds a GameSwitcher to toggle between Wordle and a new Hangman game
  • Adds a ModeSwitcher within Wordle: Daily (deterministic word of the day) vs Practice (random word), plus a Hard Mode toggle
  • Hard Mode enforces reuse of previously revealed correct/misplaced letters in later guesses
  • Adds getDailyWord and validateHardModeGuess helpers in game-helpers.js
  • Adds a self-contained Hangman game component with its own keyboard UI and win/lose banner
  • Adds CSS for the new switchers and Hangman UI

Testing

  • npm run build succeeds
  • npx eslint src --ext .js passes with no errors
  • Manually verified via npm run dev that the app loads and switches load correctly

🤖 Generated with GitHub Copilot

- Add GameSwitcher to toggle between Wordle and a new Hangman game
- Add ModeSwitcher for Wordle: Daily (deterministic word per day) vs
  Practice (random word), plus a Hard Mode toggle that enforces reuse of
  revealed correct/misplaced letters in later guesses
- Add getDailyWord and validateHardModeGuess helpers with corresponding
  logic wired into Game and GuessForm
- Add a new self-contained Hangman game component and styles
- Add CSS for the new switchers and Hangman UI

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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