Question
Java Enum Types Blackjack Game Write a java program that plays Blackjack: you against the computer. Deal two cards to the player and dealer alternating,
Java
Enum Types
Blackjack Game
Write a java program that plays Blackjack: you against the computer.
Deal two cards to the player and dealer alternating, the player then the dealer and the player and then the dealer. not bets needed
Ask if the player wants another card until they say no or go over 21. The game is over if the player goes over 21.
If the player does not go over, deal cards to the dealers hand until it exceeds 16. If the dealer goes over 21, the dealer loses.
Determine the winner or if there is a tie.
Allow the player to play again, keeping track of the number of wins and losses.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started