Skip to content

khanhnphan15/project1-hangman-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

project1-hangman-game

Pseudocode: Generate a random word and place in a variable Guess the word using single words as input Display the length of the word

Get some number of lives - 5 The length of correct guesses < the length of the word If the guess is correct and equal to the length of the word =>Player won and play again. If the guess is incorrect => increment incorrect guess by 1 If incorrect guesses >= 7 => Player lost and reset the game Get a hint Reset button - to reset the word and lives and score Pop up at last to show win or lose Each wrong guess will delete the alphabet from list and decrease a live

How to play Hangman Game:

The user tries to guess letters in a secret word, and loses after 7 guesses that are not in the word. The user guesses a letter by clicking a button whose text is that letter. The word to guess is represented by a row of dashes, giving the number of letters. If the guessing player suggests a letter which occurs in the word, the program writes it in all its correct positions.

Technologies used: HTML, CSS and Javascript

How to use:

Clone from Github Make any changes that you like Open index.html to try it out

Demo: link: file:///Users/khanhking/labs/Project-1-Hangman-game/index.html

image

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published