mirror of
https://github.com/RussellChamp/tilde-projects.git
synced 2026-10-28 00:22:34 +00:00
Did some work on some things
This commit is contained in:
1 parent
6838f0ce5f
commit
746f1091bb
8 files changed
+91
-55
No files matched your search
+6
-2
@@ -2,6 +2,7 @@
|
||||
import random
|
||||
import inflect
|
||||
import quote_puzzle
|
||||
import dict_puzzle
|
||||
|
||||
p = inflect.engine()
|
||||
primes = [11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71]
|
||||
@@ -9,10 +10,10 @@ fuzz_amount = 3
|
||||
|
||||
def make_puzzle(obfuscate=True):
|
||||
answer = 0
|
||||
puzzle = random.choice(["Prove you're not a robot: ", "Are you a robot?: ", "Anti-bot check: ", "Counter-cndorphant measures: ", "Cosnok countermeasures: "])
|
||||
puzzle = random.choice(["Prove you're not a robot: ", "Are you a robot?: ", "Anti-bot check: ", "Counter-cndorphant measures: ", "Cosnok countermeasures: ", "Anti-tildethief precautions: "])
|
||||
puzzle += random.choice(["What is", "How many is", "What do you get from", "What do you get with", "What is the value of", "Can you answer", "Can you tell me"])
|
||||
puzzle += " "
|
||||
roll = random.randrange(0,12)
|
||||
roll = random.randrange(0,15)
|
||||
var1 = random.randrange(1,10)
|
||||
var2 = random.randrange(1,10)
|
||||
var3 = random.randrange(1,20)
|
||||
@@ -69,6 +70,9 @@ def make_puzzle(obfuscate=True):
|
||||
elif roll == 11:
|
||||
answer = str(max(var1, var2, var3, var4))
|
||||
puzzle = "What is the " + random.choice(["biggest", "largest"]) + " of " + p.number_to_words(var1) + ", " + p.number_to_words(var2) + ", " + p.number_to_words(var3) + ", and " + p.number_to_words(var4)
|
||||
elif roll <= 14: #12-14
|
||||
answer, puzzle = dict_puzzle.get_puzzle()
|
||||
obfuscate = False
|
||||
|
||||
puzzle += "?"
|
||||
if obfuscate == True:
|
||||
|
||||
Reference in new issue
Block a user