This is a simple Blackjack card game with Python. It allows only 2 players with the computer as the dealer. The rules are simple:
- You deal 2 cards, the dealer also deals 2 cards
- Any sum of the points from both cards from you and the dealer is closer to 21 is the winning point.
- If the sum of your point or the dealer's point is 21, that person wins immediately.
- From #3., if any point is over 21, that person looses immediately.
- If the point is lower than 21, you can ask for more cards (called 'hit').
- If the dealer's point is innitially lower than 17, he must draw a card.
- Any card from 2 - 10 has its 'face value' points.
- Jack, Queen, King, each counts as 10 points.
- Ace counts as 1 or 11, depending on the total points.
This set of Python code feature the use of randomization with weightde probability, loop, if-else conditioning, list, and function. Although it's only a 2-player simple card game, the code is quite long and may not be most stream-lined. However, the code works fine. It also gives you a summary of how many games you've played and how many times you've won or lost, in a grammartically correct way.