Exemplo n.º 1
0
 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));
     }
 }
Exemplo n.º 2
0
 public override Gamble GetGamble(PlayerStatistics playerStatistics)
 {
     if (playerStatistics.HasStair())
     {
         IList <Value> orderedValues = new List <Value>();
         orderedValues.Add(playerStatistics.MaxValue);
         return(new Gamble(GambleType.ESCALERA, orderedValues));
     }
     else
     {
         return(nextAnalyzer.GetGamble(playerStatistics));
     }
 }
Exemplo n.º 3
0
 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));
     }
 }
Exemplo n.º 4
0
 public override Gamble GetGamble(PlayerStatistics playerStatistics)
 {
     if (playerStatistics.HasSameColor(5) && playerStatistics.HasStairStart(Value.DIEZ))
     {
         IList <Value> orderedValues = new List <Value>();
         orderedValues.Add(playerStatistics.MaxValue);
         return(new Gamble(GambleType.ESCALERA_REAL, orderedValues));
     }
     else
     {
         return(nextAnalyzer.GetGamble(playerStatistics));
     }
 }