This commit is contained in:
Auric Vente 2024-07-21 00:28:12 -06:00
parent 2121944ad2
commit b2210c0f76
2 changed files with 3 additions and 3 deletions

View File

@ -248,7 +248,8 @@ class Ants:
words.extend(Utils.random_word(2 - len(words)))
words = [
word if word.lower() != "of" else Utils.random_word()[0] for word in words
word if word.lower() != "of" else Utils.random_word()[0]
for word in words
]
words = [Utils.capitalize(word) for word in words]
@ -266,7 +267,6 @@ class Ants:
words_1 = split(ant_1)
words_2 = split(ant_2)
words_1 = fill(words_1)
words_2 = fill(words_2)

View File

@ -160,4 +160,4 @@ class Utils:
@staticmethod
def capitalize(word: str) -> str:
return word[0].upper() + word[1:]
return word[0].upper() + word[1:]