This is simple version of the black jack game you have given a list of two when your cards total is greater than 21 it will call black jack and you will loose,if your card's total is less than 17 you have to pick a card mandatory.At the end you will stop picking your card the game will end it will show what the are cards does the computer have.After that who has the greater number in total cards they will win
This project is made to use the concept of list and functions properly>
Copy the project to your local enviroment and that's all this code can be run on any python IDE.
- The deck is unlimited in size.
- The Jack/Queen/King all count as 10.
- The the Ace can count as 11 or 1.
- cards = [11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10]
- The cards in the list have equal probability of being drawn.
- Cards are not removed from the deck as they are drawn.
- The computer is the dealer.