private static void OutputEmptyStartegyList() { var strategy = GenerateSituationArray.GetSituationArray(); for (var i = 0; i < strategy.Length; i++) { Console.WriteLine($"{i}:{strategy[i]}"); } }
private static void OutputStrategyArray() { var rnd = new Random(); var startegy = GenerateStartegy.FillRandomActionToSituation(GenerateSituationArray.GetSituationArray(), rnd); foreach (var l in startegy.Lines) { Console.WriteLine($"{l.Key}:{l.Value}"); } }
private static Pacman[] Get200NewPacman() { var newPacmans = new Pacman[(int)GameRules.NumberOfOneGenerationPacman]; var rnd = new Random(); for (var i = 0; i < (int)GameRules.NumberOfOneGenerationPacman; i++) { var p = new Pacman { Strategy = GenerateStartegy.FillRandomActionToSituation(GenerateSituationArray.GetSituationArray(), rnd), Generation = 1, Points = new int[(int)GameRules.NumberOfOneGenerationChecker] }; newPacmans[i] = p; } return(newPacmans); }