示例#1
0
        private static void Main(string[] args)
        {
            int            runs = 0;
            LifeSimulation sim  = new LifeSimulation(Height, Width);

            while (runs++ < MaxRuns)
            {
                sim.DrawAndGrow();

                System.Threading.Thread.Sleep(500);
            }
        }
示例#2
0
        private static void Main(string[] args)
        {
            int            runs = 0;
            LifeSimulation sim  = new LifeSimulation(Heigth, Width);

            while (runs++ < MaxRuns)
            {
                sim.DrawAndGrow();

                // Give the user a chance to view the game in a more reasonable speed.
                System.Threading.Thread.Sleep(100);
            }
        }