C# Class PokerHandsKata.FinishedPokerGameDealer

Inheritance: IPokerGameDealer
Mostrar archivo Open project: Betclic/CodingDojo-Katas

Public Methods

Method Description
GetScore ( Hand hand ) : Score
GetWinnerHand ( IList hands ) : Hand

Private Methods

Method Description
duplicated ( Hand hand ) : GroupResult[]
isFlush ( Hand hand ) : bool
isFourOfAKind ( Hand hand ) : bool
isFullHouse ( Hand hand ) : bool
isLowestStraight ( int ordered ) : bool
isPair ( Hand hand ) : bool
isRoyalFlush ( Hand hand ) : bool
isStraight ( Hand hand ) : bool
isStraightFlush ( Hand hand ) : bool
isThereExactlyOneAce ( int ordered ) : bool
isThreeOfAKind ( Hand hand ) : bool
isTwoPair ( Hand hand ) : bool
orderedNumbers ( Hand hand ) : int[]
replaceAceWithOne ( int ordered ) : void

Method Details

GetScore() public method

public GetScore ( Hand hand ) : Score
hand Hand
return Score

GetWinnerHand() public method

public GetWinnerHand ( IList hands ) : Hand
hands IList
return Hand