static void GetLast6Rounds() { IFileReader fileReader = new FileReader(); var lines = fileReader.ReadNLinesFromFile(7 + (8 * 5), "../../../Data/w49data.txt"); IRoundParser roundParser = new RoundParser(); var(numbers, draws) = roundParser.GetNDraws(7, 0, lines, new List <int>()); IPrinter printer = new Printer(false); Console.WriteLine("??-??-??-??-??-??"); printer.PrintRound(draws, numbers); Console.WriteLine(); for (int i = 0; i < 5; i++) { for (int j = 0; j < 8; j++) { (numbers, draws) = roundParser.GetNDraws(1, 7 + ((i * 8) + j), lines, numbers); printer.PrintSubsiquentRound(draws, numbers); } Console.WriteLine(); } Console.ReadLine(); }
static void GetLastRoundStats() { IFileReader fileReader = new FileReader(); var lines = fileReader.ReadNLinesFromFile(8, "../../../Data/w49data.txt"); IRoundParser roundParser = new RoundParser(); var(numbers, draws) = roundParser.GetNDraws(8, 0, lines, new List <int>()); var allPatterns = new List <string>(); IRoundAnalyser roundAnalyser = new RoundAnalyser(); var stats = roundAnalyser.GetStatsForRound(draws, numbers); var first7Draws = roundAnalyser.GetStatsForFirst7Draws(draws, numbers); allPatterns.Add(stats.Template); IPrinter printer = new Printer(false); printer.PrintRound(draws, numbers); printer.PrintRoundStats(stats); Console.WriteLine(); printer.PrintRoundStats(first7Draws); }