/blackjack

TDD BlackJack Game

Primary LanguageRuby

BlackJack (21) by TallKeith

A command line blackjack game. Play against the computer and try to break the bank!

Launching the game

Clone this repository. Navigate to the blackjack folder in your command line and then run

ruby blackjack.rb

General Rules

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.