From d2dacc22208e16d524daf70d60229da493e2d000 Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Wed, 24 Jul 2024 03:35:13 -0600 Subject: [PATCH] Mods --- cromulant/game.py | 8 ++++---- cromulant/utils.py | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/cromulant/game.py b/cromulant/game.py index 43485e2..bb88415 100644 --- a/cromulant/game.py +++ b/cromulant/game.py @@ -301,19 +301,19 @@ class Game: method = Opts.think_2.method elif value == Opts.words_1.value: - status = Utils.rand_sentence.simple_sentence() + status = Utils.words_1() method = Opts.words_1.method elif value == Opts.words_2.value: - status = Utils.rand_sentence.bare_bone_sentence() + status = Utils.words_2() method = Opts.words_2.method elif value == Opts.words_3.value: - status = Utils.rand_sentence.bare_bone_with_adjective() + status = Utils.words_3() method = Opts.words_3.method elif value >= Opts.words_4.value: - status = Utils.rand_sentence.sentence() + status = Utils.words_4() method = Opts.words_4.method else: diff --git a/cromulant/utils.py b/cromulant/utils.py index a14faaa..e6166f6 100644 --- a/cromulant/utils.py +++ b/cromulant/utils.py @@ -168,3 +168,19 @@ class Utils: @staticmethod def capitalize(word: str) -> str: 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())