This site was created to showcase Javascript by writing code for the game "Hangman".
-
The computer will automatically pick a boys name at random.
-
the user starts the game by selecting a letter on the keyboard.
-
The computer will check to see if the user's choice matches any of the letters in the name it chose.
-
The user has 10 guesses in total. If a letter chosen matches a letter in the name, the users letter will appear in the blank spaces that the letter is located. If no match, no letters appear.
-
If all the letters appear before all 10 guesses are used, the user wins and populates in the win counter.
-
If the user runs out of guesses, the user loses and populates in the loss counter.