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; }
private void AddMessageToBallotRandomly() { foreach (Kingdom sender in CompetingKingdom) { foreach (Kingdom receiver in AllKingDoms) { AddMessageToBallot(sender, receiver, RandomizeMessage.GetNextMessage()); } } }