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
- Host: GitHub
- URL: https://github.com/dvandersluis/bicycle
- Owner: dvandersluis
- Created: 2019-05-17T16:45:54.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-17T20:48:20.000Z (about 7 years ago)
- Last Synced: 2025-03-17T15:25:54.425Z (about 1 year ago)
- Language: Ruby
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
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.