Create a simple command line interface Blackjack game in Ruby.
Add this line to your application's Gemfile:
gem 'cwdg-blackjack'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cwdg-blackjack
Just run cwdg-blackjack
- Card
- value
- suit
- Deck
- 1-10 + Jack + Queen + King + Ace
- shuffle
- multiple decks
- Hand
- 2 cards to start
- drawn from deck
- discards?
- hit
- hand value
- Player
- name
- hand
- money
- Game
- create decks
- ask for player name
- create player
- create dealer player
- loop
- ask for bet
- deal cards
- player actions
- check for wins
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request