예제 #1
0
파일: Game.cs 프로젝트: bo712/GameOfLife
        public void StartGame()
        {
            CurrentGeneration.FillField();

            while (true)
            {
                CurrentGeneration.PrintField();
                if (CheckPopulationForZero())
                {
                    break;
                }
                CurrentGeneration.BornNextGeneration(NextGeneration);
                TryToFixStalemate();
                ShiftGenerations();
                Thread.Sleep(100);
            }
        }