Assembly: Endgame is a word-guessing game built with React. Players must guess a randomly selected word within 8 attempts to prevent Assembly from taking over the programming world. Incorrect guesses eliminate programming languages one by one until the game is lost.
- Interactive Word Guessing: Users can guess letters to uncover the hidden word.
- Keyboard Input: An on-screen keyboard allows letter selection.
- Game Over Conditions: Lose when all attempts are used, win by correctly guessing the word.
- Dynamic Visual Feedback:
- Correct guesses highlight letters.
- Incorrect guesses eliminate languages.
- Confetti animation on win.
- Farewell Messages: Custom messages appear when programming languages are eliminated.
- New Game Option: Restart the game anytime with a new word.
- React 19
- Vite (for fast development)
- clsx (for conditional styling)
- react-confetti (for win animations)
- ESLint (for code linting and best practices)
To run the project locally:
- Clone the repository:
git clone https://github.com/yourusername/assembly-endgame.git
- Navigate into the project directory:
cd assembly-endgame - Install dependencies:
npm install
- Start the development server:
npm run dev
assembly-endgame/
├── src/
│ ├── components/ # UI Components (if applicable)
│ ├── languages.js # Programming languages data
│ ├── utils.js # Helper functions
│ ├── App.jsx # Main game logic
│ ├── index.jsx # Entry point
├── public/
├── package.json
├── vite.config.js
└── README.md
- Click letters to make guesses.
- Track incorrect attempts with eliminated programming languages.
- Win by guessing all letters correctly.
- Lose when 8 incorrect guesses are made.
- Click "New Game" to start over.
- Uses
aria-livefor status updates. - Keyboard navigation is supported.
- Visually hidden messages assist screen readers.
This project is open-source under the MIT License.
Created by Anuj Maurya.
Contributions are welcome! Feel free to fork the repo and submit a pull request.