예제 #1
0
 protected int sortChoices(possibleChoice A, possibleChoice B)
 {
     if (A.opinion > B.opinion)
     {
         return(1);
     }
     return(0);
 }
예제 #2
0
 protected void makeMyChoiceOpinion(List <Choice> choices)
 {
     foreach (Choice choice in choices)
     {
         possibleChoice op = new possibleChoice(choice, randVal(50) - 25);
         myChoiceOpinion.Add(op);
     }
     myChoiceOpinion.Sort(sortChoices);
 }