/// <summary> /// Sets up the initial state of the board. /// </summary> internal void SetUpApp() { SetParameters(); Logger.SetGlobals((int)Parameters["ladybirds"], (int)Parameters["greenflies"]); BuildWorld((int)Parameters["rows"], (int)Parameters["columns"], (int)Parameters["ladybirds"], (int)Parameters["greenflies"]); Console_Helper.Draw(Game_Manager.Instance.Grid); }
/// <summary> /// Game Mode initiates a version of the Game of Life where the grid is printed and the user controls the time steps. /// </summary> internal void RunGameMode() { SetUpApp(); while (Console.ReadKey().Key != ConsoleKey.X) { Update(); Console_Helper.Draw(Grid); Logger.Observe(); Logger.Frameshot(); } Logger.ReportStats(); Logger.SaveFrameshots(); }