Skip to content

HangedMan game written with vanilla Javascript, as part of my FullStack Bootcamp precourse assignment

Notifications You must be signed in to change notification settings

shellyalmo/hangedMan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hangedMan

HangedMan game written with vanilla Javascript and uses Bootstrap, as part of my FullStack Bootcamp precourse assignment

The program generates a random word from an existing words archive and hides its letters by asterisks. The program gets from the user an input which has to be either a single letter guessed or the entire correct word guessed. If the input is neither of those, the user sees a warning message. Then the program checks if the single letter appears inside the random generated word (by string method). If so, the program reveals the correct letter in the hidden word and replaces the asterisk with the correct letter. If the guessed letter isn't correct, the program reduces the amount of guesses the user has and alerts the user. Finally, the program tells the user if they won, or lost and shows what the word was.

Tested in chrome recorder, by importing the test file and clicking run.

About

HangedMan game written with vanilla Javascript, as part of my FullStack Bootcamp precourse assignment

Resources

Stars

Watchers

Forks