• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Exercises

If you want to gain more experience with the techniques you learned in this hour, try these exercises:

  • Modify the draw poker game to allow the player to bet a variable amount instead of one point for each turn, and then adjust the scoring accordingly.

  • Add text fields to the draw poker display to keep track of the number of wins (hands that returned a score) and losses (hands with no score) and modify the script to update these fields.

  • Using DHTML, modify the game to use regular text instead of form fields to display the score and the status of the current hand. See Part V, “Working with Dynamic HTML,” for details.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint