A small hangman-style game: guess the word within 8 attempts. Each wrong guess “loses” a language chip; win triggers confetti 🎉 and a New Game button.
- Picks a random word on start (
getWord()), stores guessed letters in state. - Win when every letter is revealed; lose after 8 wrong guesses
(attempts are derived fromlanguages.length - 1). - On-screen keyboard adds letters; button disables when game is over.
- Accessibility: status updates via
aria-live; celebratory confetti on win.
- React + Vite
clsxfor conditional classesreact-confettifor the win effect- Components:
Chip,CurrentWord,KeyBoard - Utilities:
languages(chips),getFarewellText,getWord
npm install
npm run dev
npm run buildStatic hosting (e.g. Netlify).
Build: npm run build → publish dist/.
- New game resets the word and guessed letters.
- Chips visually track remaining attempts (based on
languagesorder).