public ScrambleWithoutFriendsGame()
 {
     _scrambleBoardGenerator = new VowelsInEachQuadrantBoardGenerator();
     _scrambleSolver = new ScrambleSolver();
     _scrambleBoard = new ScrambleBoard(Settings.DefaultSettings.Default.DefaultLength,
                                        Settings.DefaultSettings.Default.DefaultWidth,
                                        _scrambleBoardGenerator);
     _possibleWords = _scrambleSolver.Solve(_scrambleBoard);
 }
        public IList<string> Solve(ScrambleBoard scrambleBoard)
        {
            _scrambleBoard = scrambleBoard;
            _possibleWords = new List<string>();

            for (int x = 0; x < _scrambleBoard.Width; x++)
                for (int y = 0; y < _scrambleBoard.Length; y++)
                    BuildWordsStartingAt(x, y);
            return _possibleWords;
        }
        public void PopulateBoard(ScrambleBoard scrambleBoard)
        {
            var rand = new Random();

            for (int i = 0; i < scrambleBoard.Width; i++)
            {
                for (int j = 0; j < scrambleBoard.Length; j++)
                {
                    scrambleBoard[i, j] = (char)('a' + rand.Next(0, 26));
                }
            }
        }