A simple hangman game built with React, TypeScript, and Vite.
Winning the Hangman Game
Losing the Hangman Game
- The game supports both physical keyboard and on screen keyboard input
- When a key is entered, it will be disabled and reflects the state based on whether or not it is a correct guess.
- When the game ends, the keyboard will be disabled to prevent further input from the user.
- The word to guess is randomly picked from a list of common words that are at least 4 letters long.
-
Clone the repository
-
Navigate to the project directory:
cd hangman-game
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Have fun!