Пример #1
0
 public Board(IStatsRepository repository, int width, int height)
 {
     _repository = repository;
     Dimension   = new Size(width, height);
     Stats       = new Stats();
     State       = new PausedState();
     Matrix      = new Block[width, height];
     Record      = _repository.MaxScore();
 }
Пример #2
0
 public void Pause()
 {
     State = new PausedState();
     Stats.Pause();
 }