File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
- ** BLACK JACK**
1
+ ** BLACK JACK**
2
2
3
- ** GOAL**
3
+ ** GOAL**
4
4
The sum of your cards should be greater than the sum of the dealers cards.
5
5
Also sum of the cards cannot go above 21 and if the sum is 21 it is called Blackjack.
6
- Blackjack always wins.
6
+ Blackjack always wins.
7
7
8
- ** DESCRIPTION**
8
+ ** DESCRIPTION**
9
9
BlackJack is a famous casino game , and this is a simplified version of the real game(which involves bidding and various other stuff).
10
10
All players play againt the dealer of the cards.
11
11
All the cards have fixed values associated to them and the main objective of the game is
12
12
to get the score as high as possible but less than or equal to 21.
13
- It is a fun short game.
13
+ It is a fun short game.
14
14
15
- ** WHAT I HAD DONE**
15
+ ** WHAT I HAD DONE**
16
16
First I decided the Game Design:
17
17
It had to be played on the terminal
18
18
I wrote a function to print out a card to the terminal.
@@ -22,7 +22,7 @@ I defined a class of cards and formed a Deck as the array of cards.
22
22
Then I wrote the main Game Logic:
23
23
Cards are given using random function,
24
24
Player can choose to Hit or Stand,
25
- Players and dealers cards and values are shown on the screen.
26
- ** DEMONSTRATION**
25
+ Players and dealers cards and values are shown on the screen.
26
+ ** DEMONSTRATION**
27
27
28
- ** SIDDHANT JETHWANI**
28
+ ** SIDDHANT JETHWANI**
You can’t perform that action at this time.
0 commit comments