Finish the Poker
project given in the Visual Studio Solution "homework.zip" using TDD.
- Write a class
Card
implementing theICard
interface. Implement the properties. Write a constructor. Implement theToString()
method. Test all cases.
- Write a class
Hand
implementing theIHand
interface. Implement the properties. Write a constructor. Implement theToString()
method. Test all cases. - Write a class
PokerHandsChecker
(+ tests) and start implementing theIPokerHandsChecker
interface. Implement theIsValidHand(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)
andIsStraightFlush(IHand hand)
. Did you test all the scenarios well?