All Homework Must be Uploaded to it own GitHub repository. You will copy the URL Link for your GitHub Repository and Submit that link for each of your homework assignments
Python Blackjack
For this project you will make a Blackjack game using Python. Click here to familiarize yourself with the the rules of the game. You won’t be implementing every rule “down to the letter” with the game, but we will doing a simpler version of the game. This assignment will be given to further test your knowledge on object-oriented programming concepts.
Rules:
1. The game will have two players: the Dealer and the Player. The game will start off with a deck of 52 cards. The 52 cards will consist of 4 different suits: Clubs, Diamonds, Hearts and Spades. For each suit, there will be cards numbered 1 through 13.
Note: No wildcards will be used in the program
2. When the game begins, the dealer will shuffle the deck of cards, making them randomized. After the dealer shuffles, it will deal the player 2 cards and will deal itself 2 cards from. The Player should be able to see both of their own cards, but should only be able to see one of the Dealer’s cards.
3. The objective of the game is for the Player to count their cards after they’re dealt. If they’re not satisfied with the number, they have the ability to ‘Hit’. A hit allows the dealer to deal the Player one additional card. The Player can hit as many times as they’d like as long as they don’t ‘Bust’. A bust is when the Player is dealt cards that total more than 21.
4. If the dealer deals the Player cards equal to 21 on the first deal, the Player wins. This is referred to as Blackjack. Blackjack is NOT the same as getting cards that equal up to 21 after the first deal. Blackjack can only be attained on the first deal.
5. The Player will never see the Dealer’s hand until the Player chooses to ‘stand’. A Stand is when the player tells the dealer to not deal it anymore cards. Once the player chooses to Stand, the Player and the Dealer will compare their hands. Whoever has the higher number wins. Keep in mind that the Dealer can also bust.
This will be an exercise of how well you understand OOP(Object Oriented Programming).