/BlackJackDoubles

A Blackjack spinoff for the command line

Primary LanguageRuby

Blackjack Doubles

BlackJackDoubles is a spinoff of the popular card game Blackjack. It requires two players and a neutral dealer to play.

When starting the game, both players set an initial bet. They are then dealt two cards each, face up, so that both may see the other player's hand. A hand is a collection of cards that does not have duplicate numbers. When you're dealt a duplicate, your hand splits, and your initial bet will double. Like Blackjack, you win if you score 21 points, or if you have a higher score than the other player's corresponding hand while staying under 21.

If you are dealt a duplicate card to your hand, your hand will automatically split. When you split a hand, your bet also doubles. At the end of the game, whether you stop betting or you run out of cards, your hands will be compared to your opponent's hands, the best against the best, and the winner will receive the prize money, with a bonus if you've played more than one hand that didn't bust.

You'll both start out with 1000g, and the minimum bet to play is 20g. Good luck!

Usage

Just run rake from the project directory.

Todo

  • Write tests
  • Fix bugs
  • Refactor