Mods
This commit is contained in:
parent
2121944ad2
commit
b2210c0f76
|
@ -248,7 +248,8 @@ class Ants:
|
||||||
words.extend(Utils.random_word(2 - len(words)))
|
words.extend(Utils.random_word(2 - len(words)))
|
||||||
|
|
||||||
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]
|
words = [Utils.capitalize(word) for word in words]
|
||||||
|
@ -266,7 +267,6 @@ class Ants:
|
||||||
|
|
||||||
words_1 = split(ant_1)
|
words_1 = split(ant_1)
|
||||||
words_2 = split(ant_2)
|
words_2 = split(ant_2)
|
||||||
|
|
||||||
words_1 = fill(words_1)
|
words_1 = fill(words_1)
|
||||||
words_2 = fill(words_2)
|
words_2 = fill(words_2)
|
||||||
|
|
||||||
|
|
|
@ -160,4 +160,4 @@ class Utils:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def capitalize(word: str) -> str:
|
def capitalize(word: str) -> str:
|
||||||
return word[0].upper() + word[1:]
|
return word[0].upper() + word[1:]
|
||||||
|
|
Loading…
Reference in New Issue