The Essential Guide to HTML5

(Greg DeLong) #1

QUIZ


Figure 6-3. A second successful match


Now the player makes a mistake by pairing Riyadh with Australia. Figure 6-4 shows the result: the program
moves the Riyadh block, but the Action field indicates WRONG. The Score is still 2, and the blocks remain
white.


Figure 6-4. After two correct and one incorrect plays


This quiz program allows the player to try again, as shown in Figure 6-5.

Free download pdf