Пример #1
0
        private void UpdateGameState()
        {
            var shape = _gameBoard.CurrentShape;

            _gameForm.UpdateGameBoard(_gameBoard);
            _gameForm.UpdateScore(_score);

            if (_gameBoard.CollideWithTop(shape) && !_gameBoard.CanMoveDown(shape) ||
                _gameBoard.CollideWithShapeParts(shape))
            {
                GameOver();
            }
        }