Scooby Doobie Doo! Here's a blackjack game just for you!
Install the gem and add to the application's Gemfile by executing:
$ bundle add blackjack
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install blackjack
At this point, the following features exist:
Blackjack::Game.new.play
starts a new game- Dealer only shows the player-visible cards (i.e. not the first card)
- Game is over if the Dealer wins by BlackJack
- All players display their hands and their current card value
- Any winning or losing hands are displayed as such
After each round, any remaining players would be dealt a new card and the round would continue as above until all players (or the dealer) is out.
-
Only the core game has currently been implemented, and no CLI command has been created. However, I plan on using
Thor
to add a CLI tool in the future. -
Only one round plays currently. It should be each to add the game-loop in as (I believe) all the relative parts are there for it, just not the loop itself.