Ruby gem "cards_lib" 0.2.0 released!
Arguably the “smartest” library available in Ruby for designing and creating your own card games. With features such as
- An immutable Deck
- Seeding randomness for consistent TDD game flow testing
- Card Ranking and Evaluation
- Easy hand "set" determination with simple rule selection (functional programming style)
- Some Poker hand rules provided in Standard::Rules
- A Blackjack hand evaluator under Standard::Evaluators
- Default ASCII cards of multiple kinds
- Advanced card evaluation available via card by card comparison using functional programming methodology.
This library is still quite young but has had a lot of thought put into it! Try it out and please feel free to help it grow into all it can be! :-) https://github.com/danielpclark/CardsLib
Post a comment