CSCI 1302 Lab 9

BlackJack v1.0

For Lab 9, you'll begin a Blackjack game with a JBuilder GUI, but no card graphics initially. The purpose of this lab is to work out the logic of the game of Blackjack. A player is dealt two cards, the house is dealt two cards; the player decides whether to add another card (Hit) or stay at what he has (stand). The danger of a Hit is that you can go over 21 (BUST) and lose the hand. When the player hits Stand finally, the dealer decides whether to take a card (if his total is <17) or evaluate a win (if >=17). If your total is > the dealer and<= 21, you win. Otherwise, the dealer wins ("push" is sometimes taken as an even situation where no one loses if both have the same total - in Vegas, you lose).

You can use the reusable Card class we discussed earlier in class - the outline is given here: fall2004/cbis4210/samples/Card.java . An example GUI for the game is given below:

Due Friday, November 11, at the beginning of class. Upload your HTML and CLASS files to your P:\web\cs1302\ folder and link to the HTML file from your main cs1302 Home Page. Programs will be due online at the beginning of class.