Question: Make sure to use the following in your code: INCLUDE C: Irvine Irvine 3 2 . inc INCLUDELIB C: Irvine Irivne
Make sure to use the following in your code: INCLUDE C:IrvineIrvineinc INCLUDELIB C:IrvineIrivnelib Write a program in masm x assembly language to accomplish the following: Create a Simplified Blackjack Game The game should begin with the user. a Randomly deal two cards to the users hand. Display the card values and the associated suit for each card, as well as the total value of the hand for the user. b The goal is for the user to have a hand that is as close as possible to a value of without going over, so next the program should display a prompt, asking the user to Hit or Stand. c If the user selects to Hit, the game should randomly deal a new card to the users hand, displaying the card value and suit, and must also calculate and display the new total value of the hand for the user. If the total is greater than then the user busts, the house wins, and a message indicating these results is displayed. If the total is less than repeat the HitStand Prompt to the user. Continue this process until the user busts or elects to Stand. Once the user selects to Stand, then move on to the house hand a Randomly deal two cards to the house, and calculate the total hand value for the house. b Again, the display must include the value and suit of each card. c The house MUST continue to Hit as long as the total of the hand is under displaying the results after each Hit d The dealer MUST Stand once the hand reaches or higher. If the house busts, then the user wins. If neither the user nor the house bust, once the house stands, compare the users hand to the house hand and determine display the results. The player closes to without going over wins. Once a final game result has been displayed, prompt the user to with an option to play again. If the user selects to play again, start the program from the beginning, otherwise display a farewell message and terminate the program. The play again option must not be case sensitive Cards: There are suits: Clubs, Spades, Hearts, and Diamonds Each suit has cards: Jack, Queen King, Ace IMPORTANT: An Ace can have a value of or so account for this when displaying and evaluating results. If an causes a hand to bust, then it can change to a Whether the Ace is counted as an or a in the final hand for either the user or the house must depend on how it most benefits the hand. o EXAMPLE: Lets say that the initial hand was an Ace and a The ACE would be counted as an because which would get the user or house closest to Then the user decides to Hit and gets an which without an Ace would cause the hand to bust. But since there IS an Ace, the value of the hand is only Ace and o Include logic to evaluate and optimize the status of an Ace, as applicable, after the initial deal and each Hit. There must be instructions to the user, and the game prompts and displays must be visually organized and userfriendly!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
