Пример #1
0
        public Controller(LifeCanvas board)
        {
            _board    = board;
            IsRunning = false;

            _timer = new System.Threading.Timer(o =>
            {
                _board.Update();
            }, null, System.Threading.Timeout.Infinite, System.Threading.Timeout.Infinite);
        }
Пример #2
0
 public void Step()
 {
     _board.ComputeAllNextStates();
     _board.Update();
 }