Example #1
0
        private string CheckForAFullHouse()
        {
            var firstFullHouseRankValue  = evaluator.FullHouseValue(firstPlayerCards);
            var secondFullHouseRankValue = evaluator.FullHouseValue(secondPlayerCards);

            if (firstFullHouseRankValue > secondFullHouseRankValue)
            {
                return(string.Format("{0} wins - full house", firstPlayerName));
            }
            return(secondFullHouseRankValue > firstFullHouseRankValue?
                   string.Format("{0} wins - full house", secondPlayerName) : Constants.NO_RESULT);
        }