Exemple #1
0
        private void ConsoleDraw() // This method handls how the grid and the inforamtion will be dispalyed on the console.
        {
            string line = new string('-', world.Width);

            Console.WriteLine(" " + line);
            world.Draw();
            Console.WriteLine(" " + line);
            int[] count = world.GetTheCounts();
            Console.WriteLine("\nGreenFlies: " + count[0] + "|||" + "Ladybirds: " + count[1] + "|||" + "TimeStep: " + world.timeStep + "|||" + "Speed: " + SimulationSpeed + "|||" + "Mode: " + Mode);
            Console.WriteLine("To change settings press (s), To continue press Enter, To start a new world press (n), Otherwise press Escape (ESC) key to end the game.");
            Console.WriteLine();
            Console.WriteLine();
        }