예제 #1
0
        private Coordinate GetRandomCoordinate()
        {
            _gameBoard.LoadCoordinatesSeed();
            var coordinates = GetBaseCoordinates();
            var index       = _random.Next(coordinates.Count);
            var coordinate  = coordinates.ElementAt(index);

            return(coordinate);
        }
예제 #2
0
        private void ClearRandomValuesBasedOnDifficulty()
        {
            var removeAmount = RemoveBase + _difficultyLevel;

            _gameBoard.LoadCoordinatesSeed();

            for (var i = 0; i < removeAmount; i++)
            {
                _gameTagDistributor.RemoveRandomGameTagValue();
            }
        }