Nettoyage

This commit is contained in:
Antoine Van Elstraete 2022-01-24 20:21:54 +01:00
parent cb17864265
commit 758d6bb0bb

View File

@ -69,10 +69,6 @@ def resolv_len(liste, lenght):
return [mot for mot in liste if len(mot) == lenght] return [mot for mot in liste if len(mot) == lenght]
# First Try
#if ft:
# bestWords = noDouble(firstTryFilter(goodLen, ft))
# Pattern : élimination des mots ne satisfaisant pas la pattern # Pattern : élimination des mots ne satisfaisant pas la pattern
#if pattern: #if pattern:
# patternCount = len(pattern) - pattern.count(".") # patternCount = len(pattern) - pattern.count(".")
@ -188,9 +184,6 @@ if __name__ == "__main__":
# Bad Letters # Bad Letters
bl = args.badLetters bl = args.badLetters
# First Try
ft = args.firstTry
liste = load_dict(args.dictionary) liste = load_dict(args.dictionary)
liste = resolv_len(liste, args.nbLetters) liste = resolv_len(liste, args.nbLetters)
liste = resolv_fl(liste, args.firstLetter) liste = resolv_fl(liste, args.firstLetter)