![]() ![]() ![]() When the player correctly guesses a letter, the empty box is replaced with the matched letter (see the showMatchedLetter() method below). See the example_phrase_html.txt file for an example of what the rendered HTML for a phrase should look like when the game starts, including any id or class attributes needed. Each letter is presented by an empty box, one li element for each letter. The class should also have these methods:ĪddPhraseToDisplay(): this adds letter placeholders to the display when the game starts. This property should be set to the phrase parameter, but converted to all lower case. ![]() Phrase: this is the actual phrase the Phrase object is representing. The class should include a constructor that receives a phrase parameter and initializes the following properties: 1.Create the Phrase class in a Phrase.js file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |