Open bharvishah opened 9 years ago
@bharvishah It probably shouldn't tell me what the cards are when I'm playing.
Secondly, if I stay, I shouldn't get another chance to stay again.
example:
Your two cards are:
________________________
["hearts", "K", 10]
________________________
["spades", "K", 10]
"_____________________"
One of the dealer's card is:
________________________
["spades", 2, 2]
________________________
Your hand: 20
Do you want to stay or hit ? (h/s)
s
"player stays"
________________________
"Now dealer hand is 13"
"Dealer stays"
Do you want to stay or hit ? (h/s)
s
"player stays"
"Player wins"
"Player's cards are: [#<Card:0x007fc97c053000 @suit=\"hearts\", @number=\"K\", @value=10>, #<Card:0x007fc97c052c90 @suit=\"spades\", @number=\"K\", @value=10>]"
"Dealer's cards are: [#<Card:0x007fc97c0528f8 @suit=\"spades\", @number=2, @value=2>, #<Card:0x007fc97c052790 @suit=\"spades\", @number=3, @value=3>, #<Card:0x007fc97c052510 @suit=\"diamonds\", @number=8, @value=8>]"
________________________
"Now dealer hand is 20"
https://github.com/bharvishah/Bharvi-BlackJack