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(); }
public void Pause() { State = new PausedState(); Stats.Pause(); }