Lab 10

For this lab, you will be creating a "functional and illogical" blackjack game. The game will not have gambiling or card values, but it will have the functionality of blackjack actions: deal, hit, stand, and surrender.

Setting Up The Page

Create divisions for the dealerArea and the playerArea. Within the dealerArea there will be a div for the two images (dealer's cards). Within the playerArea there will be five images (palyer's cards). Create a seperate division controlArea, which will include the divs/buttons with onclick calls for DEAL, HIT, STAND, and SURRENDER.

Functions

Use the example given in class to initialize your deck images array. When the page loads, call the initDeck function immediately. topCard will be our iterator that will traverse the deck. Each time a card is "dealt", topCard will be incremented.