Skip to content
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md

README.md

Test-Driven Development (TDD) Homework

Finish the "Poker" project given in the demo using TDD.

Task 1. In the Card class implement the ToString() method

  • Use Test-Driven Development (TDD)
  • Test all cases

Task 2. In the Hand class implement the ToString() method

  • Use Test-Driven Development (TDD)
  • Test all cases

Task 3. In the PokerHandsChecker class implement the IsValidHand(IHand) method

  • Use Test-Driven Development (TDD)
  • Test all cases
  • A hand is valid when it consists of exactly 5 different cards.

Task 4. In the PokerHandsChecker class implement the IsFlush(IHand) method

Task 5. In the PokerHandsChecker class implement the IsFourOfAKind(IHand) method

  • Use Test-Driven Development (TDD)
  • Test all cases
  • Did you test all the scenarios?

Task 6*. Implement the other check for poker hands:

  • IsHighCard(IHand hand)
  • IsOnePair(IHand hand)
  • IsTwoPair(IHand hand)
  • IsThreeOfAKind(IHand hand)
  • IsFullHouse(IHand hand)
  • IsStraight(IHand hand)
  • IsStraightFlush(IHand hand)
  • Use Test-Driven Development (TDD)
  • Did you test all the scenarios well?

Task 7*. Implement a card comparison logic for Poker hands

  • CompareHands(…) should return -1, 0 or 1.
  • Use Test-Driven Development (TDD)
  • Test all cases
You can’t perform that action at this time.