Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

=+1 Where are the best places in the world to live (and work)?

Answered: 1 week ago

Question

=+Are you interested in working on global teams?

Answered: 1 week ago

Question

=+Do you want to work from home?

Answered: 1 week ago