So, for example, a King and an ace would be 21, but one King, a 9, and an Ace would be valued at 20 (10+9+1=20). If the value of the hand with an ace puts it over 21, the ace is valued at 1.Number cards are valued at their number, Face cards (Jack Queen and King) are valued at 10, and aces are valued at 1 or 11 depending on the situation.Players start with two cards and have an option to hit (draw another card) or stand (end their turn).It will be played with a single, standard Deck of 52 cards, though you could easily change it to accommodate larger deck sizes.Note that there are many variations of blackjack. This will be a very basic version with only hit and stand functionality. I'd encourage you to try building the console version, then check out the GUI version (bottom of page). I have a new version of this same project, but with a GUI. Starting from the ground up with creating the cards, then the deck, then the game logic, and so on.
We will be jumping between different files and adding methods as we need them. Rather than going through code individually class by class, I'll be explaining the processes behind how I would logically develop certain parts of the program. You will practice fundamental Java concepts including object oriented design, inheritance, basic algorithm design, ArrayLists, and more. In this exercise, you will create a console version of Blackjack using Java.