Skip to content

Commit

Permalink
Merge pull request #348 from Albinary/patch-1
Browse files Browse the repository at this point in the history
Refined ReadMe.md
  • Loading branch information
Mrinank-Bhowmick authored Oct 1, 2023
2 parents 33b8ff6 + 1039f3f commit c0b93ba
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions projects/BlackJack/ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,20 @@
# BLACKJACK

BlackJack is very popular card game mainly played in casinos around the world.
Let's imagine this program as a virtual casino with computer as the **Dealer**.
The purpose of this game is to beat the Dealer, which can be done in various ways.
Blackjack is a very popular card game commonlu played in casinos worldwide.
This program will simulate a virtual casino, with computer as the dealer.
The purpose of this game is to beat the dealer, which can be done in various ways.

## Rules

- Both the player and the dealer are given 2 cards at the beginning , but one of the dealer's card is kept hidden.

Each card holds a certain value.

- Numbered cards contain value identical to their number.
- All face cards hold a value of 10
- Ace can either hold a value of 1 or 11 depending on the situation.

BlackJack means **21**. Whoever gets a total value of 21 with their cards immediately wins!
*(winning through blackjack results in 3x the money)*

If the value of cards goes over 21, its called a BUST, which results in immediate loss...
If both the players get the same value of cards , it's a TIE and the betted money is returned.

If none of the above cases are met ,the person with closer value to 21 wins.
*(winning like this returns 2x the betted money)*
- 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.
- Each card holds a certain value.
- Numbered cards have a value identical to their number.
- All face cards (e.g. King, Queen) hold a value of 10.
- Aces can either hold a value of 1 or 11, depending on the situation.
- 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!
- 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.
- 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!

-----------------------------------------------------------------------------------------------------------------

For simplicity of the program a lot of moves like double down,split and surrender were skipped.
The program also lacks proper linting , debugging and optimization at the moment.
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 comments on commit c0b93ba

Please sign in to comment.