Welcome to Alex's Hangman Game. Built in react, as the implementation of the classic word game. This is to fulfil the requirement of Task 21 of the HyperionDev Course
In case you're unfamiliar with the rules of Hangman.
- The game will randomly select a word from dictionary.txt (minimum length 5 letters).
- Click the letters on the keyboard to guess.
- The game will confirm if the letter is present by placing it in the position it appears in the word.
- Each incorrect guess will draw a line, getting you closer to hanging the man.
- You have 10 guesses.
- If you complete the word and make fewer than 10 wrong guesses you win. Otherwise the man is hanged, and you lose.
- Click RESET at any point to restart the game.
- Click HELP, to be brought back here incase you need a reminder of the rules!
- Clone the Repo:
git clone https://github.com/Mightybeagle/hangman-game.git - Navigate into the directory
cd hangman-game - Install dependencies:
npm install
NOTE: as per previous instruction, the
node_modulesfolder will not be included. Run the above to install it.
- Run the following inside the folder to start running it locally:
npm start - It should automatically launch: http://localhost:3000/ in your browser