This commit is contained in:
Auric Vente 2024-07-24 03:35:13 -06:00
parent bf58316caf
commit d2dacc2220
2 changed files with 20 additions and 4 deletions

View File

@ -301,19 +301,19 @@ class Game:
method = Opts.think_2.method method = Opts.think_2.method
elif value == Opts.words_1.value: elif value == Opts.words_1.value:
status = Utils.rand_sentence.simple_sentence() status = Utils.words_1()
method = Opts.words_1.method method = Opts.words_1.method
elif value == Opts.words_2.value: elif value == Opts.words_2.value:
status = Utils.rand_sentence.bare_bone_sentence() status = Utils.words_2()
method = Opts.words_2.method method = Opts.words_2.method
elif value == Opts.words_3.value: elif value == Opts.words_3.value:
status = Utils.rand_sentence.bare_bone_with_adjective() status = Utils.words_3()
method = Opts.words_3.method method = Opts.words_3.method
elif value >= Opts.words_4.value: elif value >= Opts.words_4.value:
status = Utils.rand_sentence.sentence() status = Utils.words_4()
method = Opts.words_4.method method = Opts.words_4.method
else: else:

View File

@ -168,3 +168,19 @@ 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:]
@staticmethod
def words_1() -> str:
return str(Utils.rand_sentence.simple_sentence())
@staticmethod
def words_2() -> str:
return str(Utils.rand_sentence.bare_bone_sentence())
@staticmethod
def words_3() -> str:
return str(Utils.rand_sentence.bare_bone_with_adjective())
@staticmethod
def words_4() -> str:
return str(Utils.rand_sentence.sentence())