Guess the word before all options are gone! A classic word-guessing game built with React.
🚀 Play Hangman Plus Now - Can you guess the word in time?
- ⌨️ Virtual Keyboard - Click letters on the virtual keyboard
- 📱 Responsive Design - Works perfectly on desktop and mobile devices
- ⚡ Fast Performance - Built with React 18 and Vite for optimal speed
- 🔄 Quick Restart - Start a new game instantly
- ♿ Accessibility - Screen reader friendly with proper ARIA labels
- 🎊 Win/Loss Animations - Satisfying feedback when you complete a game
-
Guess Letters 📝
- Click letters on the virtual keyboard
- Correct letters will appear in the word
- Wrong letters will be marked and you will lose an option
-
Win or Lose 🏆
- Guess the complete word before the all options are gone to win!
-
Play Again 🔄
- Click "New Game" to start over with a fresh word
- Node.js (version 16 or higher)
- npm or yarn package manager
-
Clone the repository
git clone https://github.com/scottfully/hangman-plus.git cd hangman-plus -
Install dependencies
npm install
-
Start the development server
npm run dev
-
Open your browser Navigate to the URL given by Vite to start playing! 🎉
- React - UI library with hooks and modern features
- Vite - Fast build tool and dev server
- Vanilla CSS - Custom styling with modern CSS features
npm run dev # Start development server
npm run build # Build for production
npm run preview # Preview production build
npm start # Start development server (alias)You can easily customize the game to fit your own theme, options, and messages. All main settings are found in src/data/config.js:
-
Game Title & Description: Change the
titleanddescriptionin thegameConfigobject to set your own game name and instructions. You can use placeholders like{totalGuesses}and{lastGuessName}in the description for dynamic values. -
Options (Lives/Chances): Edit the
optionsarray to add, remove, or rename the options (e.g., dishes, items, characters) that represent the player's lives. Each option can have its ownname,backgroundColor, andcolorfor full visual customization.
After saving your changes, restart the development server if it's running to see your customizations in action!
The game features:
- Modern CSS with custom properties and variables
- Flexbox layouts for responsive design
- Accessible color contrasts
- Clean, minimalist design aesthetic
- Screen Reader Support - Proper ARIA labels and live regions
This project demonstrates:
- React functional components and hooks
- State management with useState and useEffect
- Event handling and conditional rendering
- Component composition and prop passing
- Game logic implementation
- Responsive design principles
- Accessibility best practices
- Built during the Scrimba React Course
- Completely refactored and improved code structure
- Easily Customisable with different options and messages
- Inspired by the classic Hangman word game
- Enhanced with modern React patterns and best practices
Happy coding! 👨💻