Exemplo n.º 1
0
        void ProcessCandidates()
        {
            var playerLetters = GetPlayerLettersString();

            foreach (var candidate in aiGridModel.Candidates)
            {
                currentCandidate = candidate;
                currentMainWords = wordFinder.FindWords(candidate.SearchPattern, playerLetters);
                ProcessMainWords();
            }
        }
Exemplo n.º 2
0
        public IEnumerable <GoWord> FindWords(string theMainWord, AiCandidate theCandidate)
        {
            goWords = new List <GoWord>();
            if (string.IsNullOrEmpty(theMainWord))
            {
                return(goWords);
            }

            this.mainWord  = theMainWord;
            this.candidate = theCandidate;
            FindWords();

            return(goWords);
        }