A command line blackjack game. Play against the computer and try to break the bank!
Clone this repository. Navigate to the blackjack folder in your command line and then run
ruby blackjack.rb
Each player is dealt 2 cards. Both player cards, as well as one dealer card are shown. The object is to get your hand as close to 21 as possible without going over.
-
Card values are as shown, with facecards being 10, and an Ace being worth 11 or 1, whichever helps your hand the most.
-
The dealer must hit on 16 and stand on 17.