Skip to content

sulestone/project1

Repository files navigation

#project1

Hangman game,

  • my first javascript, jquey, css and html project
  1. The game generates a random word from an array of words.
  2. The word is passed into a word checker to see if it was already used.
  3. If the word was already used the, another word is chosen from the array and checked until a word that wasn't used is found.
  4. After a word is successfully selected the word is replaced with dashes which are dispalyed
  5. The player is presented with 26 buttons representing each letter of the alphabet, the word to guess represented by dashes
  6. The is a score board to the left of the screen which get update by 1 for every word solved
  7. There is a gallow that will eventually display a hanging sprite once there are 6 unsuccessful guess before the word is solved
  8. The right of the screen displays the moves remaining
  9. Once the player choses a letter the corresponding buttons is disabled
  10. If the player is able to guess the word before losing all moves, their score is update by 1, another word is given and buttons are restored
  11. On the other hand if the player runs out of moves a message pops up stating no more moves, a new word is give and moves are reset to 6

About

Hangman

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published