Esempio n. 1
0
 public FindWordsResponseMessage FindWords(FindWordsRequestMessage message)
 {
     return(new FindWordsResponseMessage()
     {
         SearchPattern = message.Pattern.ToLower(),
         Letters = message.Letters?.ToLower(),
         Words = wordFinder.FindWords(message.Pattern, message.Letters?.ToLower())
     });
 }
Esempio n. 2
0
        void ProcessCandidates()
        {
            var playerLetters = GetPlayerLettersString();

            foreach (var candidate in aiGridModel.Candidates)
            {
                currentCandidate = candidate;
                currentMainWords = wordFinder.FindWords(candidate.SearchPattern, playerLetters);
                ProcessMainWords();
            }
        }
Esempio n. 3
0
 void GivenMainWords(params string[] mainWords)
 {
     wordFinder.FindWords(Arg.Any <string>()).Returns(mainWords);
 }