Permalink
Switch branches/tags
Nothing to show
Commits on Apr 2, 2012
  1. Fix incorrect Low Ace check for Straight.

    zolrath committed Apr 2, 2012
    Somehow an old, incorrect implementation stuck around. Begone!
  2. Refactor, remove duplication throughout hand check

    zolrath committed Apr 2, 2012
    Cards were being grouped by frequency in multiple methods with the same setup
    in every method. DRY it off!
  3. Add README.

    zolrath committed Apr 2, 2012
  4. Initial implementation of HandJudge.

    zolrath committed Apr 2, 2012
    HandJudge can be given any number of Hand objects and display the winning
    hand.
  5. HandReader returns a Hand object.

    zolrath committed Apr 2, 2012
    When HandReader reads your cards it returns a Hand object which contains:
     * Type of hand
     * Rank of hand
     * Card used to determine best hand between two of same hand.
     * Suit if flush
     * The cards that make up the hand
  6. Don't allow more than 52 cards to be dealt.

    zolrath committed Apr 2, 2012
    To avoid having nils in a hand, don't deal more than deck.count
  7. Add multiple cards by entering card name as string

    zolrath committed Apr 2, 2012
    You can now Deck.new.add_cards("King of Spades", "4 of Diamonds") instead of
    needing to do multiple calls to a singular add_card method.
Commits on Mar 31, 2012