|
1 | 1 | # BLACKJACK |
2 | 2 |
|
3 | | -BlackJack is very popular card game mainly played in casinos around the world. |
4 | | -Let's imagine this program as a virtual casino with computer as the **Dealer**. |
5 | | -The purpose of this game is to beat the Dealer, which can be done in various ways. |
| 3 | +Blackjack is a very popular card game commonlu played in casinos worldwide. |
| 4 | +This program will simulate a virtual casino, with computer as the dealer. |
| 5 | +The purpose of this game is to beat the dealer, which can be done in various ways. |
6 | 6 |
|
7 | 7 | ## Rules |
8 | 8 |
|
9 | | -- Both the player and the dealer are given 2 cards at the beginning , but one of the dealer's card is kept hidden. |
10 | | - |
11 | | -Each card holds a certain value. |
12 | | - |
13 | | -- Numbered cards contain value identical to their number. |
14 | | -- All face cards hold a value of 10 |
15 | | -- Ace can either hold a value of 1 or 11 depending on the situation. |
16 | | - |
17 | | -BlackJack means **21**. Whoever gets a total value of 21 with their cards immediately wins! |
18 | | -*(winning through blackjack results in 3x the money)* |
19 | | - |
20 | | -If the value of cards goes over 21, its called a BUST, which results in immediate loss... |
21 | | -If both the players get the same value of cards , it's a TIE and the betted money is returned. |
22 | | - |
23 | | -If none of the above cases are met ,the person with closer value to 21 wins. |
24 | | -*(winning like this returns 2x the betted money)* |
| 9 | +- At the start of the game, both the player and the dealer are given 2 cards, however one of the dealer's card is kept hidden. |
| 10 | +- Each card holds a certain value. |
| 11 | + - Numbered cards have a value identical to their number. |
| 12 | + - All face cards (e.g. King, Queen) hold a value of 10. |
| 13 | + - Aces can either hold a value of 1 or 11, depending on the situation. |
| 14 | +- Blackjack refers to a total card value of **21**. When a player achieves this, they immediately win, and the victory results in a payout 3x the amount of the bet! |
| 15 | +- If the total value of cards exceeds 21, it's called a BUST, which results in immediate loss. If both participants bust, the result is a tie, and the bets are returned. |
| 16 | +- If none of the above conditions are met, the person with a closer value to 21 wins. Winning in this manner results in a payout 2x the amount of the bet! |
25 | 17 |
|
26 | 18 | ----------------------------------------------------------------------------------------------------------------- |
27 | 19 |
|
28 | | -For simplicity of the program a lot of moves like double down,split and surrender were skipped. |
29 | | -The program also lacks proper linting , debugging and optimization at the moment. |
| 20 | +PLEASE NOTE: For simplicity, this program does not include advanced moves, such as double downs, splits and surrenders. The program also currently lacks proper linting, debugging and optimization. |
0 commit comments