Text_games_input_parser_library/Text_games_input_parser_library/input_parser.cs
/// <summary>
/// Returns a list of string, which is created by removing all the words lited in the filed: wordsToBeIgnored.
/// </summary>
Returns a list of string, which is created by removing all the words lited in the filed: wordsToBeIgnored.
Returns a list of string which is created by removing all the words lited in the filed : wordsToBeIgnored .
internal List<string> RemoveUnusefulWords(List<string> allWords)
        {
            List<string> onlyUsefulWords = allWords;
            foreach (string word in wordsToBeIgnored)
            {
                while (onlyUsefulWords.Contains(word))
                    onlyUsefulWords.Remove(word);
            }
            return onlyUsefulWords;
        }
internal List < string > RemoveUnusefulWords ( List < string > allWords ) { List < string > onlyUsefulWords = allWords ; foreach ( string word in wordsToBeIgnored ) { while ( onlyUsefulWords . Contains ( word ) ) onlyUsefulWords . Remove ( word ) ; } return onlyUsefulWords ; }
Returns a list of string, which is created by removing all the words lited in the filed: wordsToBeIgnored.
Returns a list of string which is created by removing all the words lited in the filed : wordsToBeIgnored .
allWords
List<string>