Question: Create a simple blackjack game with rules below in JAVA FX using images and such. The player and dealer are each dealt 2 cards. All

Create a simple blackjack game with rules below in JAVA FX using images and such.

The player and dealer are each dealt 2 cards. All of the players cards are dealt face up, the dealers first two cards are dealt one face up and one face down. After the card dealing, the player is given the option to either hit (draw a card) or stand (end their turn). The player may hit as many times as they want until they either go over 21 or they wish to stand. If the player goes over 21, they lose the round and the dealer wins.

After the player has completed their turn, the dealer will reveal both cards and if they have a 21, will automatically win unless the player has 21 as well which results in a tie. If it is not a 21, then they have rules to follow to decide if they hit or stand. As long as the dealer's cards are less than 17, then the dealer must hit, this holds true even if the dealer is currently beating the player. If the dealer goes over 21, then they bust and the player wins by default. If the dealer gets to 17 or higher then the player and dealer compare scores to see who is closest to 21. In a tie, there is no win or loss.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!