Java Project on New Java Topics

Building a Blackjack Game

You have to build a Blackjack game that demonstrates your understanding of the new java constructs we have learned in this unit: enums, conditional operator, and switch statements. This game should deal two hands, one to the dealer/computer and the other to the human player. If you are unfamiliar with the basic rules of Blackjack, please consult a guide on the Internet. Your game does not have to keep track of fake money but you should announce who the winner was after each hand. Remember that if both players go bust, the Dealer is the winner of that hand.

Class Structure

You should develop a separate Card class with the suits (Clubs, Diamonds, Hearts, and Spades) set up using enum. The ranks (A, 2, ... 10, J, Q, K) should also make use of enums. 

Also develop a Deck class that contains 52 cards.

Finally, develop a Game class to track the game.

GUI or No GUI

Your Blackjack game can be built on a JavaFX GUI interface or simply by printing the card values to the console. If you choose to use a JavaFX GUI, you need not develop this GUI yourself. You can use any playing card GUI you find as long you have a legal right to do so. 

Submission

Submit a copy of your code and output on a web-based notebook.

If you have any additional questions, please consult with your instructor.