Esempio n. 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);
        }
Esempio n. 2
0
 public void Step()
 {
     _board.ComputeAllNextStates();
     _board.Update();
 }