Wednesday, June 18, 2008

A BlackJack program designed by you and a partner

Major Assignment 3
Next major project Due Friday 6/27/08 by the start of class: Design a BlackJack program with another student! Send me a note with who you are working with (or if you choose to work alone).

Use a class Card that randomly assigns the card as either a 2-10 or a Jack, Queen, King, or Ace. Methods should be public int returnValue()will return the int value of a card. You may assume an Ace is an 11 but extra credit (+5) is available if you determine whether it should be a 1 or an 11!

public String returnTypeOfCard() will return the full name of the card.

class BlackJack is where things get interesting...how are you going to represent the game?
What methods are needed to check the sum? What other methods are needed? If the user asks to stop hitting, will the computer dealer want to hit again (Hint, under 17 he will!). Just ignore the suits for now.

It must be done in an object oriented fashion (this is Java, not C). Use arrays of Cards in class BlackJack.

class BlackJackTester() will play the game until the user gives up!

Due Wednesday before 6:00 pm.

Upload it your FTP space.
I'd like both members of the group to upload the .class and .java files to their FTP space.

ftp://davidcfreer.com

No comments: