In this assignment, you develop code to simulate the basic Blackjack.docx

This preview shows page 1 - 3 out of 6 pages.

In this assignment, you develop code to simulate the basic Blackjack strategies around hitting (getting another card) and standing (not getting another card). Specifically, in this assignment you will calculate the probability of going bust with different play strategies. Some important aspects of Blackjack are quoted below, but as background, please read the Wikipedia page (Links to an external site.) on Blackjack. Blackjack is played one on one against the dealer. From Wikipedia: The hand with the highest total wins as long as it doesn t exceed 21; a hand with a higher total than 21 is said to bust. Cards 2 through 10 are worth their face value, and face cards (jack, queen, king) are all worth 10. An ace s value is 11 unless this would cause the player to bust, in which case it is worth 1. A hand in which an ace s value is counted as 11 is called a soft hand, because it cannot be busted if the player draws another card. Initially, players are dealt two cards. They then must decide whether to keep receiving more cards. The terminology used here is: Hit: take another card Stand: take no more cards, let their current score stand As the accumulated score of a hand increases, so does the probability of going bust. When played in a casino, dealers are required to play according to a strict set of rules.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture