void ProcessCandidates() { var playerLetters = GetPlayerLettersString(); foreach (var candidate in aiGridModel.Candidates) { currentCandidate = candidate; currentMainWords = wordFinder.FindWords(candidate.SearchPattern, playerLetters); ProcessMainWords(); } }
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); }