diff options
Diffstat (limited to 'bot/exts/fun/trivia_quiz.py')
-rw-r--r-- | bot/exts/fun/trivia_quiz.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bot/exts/fun/trivia_quiz.py b/bot/exts/fun/trivia_quiz.py index d7b49f7a..62574a16 100644 --- a/bot/exts/fun/trivia_quiz.py +++ b/bot/exts/fun/trivia_quiz.py @@ -104,6 +104,7 @@ def linear_system(q_format: str, a_format: str) -> QuizEntry: return QuizEntry(question, [answer], DYNAMICALLY_GEN_VARIATION_TOLERANCE) + def mod_arith(q_format: str, a_format: str) -> QuizEntry: """Generate a basic modular arithmetic question.""" quotient, m, b = random.randint(30, 40), random.randint(10, 20), random.randint(200, 350) @@ -115,6 +116,7 @@ def mod_arith(q_format: str, a_format: str) -> QuizEntry: return QuizEntry(question, [answer], DYNAMICALLY_GEN_VARIATION_TOLERANCE) + def ngonal_prism(q_format: str, a_format: str) -> QuizEntry: """Generate a question regarding vertices on n-gonal prisms.""" n = random.randint(0, len(N_PREFIXES) - 1) @@ -124,6 +126,7 @@ def ngonal_prism(q_format: str, a_format: str) -> QuizEntry: return QuizEntry(question, [answer], DYNAMICALLY_GEN_VARIATION_TOLERANCE) + def imag_sqrt(q_format: str, a_format: str) -> QuizEntry: """Generate a negative square root question.""" ans_coeff = random.randint(3, 10) @@ -133,6 +136,7 @@ def imag_sqrt(q_format: str, a_format: str) -> QuizEntry: return QuizEntry(question, [answer], DYNAMICALLY_GEN_VARIATION_TOLERANCE) + def binary_calc(q_format: str, a_format: str) -> QuizEntry: """Generate a binary calculation question.""" a = random.randint(15, 20) @@ -155,6 +159,7 @@ def binary_calc(q_format: str, a_format: str) -> QuizEntry: return QuizEntry(question, [answer], DYNAMICALLY_GEN_VARIATION_TOLERANCE) + def solar_system(q_format: str, a_format: str) -> QuizEntry: """Generate a question on the planets of the Solar System.""" planet = random.choice(PLANETS) @@ -164,6 +169,7 @@ def solar_system(q_format: str, a_format: str) -> QuizEntry: return QuizEntry(question, [answer], DYNAMICALLY_GEN_VARIATION_TOLERANCE) + def taxonomic_rank(q_format: str, a_format: str) -> QuizEntry: """Generate a question on taxonomic classification.""" level = random.randint(0, len(TAXONOMIC_HIERARCHY) - 2) |