C# Class Poker.PokerHandsChecker

Inheritance: IPokerHandsChecker
Show file Open project: nzhul/TelerikAcademy Class Usage Examples

Public Methods

Method Description
CompareHands ( IHand firstHand, IHand secondHand ) : int
IsFlush ( IHand hand ) : bool
IsFourOfAKind ( IHand hand ) : bool
IsFullHouse ( IHand hand ) : bool
IsHighCard ( IHand hand ) : bool
IsOnePair ( IHand hand ) : bool
IsStraight ( IHand hand ) : bool
IsStraightFlush ( IHand hand ) : bool
IsThreeOfAKind ( IHand hand ) : bool
IsTwoPair ( IHand hand ) : bool
IsValidHand ( IHand hand ) : bool

Method Details

CompareHands() public method

public CompareHands ( IHand firstHand, IHand secondHand ) : int
firstHand IHand
secondHand IHand
return int

IsFlush() public method

public IsFlush ( IHand hand ) : bool
hand IHand
return bool

IsFourOfAKind() public method

public IsFourOfAKind ( IHand hand ) : bool
hand IHand
return bool

IsFullHouse() public method

public IsFullHouse ( IHand hand ) : bool
hand IHand
return bool

IsHighCard() public method

public IsHighCard ( IHand hand ) : bool
hand IHand
return bool

IsOnePair() public method

public IsOnePair ( IHand hand ) : bool
hand IHand
return bool

IsStraight() public method

public IsStraight ( IHand hand ) : bool
hand IHand
return bool

IsStraightFlush() public method

public IsStraightFlush ( IHand hand ) : bool
hand IHand
return bool

IsThreeOfAKind() public method

public IsThreeOfAKind ( IHand hand ) : bool
hand IHand
return bool

IsTwoPair() public method

public IsTwoPair ( IHand hand ) : bool
hand IHand
return bool

IsValidHand() public method

public IsValidHand ( IHand hand ) : bool
hand IHand
return bool