예제 #1
0
        private string CheckForTrips()
        {
            var firstTripsRankValue  = evaluator.TripsValue(firstPlayerCards);
            var secondTripsRankValue = evaluator.TripsValue(secondPlayerCards);

            if (firstTripsRankValue > secondTripsRankValue)
            {
                return(string.Format("{0} wins - trips", firstPlayerName));
            }
            return(firstTripsRankValue < secondTripsRankValue ? (string.Format("{0} wins - trips", secondPlayerName)) : Constants.NO_RESULT);
        }