Please enable JavaScript.
Coggle requires JavaScript to display documents.
hangman (output() clicked (asking for an input from the user (if no (re…
hangman
output() clicked
asking for an input from the user
if no
re ask for letter
chose a word
if dead :check:
if player is dead. or if the letter is not in the word put a body part
else if not dead continue
ask do you want to restart Y/N
if Y is typed
else if N is typed do nothing
making an array with characters of the word
make another array with dashed lines
find the letter typed in the array
if no i++
when the page loaded and they click the start button
when the start button is clicked
if player loses ask if they want to resat
if letter already guesed
ask for a letter
red =
computer asking for an input and if that in put is true or false
green =
if else statements and asking the user for an input to continue if they loose
no letter in the input
re asks for an input
yellow =
comments of what the function does
hangman
chose a word
add lines to show how many letters
guess letter
if letter already guessed do nothing
if wrong letter add limb
show leeter in string
if corect add letter to word
if 6X end game, clear screen and pic and show word else
if word is complete done
1 more item...