Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 1.32 KB

File metadata and controls

10 lines (8 loc) · 1.32 KB

Test-Driven Development

Finish the Poker project given in the Visual Studio Solution "homework.zip" using TDD.

  1. Write a class Card implementing the ICard interface. Implement the properties. Write a constructor. Implement the ToString() method. Test all cases.
  • Write a class Hand implementing the IHand interface. Implement the properties. Write a constructor. Implement the ToString() method. Test all cases.
  • Write a class PokerHandsChecker (+ tests) and start implementing the IPokerHandsChecker interface. Implement the IsValidHand(IHand). A hand is valid when it consists of exactly 5 different cards.
  • Implement IPokerHandsChecker.IsFlush(IHand) method. Follow the official poker rules from Wikipedia: List of Poker Hands.
  • Implement IsFourOfAKind(IHand) method. Did you test all the scenarios?
  • * 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) and IsStraightFlush(IHand hand). Did you test all the scenarios well?