Esempio n. 1
0
        private void Guess()
        {
            if (!string.IsNullOrWhiteSpace(CurrentWord))
            {
                var candidates = WordPool.Where(word => word.StartsWith(CurrentWord.Trim().ToLower()));

                CanGuess = candidates.Any();

                BestGuess = CanGuess ? candidates.First() : string.Empty;
            }
        }