Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Our game of blackjack is a simple card game simulation where you play against the computer. The goal is to beat the computer by getting

Our game of blackjack is a simple card game simulation where you play against the computer. The goal is to beat the computer by getting closer to 21 without going over.

NOTE: You may only write this program in java using conditional statements and loops.

Points: 1 10 - worth the value Face cards - are worth 10 points Aces If dealt to the player, the player can choose whether its worth 1 or 11 points. If dealt to the computer, its automatically worth 11 points. Play: The player starts the game with $50. Play begins with the player placing a bet. The computer deals 2 cards to the player and 2 to itself. The player sees his own card values, but can only see one of the computers card values. After the deal, the player can choose to receive more cards (one at a time) in order to get closer to 21. When the player doesnt want any more cards, its the computers turn. The computer must take more cards until it has at least 17 points. The computer cannot take any cards if it has 17 or more points. Scoring: If the players score is closer to 21 (without going over) than the computers, the player wins whatever he bet. If the computer is closer to 21 (without going over), if the player goes over (regardless of whether the computer does or not) or if there is a tie, the computer wins (and the player loses his bet).

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

Advances In Databases And Information Systems 23rd European Conference Adbis 2019 Bled Slovenia September 8 11 2019 Proceedings Lncs 11695

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Aida Kamisalic Latific

1st Edition

3030287297, 978-3030287290

More Books

Students also viewed these Databases questions