In class we've explored the implementation of a simple terminal based Black Jack application. This implementation is missing a few features:
For this homework, you must implement the features listed above and provide unit tests for features 1 and 2. You are welcome to add new methods to the existing classes, however:
main()
method of Driver.java
[2020-02-16] IMPORTANT UPDATE: I updated the method signature of the play() method contained in Dealer.java. It is now:
void play(Deck d)
Here is the link to the JavaDoc documentation of the provided classes.
In addition to implementing the features, you must provide unit tests for your implementation of features 1 and 2. Name the classes that implement unit test
after the class being tested: if the class being tested is named A
, then the class containing unit tests for A
must be named
ATest
.
Submit all the code necessry for the BlackJack application and unit tests to hw5
directory of your git repos. Submit a paper copy of your UML diagram
in class.
javac Driver.java
I will use the list of questions below. Each question can score you from 0 to 2 points: No - 0, Somewhat - 1, Yes - 2. The sum of these points will be your grade for this homework.