public override Gamble GetGamble(PlayerStatistics playerStatistics) { if (playerStatistics.HasTwoPairs()) { IList <Value> orderedValues = playerStatistics.GetOrderedValues(2); ((List <Value>)orderedValues).AddRange(playerStatistics.GetOrderedValues(1)); return(new Gamble(GambleType.DOBLE_PAREJA, orderedValues)); } else { return(nextAnalyzer.GetGamble(playerStatistics)); } }
public override Gamble GetGamble(PlayerStatistics playerStatistics) { if (playerStatistics.HasSameValue(3)) { IList <Value> orderedValues = playerStatistics.GetOrderedValues(3); // orderedValues.addAll(playerStatistics.getOrderedValues(1)); return(new Gamble(GambleType.TRIO, orderedValues)); } else { return(nextAnalyzer.GetGamble(playerStatistics)); } }