Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Assignment 1, BlackJack. Due October 16th 2018. Worth 10 marks. Write a text based Blacklack game. The game will support two basic playing functions:

image text in transcribed
Java Assignment 1, BlackJack. Due October 16th 2018. Worth 10 marks. Write a text based Blacklack game. The game will support two basic playing functions: hit and stay (no split or double or other playing functions). The goal of the game is to have a player play against the dealerfcomputer) and win as much money as possible. The game ends when the player quits or runs out of money. The player starts with $100. java Blacklack You have $100. 1. New hand 2. Quit Basic Rules: This is a single-deck game, meaning the dealer has one full deck (52 cards) To start the dealer asks the player how much they wish to bet. A win will earn the player that same amount, a loss will lose the whole bet. You have $100 How much do you bet? $20 Then the dealer deals itself a card and deals the player two cards. The player then has a choice to ask for more cards (hit) or stop (stay). If the player asks for a hit, they will get a new card and choice for hit or stay again. This will repeat until the player stays or goes over 21, in which case they lose the bet automatically If the player stays then the dealer will deal to itself cards until it exceeds 17 Dealer showing 5c You have 9d 3h total 12 1. hit 2. stay The player closest to 21 without going over wins note this is a single deck game which means a card cannot repeat in the same round. Dealer showing Sc You have 9d 3h 7d total 19 1. hit 2. stay This has to be an object oriented, text based application. Make sure to use the following classes, you can add extra methods and classes as needed. HAND IN: java source files with documentation Dealer has ScKh 3s total 18 You win! Cast Card You have $120 1. New hand 2. Quit stayo Deck Hand Player Dealer Thank you for playing

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 Security XI Status And Prospects

Authors: T.Y. Lin, Shelly Qian

1st Edition

0412820900, 978-0412820908

More Books

Students also viewed these Databases questions