RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in