• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Writing the Program

You're now ready to write the actual script to play the game. Because this is a game, the script will be entirely controlled by the user. Each of the functions is called by an event handler in the HTML document.

Handling the Deal/Draw Button

Because the Deal and Draw buttons are the same button, you will need a function that determines which action should be performed. The DealDraw function will be called by the button's event handler:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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