Question: RITE A PROGRAM USING C LANGUAGE CS210-Machine Problem Blackjack 30 Points Assigned: April 9, 2018 Due: April 23, 2018 Many students graduate from college with
RITE A PROGRAM USING C LANGUAGE CS210-Machine Problem Blackjack 30 Points Assigned: April 9, 2018 Due: April 23, 2018 Many students graduate from college with substantial debt. In order to help you reduce it, we are going to create a Blackjack game so you can practice your card-counting skills before going to the bost to make your fortune The Game l encourage you to look at Wikipedia for a fuller description of the game. Here are the essentials: . A blackjack hand starts with two cards. The values of the cards are 10 for face cards (U, Q, K. 1 or 11 for Aces, and the number for all the rest of the cards be either 1 or 11, you pick the largest value which doesn't exceed 21 if possible. stand which ends your turn. . The goal is to try to get a total as close to 21 as possible without going over. Note: since Aces can . The only options you have are to either hit, which means to add another card to your hand, or to You are playing against the dealer. At the beginning of the game, you only get to see one of the dealers cards. After you are done playing, the dealer reveals the second card and plays his turn. The dealer must follow this rule: If the total is less than 17, he must hit, otherwise, he must stand . If you go over 21, you lose. Otherwise, if the dealer goes over 21, you win Otherwise, the person with the larger total wins. If the totals are the same it's a tie. Blackjack is a gambling game, so before each hand you make a bet. If you win, you get double the amount of your bet back. If you lose, you get nothing. If there's a tie, you get your original bet back, but with no extra. The Program The sample run will show a typical interaction with this program Since there is a random element to this game, the submission system will actually be checking your implementation of the card playing library. will check your actual game by hand In our program, the user will start with $1,000. The game will end either when the player runs out of money, or signifies that they are done by placing a negative bet. Also, typical casino blackjack games use multiple decks of cards (called a shoe) to make it more difficult to count cards. At the beginning of the program, you will ask the user how many decks they wish to play with
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
