Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using and MSP4 3 0G255 3, implement a Las Vegas-style Blackjack game machine wit

ID: 3859878 • Letter: U

Question

Using and MSP430G2553, implement a Las Vegas-style Blackjack game machine with hex-numbered cards. One input must start a new game. A second input must "hit" for a new card for the player. A third input must allow the player to "stay" and start the dealer drawing. The goal of the game is to beat the dealer, which means the player must 1. get as close as possible to 21 (0x15) without going over, i.e., busting; 2. outscore the dealer; or 3. have the dealer bust. When the player starts a new game, the machine must draw a card for the player and a card for the dealer. Then, the machine must draw a second card for the player and a second card for the dealer. With every dealt card, the value of the card must be added to the corresponding sum and the sum must be flashed on the display. A separate single LED must indicate when the player sum is being displayed. With a new game, if both the player and the dealer bust, nobody loses. If either one busts, the other wins. A win always ends the current game. When the player hits, a new card will be drawn and added to the player sum (potentially making the player bust). When the player stays, no more cards will be drawn for the player and the dealer may immediately stay or draw one or more cards before staying. The dealer must stay on a sum of 16 (0x10) or higher. On a lower sum, the dealer must hit until staying or busting. When both the player and the dealer stay, the highest score wins. On a win or a double bust, the sums of the player and the dealer must alternatively flash until a new game is started by the player.

Explanation / Answer

Sorry for delay i will update answer within one hour due to network issues i not able to update answer.Plz understand my problem.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote