Пример #1
0
 public Choice MakeChoice()
 {
     return(Choice.GetRandomChoice(moneyAmount));
 }
Пример #2
0
 public bool IsSuitable(Choice choice)
 {
     return((cost >= choice.lowerMoneyBound && cost <= choice.higherMoneyBound) &&
            (mass >= choice.lowerMassBound && mass <= choice.higherMassBound) &&
            (choice.possibleColors.Contains(color) && type == choice.type));
 }