As part of a larger project of making apps that deal with playing cards (Cribbage scores, Poker probabilities, etc.), I've decided to create an open source library for dealing with playing cards and collections of playing cards.
The types I've defined are:
- has many
Cards - can iterate over the
Cards byRank - can iterate over the
Cards bySuit - can render itself to a
String
- has a
Rank - has a
Suit - can render itself to a
String
- has an
intindex - can render itself to a
String
- can render itself to a
String - can 'pretty' render itself to a
Stringwith fancy UTF-8 characters such as ♣
- takes in a deck and calculates a score
- returns the score
- returns the collection of score descriptions
- Incorporate SVG Images from vectorized-playing-cards
- Use j2objc to compile this to Objective-C and use in an iOS app
