HTML and CSS Reference
In-Depth Information
Figure 9-12. In this game, e appears in two spots.
I make some other guesses and finally get this word correct. Again, the list from which the choices are
made is not very long, so I can guess the words from the number of letters. Figure 9-13 shows a
screenshot from a winning game. Notice that there are two e s and three f s in the secret word.
Figure 9-13. Winning the game
The programming techniques and language features include manipulating character strings; using an
array holding the letters of the English alphabet; creating markup elements to hold the alphabet and the
spaces that represent the secret word, which may or may not be replaced by letters; handling events for
the created alphabet blocks; setting up a set of functions for drawing the steps of the hanging; and
Search WWH ::




Custom Search