Homework 6

Learning Objectives

In this homework, you will apply the concepts you learned in class to reinforce your understanding of:

Description

In class we worked with a Graphical User Interface prototype for the Black Jack game. For this homework, you need to extend this prototype as follows:

  1. When the dealer's card is facing down, add a design to the back of the card. The design needs to be some repeated pattern (lines, checkers, diamonds, etc). In other words, make the back of the card look realistic.
  2. Provide a mechanism for the user to place a bet.
  3. Provide a mechanism for the user to see the current amount of money he/she has

To receive full credit for this assignment you must add a custom class that extends some Java SWING component for at least one of the following: feature 2, feature 3. This should be similar to the custom classes we used in the original Black Jack Prototype (HandPanel, for example).

Do not modify Driver.java and do not remove the getFrame() method from the Prototype class.

Submitting your solution

Submit all the code for your Black Jack prototype to hw6 directory of your git repos.

Grading

All submitted code must compile. Code that does not compile will receive a grade of zero. I will be compiling your submissions with the following command:
javac *.java

I will use the list of questions below. Each question can score you from 0 to 3 points (unless otherwise stated): No - 0, Somewhat - 1, Yes - 3. The sum of these points will be your grade for this homework.

  1. Did you implement the required features? (3 points per feature)
  2. Does the back of the card look realistic?
  3. Did you create a custom class to implement feature 2 or 3?
  4. Does your custom class extend a Java SWING component?
  5. Is your final prototype aesthetically pleasing (7 points)?