Exemple #1
0
 public BallotSystem(List <Kingdom> competingKingdom, List <Kingdom> allKingDoms, RandomizeMessage randomizeMessage, int pickNRandomMessage)
 {
     CompetingKingdom   = competingKingdom.Distinct().ToList();
     AllKingDoms        = allKingDoms.Except(CompetingKingdom).ToList();
     BallotBox          = new BallotBox();
     RoundResults       = new Dictionary <string, List <string> >();
     RandomizeMessage   = randomizeMessage;
     PickNRandomMessage = pickNRandomMessage;
     Round = 1;
 }
Exemple #2
0
 private void AddMessageToBallotRandomly()
 {
     foreach (Kingdom sender in CompetingKingdom)
     {
         foreach (Kingdom receiver in AllKingDoms)
         {
             AddMessageToBallot(sender, receiver, RandomizeMessage.GetNextMessage());
         }
     }
 }