An open API service indexing awesome lists of open source software.

https://github.com/dvandersluis/bicycle

Ruby implementation of a deck of cards
https://github.com/dvandersluis/bicycle

Last synced: 10 months ago
JSON representation

Ruby implementation of a deck of cards

Awesome Lists containing this project

README

          

# Bicycle

🚲🃏

Ruby pure-OO implementation of a deck of cards.

## Usage

```ruby
deck = Bicycle::Deck.new.shuffle
hands = deck.deal(4, 5) # 4 hands of 5 cards
```

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'bicycle'
```

And then execute:

$ bundle

Or install it yourself as:

$ gem install cards

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/dvandersluis/bicycle.