public Results() { Players = new List <Player>(); Lottery = new Lottery(0); Categories = new Categories(); Statistics = new Statistics(); }
// THIS IS STAGE 3 //Method that creates many lotteries public void ManyLotteries(int howMany) { for (int i = 0; i < howMany; i++) { Lottery = new Lottery(Lottery.RemainingBudget); //adds the remaining budget from the previous lottery Lottery.ID = i + 1; foreach (int number in Lottery.DrawList) { Statistics.AllLotteryNumbers.Add(number); //saves all the numbers from ALL lotteries to a new list } PrintLottery(); Categories = new Categories(); FindResults(); PrintResults(); } }