Ruby Playing Cards

Build Status Coverage Status

Instalation

Add this line to your application's Gemfile:

gem 'ruby_playing_cards'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ruby_playing_cards

Example

Here is a simple example of building and dealing a deck of cards.

require 'ruby_playing_cards'

include RubyPlayingCards
deck = Deck.new

Dealer.shuffle deck

hands = Dealer.deal deck, hand_size: 5, player_count: 3

hands.each { |hand| puts hand.to_s }