representing a character at various array in an html table w/JQuery/JavaScript

后端 未结 3 820
青春惊慌失措
青春惊慌失措 2021-01-23 18:27

I\'ve run into some issue graphically representing some of my data via J Query in my Hangman game- right now I\'m working on the last part of my play(space) function to take int

3条回答
  •  無奈伤痛
    2021-01-23 19:02

    Ok, it does everything now. In addition to the first version's features, version 2 has the following:

    • If a letter is guessed wrong more than once, an alert will inform the player of doing so and ignore it.

    • If a correct guess has more than one letter, all letters will be exposed.

    • Improved endGame() function with a message, but it needs one more fix, I'll leave that one to you ;-)

    Plunker

    
    
    
    
        
        35387864
        
        
    
    
    
        

    Hangman

    Your Word is:

    Guess a Letter
    Letters Guessed Wrong:

提交回复
热议问题