Ask coding questions

← Back to all posts
HELP
sweetmango88 (16)

Hi, I'm doing a new and improved hangman game, when you start it the game alerts you the "array" such as; _ _ _ _ for the word "home". Then it prompts "choose a letter". this is when things get tricky, I'm using Jquery to type out the letters you got wrong on the screen, however it does not appear, it only appears after you are finished guessing the word. please help me, thanks! -sweetmango88

Answered by DynamicSquid (4919) [earned 5 cycles]
View Answer
Comments
hotnewtop
DynamicSquid (4919)

Could you please link the code?

sweetmango88 (16)

@DynamicSquid yes but I want the letters to pop up immediately, right after you guess the letter wrong, not after you finish guessing the whole word.

DynamicSquid (4919)

@sweetmango88 The letters do pop up immediately

sweetmango88 (16)

wait....are you talking about the alerted array? example; h,,m,. or are you talking about the letters you guessed incorrectly that pop up on the screen(using jquery). sorry if this gets a bit confusing...

sweetmango88 (16)

here is the real example h,,m,

DynamicSquid (4919)

@sweetmango88 The letters I guessed incorrectly pop up on the screen

sweetmango88 (16)

uh let me just write it down... h,underscore,m,underscore

sweetmango88 (16)

hmm well, maybe just a bug from my side?

sweetmango88 (16)

ok, thanks I'll just finish the game

xxpertHacker (930)

@sweetmango88 Ha, Repl talk uses markdown, and underlines are used by the language.

h, _, m, _

DynamicSquid (4919)

@xxpertHacker Ohhh that's why! I was really confused on what you meant lol!

xxpertHacker (930)

@DynamicSquid Yeah, was a reply to them, since they were struggling with the _ character.