Your main game loop should ask the user how many players, and allow .docx - Your main game loop should ask the user how many players and allow that many

Your main game loop should ask the user how many players, and allow .docx

This preview shows page 1 - 4 out of 15 pages.

Image of page 1
Your main game loop should ask the user how many players, and allow that many players to play the game. You may assume a max of 6 players.You should allow your players to wager some amount of money on each play. You need to take in user input! I assume this means that you should not automate your game. You should make it so that 1-6 real people could use your programto play your game on 1 computer.Your program follows all of the rules of blackjack specified in the assignment:Each round of simplified blackjack proceeds as follows:The dealer shuffles the deck and deals two cards "face up" (with the front of the card showing) to each player.The dealer deals one card "face down" (with only the back showing) and one card "face up" to himself.The dealer asks the first player whether she wishes to "hit" (receive another card) or "stand" (not receive any more cards).If she chooses to stand, she will not receive any more cards this round, so her score is fixed. The game moves on to the next player.If she chooses to hit, the dealer will deal her another card, face up, and her score increases. She will then be given the option to hit or stand again.If her score exceeds 21, she has "busted" and immediately loses this round - play will continue with the next player.Essentially, the player can continue to hit until she either
Image of page 2
Image of page 3
Image of page 4

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture