Skip to content

Commit 5bb119b

Browse files
authored
Merge pull request #190 from TheArushiSingh/main
Added Blackjack Game wrt #81
2 parents 6e91fec + 04b4d6c commit 5bb119b

File tree

26 files changed

+421
-1
lines changed

26 files changed

+421
-1
lines changed

Blackjack Game/README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Blackjack game
2+
The player has to get a hand with a value as close to 21 as possible without going over.
3+
A hand that goes over 21 is a bust.
4+
The players in a blackjack game plays against the dealer. Each player has to beat the dealer's hand in order to win.
5+
6+
In blackjack game, the suits have no meaning.
7+
1. Number cards have a value equal to their number.
8+
2. All the picture cards (Jacks, Queens, and Kings) are worth 10.
9+
3. Aces are worth 1.
10+
11+
12+
## HOW TO PLAY
13+
14+
## 1. When the user clicks "Hit" button , a card is drawn
15+
You can draw as many cards as you want
16+
17+
![image](https://github.com/TheArushiSingh/Web-dev-mini-projects/blob/main/Blackjack%20Game/readme%20images/img1.PNG)
18+
19+
### 2. You can click on "Stand" when you no longer want to draw cards and then the dealer will draw it's cards
20+
21+
## 3. If the sum of cards of the dealer is greater than your sum , then you loses the game
22+
23+
![](https://github.com/TheArushiSingh/Web-dev-mini-projects/blob/main/Blackjack%20Game/readme%20images/img2.PNG)
24+
25+
26+
## 4. If the sum of your cards is greater than 21 then you are busted and you loses the game
27+
28+
![](https://github.com/TheArushiSingh/Web-dev-mini-projects/blob/main/Blackjack%20Game/readme%20images/img3.PNG)
29+
30+
## 5. If your sum is greater than dealer's sum then you won the game
31+
32+
![](https://github.com/TheArushiSingh/Web-dev-mini-projects/blob/main/Blackjack%20Game/readme%20images/img4.PNG)
33+
34+
## 6. If Your Sum = Dealer's sum then the game draws
35+
36+
![](https://github.com/TheArushiSingh/Web-dev-mini-projects/blob/main/Blackjack%20Game/readme%20images/img5.PNG)
37+
38+
39+
7. The table keeps a record of total wins,loses and draws
40+
8. Click on "Restart" Button to start a new game
41+
9. Click on "Deal" Button to clear the field

Blackjack Game/images/10.png

32.4 KB
Loading

Blackjack Game/images/2.png

7.68 KB
Loading

Blackjack Game/images/3.png

9.54 KB
Loading

Blackjack Game/images/4.png

36.3 KB
Loading

Blackjack Game/images/5.png

57.7 KB
Loading

Blackjack Game/images/6.png

50.8 KB
Loading

Blackjack Game/images/7.png

87.5 KB
Loading

Blackjack Game/images/8.png

33.2 KB
Loading

Blackjack Game/images/9.png

64.3 KB
Loading

0 commit comments

Comments
 (0)