Ruby Playing Cards
Instalation
Add this line to your application's Gemfile:
gem 'ruby_playing_cards'
And then execute:
$ bundle
Or install it yourself as:
$ gem install
Example
Here is a simple example of building and dealing a deck of cards.
require 'ruby_playing_cards'
include
deck = Deck.new
Dealer.shuffle deck
hands = Dealer.deal deck, hand_size: 5, player_count: 3
hands.each { |hand| puts hand.to_s }
