diff --git a/main.py b/main.py index 9d5bb22..297a081 100644 --- a/main.py +++ b/main.py @@ -1,72 +1,72 @@ -import flask -import string -import json - -BASE64 = string.digits + string.ascii_letters + "-_" - -app = flask.Flask(__name__) - -with open("questions.json", "r", encoding="utf-8") as file_pointer: - QUESTIONS = json.load(file_pointer) - -def encode_state(game_encoding): - characters = [game_encoding[i*6:i*6+6] for i in range(0,6)] - return ''.join( - [BASE64[sum([2**j for j in range(6) if not i[j]])] for i in characters] - ) - - -def decode_state(game_state): - bit_string = ''.join([format(BASE64.index(s), '06b')[::-1] for s in game_state]) - return [x != "1" for x in bit_string] - -@app.route('/') -def main_page(): - game_encoding = flask.request.args.get("game_state") - if game_encoding is None: - game_encoding = "000000" - game_state = decode_state(game_encoding) - return flask.render_template("main_board.html", categories=QUESTIONS["categories"], game_state=game_encoding, draw_cells=game_state) - -@app.route('/question') -def question(): - game_encoding = flask.request.args.get("game_state") - question = flask.request.args.get("question") - if game_encoding is None or question is None: - return flask.redirect("/") - - game_state = decode_state(game_encoding) - game_state[int(question)] = False - game_encoding = encode_state(game_state) - question_text = QUESTIONS["questions"][int(question)%6][int(question)//6][0] - - if question_text == "": - return flask.redirect("/?game_state="+game_encoding) - elif question_text == "$": - return flask.render_template("question picture.html", question=int(question), game_state=game_encoding) - - - return flask.render_template("question.html", question=int(question), question_text=question_text, game_state=game_encoding) - -@app.route('/answer') -def answer(): - game_encoding = flask.request.args.get("game_state") - question = flask.request.args.get("question") - if game_encoding is None or question is None: - return flask.redirect("/") - - answer_text = QUESTIONS["questions"][int(question)%6][int(question)//6][1] - - if answer_text == "": - return flask.redirect("/?game_state="+game_encoding) - elif answer_text == "$": - return flask.render_template("answer picture.html", question=int(question), game_state=game_encoding) - - return flask.render_template("answer.html", question=int(question), answer_text=answer_text, game_state=game_encoding) - -@app.route('/static/') -def flag_image(path): - return flask.send_from_directory("static", path) - -if __name__ == "__main__": +import flask +import string +import json + +BASE64 = string.digits + string.ascii_letters + "-_" + +app = flask.Flask(__name__) + +with open("questions.json", "r", encoding="utf-8") as file_pointer: + QUESTIONS = json.load(file_pointer) + +def encode_state(game_encoding): + characters = [game_encoding[i*6:i*6+6] for i in range(0,6)] + return ''.join( + [BASE64[sum([2**j for j in range(6) if not i[j]])] for i in characters] + ) + + +def decode_state(game_state): + bit_string = ''.join([format(BASE64.index(s), '06b')[::-1] for s in game_state]) + return [x != "1" for x in bit_string] + +@app.route('/') +def main_page(): + game_encoding = flask.request.args.get("game_state") + if game_encoding is None: + game_encoding = "000000" + game_state = decode_state(game_encoding) + return flask.render_template("main_board.html", categories=QUESTIONS["categories"], game_state=game_encoding, draw_cells=game_state) + +@app.route('/question') +def question(): + game_encoding = flask.request.args.get("game_state") + question = flask.request.args.get("question") + if game_encoding is None or question is None: + return flask.redirect("/") + + game_state = decode_state(game_encoding) + game_state[int(question)] = False + game_encoding = encode_state(game_state) + question_text = QUESTIONS["questions"][int(question)%6][int(question)//6][0] + + if question_text == "": + return flask.redirect("/?game_state="+game_encoding) + elif question_text == "$": + return flask.render_template("question picture.html", question=int(question), game_state=game_encoding) + + + return flask.render_template("question.html", question=int(question), question_text=question_text, game_state=game_encoding) + +@app.route('/answer') +def answer(): + game_encoding = flask.request.args.get("game_state") + question = flask.request.args.get("question") + if game_encoding is None or question is None: + return flask.redirect("/") + + answer_text = QUESTIONS["questions"][int(question)%6][int(question)//6][1] + + if answer_text == "": + return flask.redirect("/?game_state="+game_encoding) + elif answer_text == "$": + return flask.render_template("answer picture.html", question=int(question), game_state=game_encoding) + + return flask.render_template("answer.html", question=int(question), answer_text=answer_text, game_state=game_encoding) + +@app.route('/static/') +def flag_image(path): + return flask.send_from_directory("static", path) + +if __name__ == "__main__": app.run(host='0.0.0.0', port=8001) \ No newline at end of file diff --git a/questions.json b/questions.json index 45e1304..11faad3 100644 --- a/questions.json +++ b/questions.json @@ -1,60 +1,60 @@ -{ - "categories" : [ - "TRUE OR FALSE", - "", - "FLAGS", - "", - "THE SAW FRANCHISE", - "KINGDOM HEARTS DEEP CUTS PT. 2" - ], - "questions" : [ - [ - ["",""], - ["",""], - ["",""], - ["",""], - ["",""], - ["",""] - ], - [ - ["",""], - ["",""], - ["",""], - ["",""], - ["",""], - ["",""] - ], - [ - ["",""], - ["",""], - ["",""], - ["",""], - ["",""], - ["",""] - ], - [ - ["",""], - ["",""], - ["",""], - ["",""], - ["",""], - ["",""] - ], - [ - ["",""], - ["",""], - ["",""], - ["",""], - ["",""], - ["",""] - ], - [ - ["",""], - ["",""], - ["",""], - ["",""], - ["",""], - ["",""] - ] - ] +{ + "categories" : [ + "TRUE OR FALSE", + "", + "FLAGS", + "", + "THE SAW FRANCHISE", + "" + ], + "questions" : [ + [ + ["",""], + ["",""], + ["",""], + ["",""], + ["",""], + ["",""] + ], + [ + ["",""], + ["",""], + ["",""], + ["",""], + ["",""], + ["",""] + ], + [ + ["$","Danish flag"], + ["$","French flag"], + ["$","Vatican flag"], + ["$","Polyamory flag"], + ["$","Trains flag"], + ["He thinks your friends are \"annoying\"","Red flag"] + ], + [ + ["",""], + ["",""], + ["",""], + ["",""], + ["",""], + ["",""] + ], + [ + ["Please sing the main theme of the Saw franchise","*Hello Zepp*"], + ["How did FBI boss deduce that FBI guy couldn't have left his fingerprints at the crime scene where they found them?","The uric acid levels and the eccrine gland residue were inconsistent for an individual with an active epidermal metabolism. In other words, when he left the fingerprints, he was already dead."], + ["$","The backwards cap was to be incognito, since this flashback takes place after he has become a public figure. The flashback is even after several of the Saw movies, where he already looked like that."], + ["What are the final 3 words said in the most recent Saw movie?","\"Epic bad luck\""], + ["Name all 4 canonical Jigsaw apprentices, in order of when they were revealed (may use the nicknames I used in my presentation)","Amanda Young ♥, Mark Hoffman (Mr. Lips), Dr. Lawrence Gordon, and Logan Nelson (this guy)."], + ["In Saw VI, Jill changes the rules of a trap for Hoffman, making it nearly impossible to survive. Why?","She learned that Hoffman had blackmailed Amanda to shoot Lynn in Saw III, which ultimately lead to Jeff killing John."] + ], + [ + ["",""], + ["",""], + ["",""], + ["",""], + ["",""], + ["",""] + ] + ] } \ No newline at end of file diff --git a/questions_old.json b/questions_old.json index 0a4b0b7..870a39e 100644 --- a/questions_old.json +++ b/questions_old.json @@ -1,60 +1,60 @@ -{ - "categories" : [ - "TRUE OR FALSE", - "MEGAN THEE STALLION OR TAYLOR SWIFT", - "KINGDOM HEARTS DEEP CUTS", - "(BAD) RIDDLES", - "CELEBRITY FACEMASH", - "THE SIMS OR CRUSADER KINGS" - ], - "questions" : [ - [ - ["True or false: The G-spot was named after a dude named Gregory","False. His name was Ernst"], - ["True or false: Bananas grow upside down","False. They grow the way they grow. Humans eat them upside down"], - ["True or false: I just wrote the song of the summer","False. That was terrible"], - ["True or false: An adult gorilla can drink up to 50 liters of water in a single day","IDK, maybe? I didn't look it up"], - ["True or false: Australia is wider than the moon","False. The moon doesn't exist"], - ["True or false: This is a good game and we're having fun","True"] - ], - [ - ["Look, college girl, but a freak on the weekend / Eat that dick up even when I'm going vegan.", "Megan Thee Stallion / Hot Girl Summer"], - ["\"You call me up again just to break me like a promise / So casually cruel in the name of being honest\"", "Taylor Swift / All Too Well"], - ["\"Eat my coochie, let's make a movie, n****/ I'm talkin' ASMR, let me hear you chew it, n****\"", "Megan Thee Stallion / Movie"], - ["\"You held your pride like you should have held me\"", "Taylor Swift / The Story of Us"], - ["\"I'ma make him eat me out while I'm watchin' anime / Pussy like a wild fox, lookin' for a Sasuke\"", "Megan Thee Stallion / Girls in the Hood"], - ["\"He was a sk8r boi / She said 'see you later, boi'\"", "Avril Lavigne"] - ], - [ - ["What is the name of the world Sora, Riku and Kairi are from?","Destiny Islands"], - ["What is the name of the legendary Keyblade sought by Xehanort?", "The χ-blade"], - ["Why was King Mickey shirtless at the end of Kingdom Hearts?","A swarm of Heartless ripped his shirt off immediately before he shows up"], - ["What is the name of the χ symbol present in the names of Organisation XIII?","The Recusant's Sigil"], - ["How many Xehanorts are in the Real Organisation XIII?","Like, 4.5-ish?"], - ["What's the worst name of a Kingdom Hearts game?","Kingdom Hearts 0.2: Birth by Sleep - A Fragmentary Passage"] - ], - [ - ["What do you break before you use it?","Glowstick"], - ["What has an eye but cannot see?","A blind cyclops"], - ["A cowboy rode into town on the 14th. He stayed for 18 days and rode out on the 14th. How is that possible?","It was in Russia, 14/01/1918-14/02/1918"], - ["What can be clear, green or blue, has a mouth but cannot speak, and can run but has no feet?","Ghosts"], - ["A father and his son get in a car accident. The father dies instantly, but the son is rushed to the hospital. The doctor looks at the son and says \"I can't operate on this man, he's my son\". How's that possible?","Time travel"], - ["Prove the validity of the following statement:\n∀x(P(x) ↔ x = b) ⊢ P(b) ∧ ∀x∀y(P(x)∧P(y) → x=y)","$"] - ], - [ - ["$","Margot Robbie and Ariana Grande"], - ["$","Tom Hiddleston and Jim Parsons"], - ["$","Keira Knightley and Cara Delevigne"], - ["$","Robert Pattinson and Dwayne Johnson"], - ["$","Taylor Swift and Anna Kendrick"], - ["$","Tom Hanks and Daniel Craig"] - ], - [ - ["\"My game glitched and now my in game daughter has a beard 😭\"","$"], - ["\"Is there a mod that would let me seduce my daughter?\"","$"], - ["\"My husband got pregnant and just gave birth\"","$"], - ["\"can i lock infants in prisons?\"","$"], - ["\"Why is my son ugly when both my wife and I are beautiful?\"","$"], - ["\"Is there a way to kill toddlers and children?\"","$"] - ] - ] +{ + "categories" : [ + "TRUE OR FALSE", + "MEGAN THEE STALLION OR TAYLOR SWIFT", + "KINGDOM HEARTS DEEP CUTS", + "(BAD) RIDDLES", + "CELEBRITY FACEMASH", + "THE SIMS OR CRUSADER KINGS" + ], + "questions" : [ + [ + ["True or false: The G-spot was named after a dude named Gregory","False. His name was Ernst"], + ["True or false: Bananas grow upside down","False. They grow the way they grow. Humans eat them upside down"], + ["True or false: I just wrote the song of the summer","False. That was terrible"], + ["True or false: An adult gorilla can drink up to 50 liters of water in a single day","IDK, maybe? I didn't look it up"], + ["True or false: Australia is wider than the moon","False. The moon doesn't exist"], + ["True or false: This is a good game and we're having fun","True"] + ], + [ + ["Look, college girl, but a freak on the weekend / Eat that dick up even when I'm going vegan.", "Megan Thee Stallion / Hot Girl Summer"], + ["\"You call me up again just to break me like a promise / So casually cruel in the name of being honest\"", "Taylor Swift / All Too Well"], + ["\"Eat my coochie, let's make a movie, n****/ I'm talkin' ASMR, let me hear you chew it, n****\"", "Megan Thee Stallion / Movie"], + ["\"You held your pride like you should have held me\"", "Taylor Swift / The Story of Us"], + ["\"I'ma make him eat me out while I'm watchin' anime / Pussy like a wild fox, lookin' for a Sasuke\"", "Megan Thee Stallion / Girls in the Hood"], + ["\"He was a sk8r boi / She said 'see you later, boi'\"", "Avril Lavigne"] + ], + [ + ["What is the name of the world Sora, Riku and Kairi are from?","Destiny Islands"], + ["What is the name of the legendary Keyblade sought by Xehanort?", "The χ-blade"], + ["Why was King Mickey shirtless at the end of Kingdom Hearts?","A swarm of Heartless ripped his shirt off immediately before he shows up"], + ["What is the name of the χ symbol present in the names of Organisation XIII?","The Recusant's Sigil"], + ["How many Xehanorts are in the Real Organisation XIII?","Like, 4.5-ish?"], + ["What's the worst name of a Kingdom Hearts game?","Kingdom Hearts 0.2: Birth by Sleep - A Fragmentary Passage"] + ], + [ + ["What do you break before you use it?","Glowstick"], + ["What has an eye but cannot see?","A blind cyclops"], + ["A cowboy rode into town on the 14th. He stayed for 18 days and rode out on the 14th. How is that possible?","It was in Russia, 14/01/1918-14/02/1918"], + ["What can be clear, green or blue, has a mouth but cannot speak, and can run but has no feet?","Ghosts"], + ["A father and his son get in a car accident. The father dies instantly, but the son is rushed to the hospital. The doctor looks at the son and says \"I can't operate on this man, he's my son\". How's that possible?","Time travel"], + ["Prove the validity of the following statement:\n∀x(P(x) ↔ x = b) ⊢ P(b) ∧ ∀x∀y(P(x)∧P(y) → x=y)","$"] + ], + [ + ["$","Margot Robbie and Ariana Grande"], + ["$","Tom Hiddleston and Jim Parsons"], + ["$","Keira Knightley and Cara Delevigne"], + ["$","Robert Pattinson and Dwayne Johnson"], + ["$","Taylor Swift and Anna Kendrick"], + ["$","Tom Hanks and Daniel Craig"] + ], + [ + ["\"My game glitched and now my in game daughter has a beard 😭\"","$"], + ["\"Is there a mod that would let me seduce my daughter?\"","$"], + ["\"My husband got pregnant and just gave birth\"","$"], + ["\"can i lock infants in prisons?\"","$"], + ["\"Why is my son ugly when both my wife and I are beautiful?\"","$"], + ["\"Is there a way to kill toddlers and children?\"","$"] + ] + ] } \ No newline at end of file diff --git a/static/images/14.png b/static/images/14.png new file mode 100644 index 0000000..8994c3d Binary files /dev/null and b/static/images/14.png differ diff --git a/static/images/16.png b/static/images/16.png index b92cc11..df0e6cb 100644 Binary files a/static/images/16.png and b/static/images/16.png differ diff --git a/static/images/2.png b/static/images/2.png new file mode 100644 index 0000000..97fd112 Binary files /dev/null and b/static/images/2.png differ diff --git a/static/images/20.png b/static/images/20.png new file mode 100644 index 0000000..eb58735 Binary files /dev/null and b/static/images/20.png differ diff --git a/static/images/26.png b/static/images/26.png new file mode 100644 index 0000000..53efa98 Binary files /dev/null and b/static/images/26.png differ diff --git a/static/images/8.png b/static/images/8.png new file mode 100644 index 0000000..a0138fc Binary files /dev/null and b/static/images/8.png differ diff --git a/static/images/10.png b/static/images_old/10.png similarity index 100% rename from static/images/10.png rename to static/images_old/10.png diff --git a/static/images/11.png b/static/images_old/11.png similarity index 100% rename from static/images/11.png rename to static/images_old/11.png diff --git a/static/images_old/16.png b/static/images_old/16.png new file mode 100644 index 0000000..b92cc11 Binary files /dev/null and b/static/images_old/16.png differ diff --git a/static/images/17.png b/static/images_old/17.png similarity index 100% rename from static/images/17.png rename to static/images_old/17.png diff --git a/static/images/22.png b/static/images_old/22.png similarity index 100% rename from static/images/22.png rename to static/images_old/22.png diff --git a/static/images/23.png b/static/images_old/23.png similarity index 100% rename from static/images/23.png rename to static/images_old/23.png diff --git a/static/images/28.png b/static/images_old/28.png similarity index 100% rename from static/images/28.png rename to static/images_old/28.png diff --git a/static/images/29.png b/static/images_old/29.png similarity index 100% rename from static/images/29.png rename to static/images_old/29.png diff --git a/static/images/33.png b/static/images_old/33.png similarity index 100% rename from static/images/33.png rename to static/images_old/33.png diff --git a/static/images/34.png b/static/images_old/34.png similarity index 100% rename from static/images/34.png rename to static/images_old/34.png diff --git a/static/images/35.png b/static/images_old/35.png similarity index 100% rename from static/images/35.png rename to static/images_old/35.png diff --git a/static/images/4.png b/static/images_old/4.png similarity index 100% rename from static/images/4.png rename to static/images_old/4.png diff --git a/static/images/5.png b/static/images_old/5.png similarity index 100% rename from static/images/5.png rename to static/images_old/5.png diff --git a/static/style.css b/static/style.css index 00cc5b4..83f590a 100644 --- a/static/style.css +++ b/static/style.css @@ -1,80 +1,84 @@ -@font-face { - font-family: "Swiss 921"; - src: url(/static/swiss\ 921.ttf) format("truetype"); -} - -@font-face { - font-family: "Korinna"; - src: url(/static/korinna.otf) format("truetype"); -} - -body { - background-color: #2903c3; - display: flex; - justify-content: center; - align-items: center; - height: 95%; -} - -table { - margin-top: 2%; - margin-bottom: auto; - margin-left: auto; - margin-right: auto; - height: auto; - border: 18px solid black; - border-collapse: collapse; - font-family: "Swiss 921"; -} - -td { - border: 10px solid black; - border-collapse: collapse; - width: 250px; - height: 135px; - text-align: center; - text-shadow: 6px 6px 0px black; -} - -td a { - color: rgb(255, 204, 0); - text-decoration: none; - font-size: 70px; -} - -.money { - position: absolute; - top: 10px; - left: 10px; - color: rgb(255, 204, 0); - text-decoration: none; - font-size: 70px; - font-family: "Swiss 921"; - text-shadow: 6px 6px 0px black; -} - -th { - border: 15px solid black; - border-collapse: collapse; - width: 250px; - height: 150px; - color: white; - font-size: 25px; - padding: 10px; - text-shadow: 3px 3px 1px black; -} - -.question { - color: white; - font-family: "Korinna"; - text-align: center; - font-size: 100; - bottom: auto; - height: 100%; - width: 80%; - display: flex; - justify-content: center; - align-items: center; - text-decoration: none; - text-shadow: 5px 5px 1px black; -} +@font-face { + font-family: "Swiss 921"; + src: url(/static/swiss\ 921.ttf) format("truetype"); +} + +@font-face { + font-family: "Korinna"; + src: url(/static/korinna.otf) format("truetype"); +} + +body { + background-color: #2903c3; + display: flex; + justify-content: center; + align-items: center; + height: 95%; +} + +table { + margin-top: 2%; + margin-bottom: auto; + margin-left: auto; + margin-right: auto; + height: auto; + border: 18px solid black; + border-collapse: collapse; + font-family: "Swiss 921"; +} + +td { + border: 10px solid black; + border-collapse: collapse; + width: 250px; + height: 135px; + text-align: center; + text-shadow: 6px 6px 0px black; +} + +td a { + color: rgb(255, 204, 0); + text-decoration: none; + font-size: 70px; +} + +.money { + position: absolute; + top: 10px; + left: 10px; + color: rgb(255, 204, 0); + text-decoration: none; + font-size: 70px; + font-family: "Swiss 921"; + text-shadow: 6px 6px 0px black; +} + +th { + border: 15px solid black; + border-collapse: collapse; + width: 250px; + height: 150px; + color: white; + font-size: 25px; + padding: 10px; + text-shadow: 3px 3px 1px black; +} + +.question { + color: white; + font-family: "Korinna"; + text-align: center; + font-size: 100; + bottom: auto; + height: 100%; + width: 80%; + display: flex; + justify-content: center; + align-items: center; + text-decoration: none; + text-shadow: 5px 5px 1px black; +} + +.question img { + height: 70%; +} diff --git a/templates/answer picture.html b/templates/answer picture.html index 26c11ea..7f5f710 100644 --- a/templates/answer picture.html +++ b/templates/answer picture.html @@ -1,14 +1,14 @@ - - - Jeopardy - - - - - - -
- ${{ (question//6+1) ** 4 + 2*((question//6+1) ** 3) + 7*((question//6+1)**2) + (question//6+1) * 33 + (((question%6)+2)%3)**2 + (question%6) * 87 - ((question%6)+3)**2 - ((question%6)+2)**3 + (question//6+1)*(((question%6) + 2)%3) + 24 }} -
- + + + Jeopardy + + + + + + +
+ ${{ (question//6+1) ** 4 + 2*((question//6+1) ** 3) + 7*((question//6+1)**2) + (question//6+1) * 33 + (((question%6)+2)%3)**2 + (question%6) * 87 - ((question%6)+3)**2 - ((question%6)+2)**3 + (question//6+1)*(((question%6) + 2)%3) + 24 }} +
+ \ No newline at end of file diff --git a/templates/answer.html b/templates/answer.html index e32e933..8da91ba 100644 --- a/templates/answer.html +++ b/templates/answer.html @@ -1,14 +1,14 @@ - - - Jeopardy - - - - - {{answer_text}} - -
- ${{ (question//6+1) ** 4 + 2*((question//6+1) ** 3) + 7*((question//6+1)**2) + (question//6+1) * 33 + (((question%6)+2)%3)**2 + (question%6) * 87 - ((question%6)+3)**2 - ((question%6)+2)**3 + (question//6+1)*(((question%6) + 2)%3) + 24 }} -
- + + + Jeopardy + + + + + {{answer_text}} + +
+ ${{ (question//6+1) ** 4 + 2*((question//6+1) ** 3) + 7*((question//6+1)**2) + (question//6+1) * 33 + (((question%6)+2)%3)**2 + (question%6) * 87 - ((question%6)+3)**2 - ((question%6)+2)**3 + (question//6+1)*(((question%6) + 2)%3) + 24 }} +
+ \ No newline at end of file diff --git a/templates/main_board.html b/templates/main_board.html index fc60ff1..5165005 100644 --- a/templates/main_board.html +++ b/templates/main_board.html @@ -1,26 +1,26 @@ - - - Jeopardy - - - - - - {% for cat in categories: %} - - {% endfor %} - - {% for i in range(1,7) %} - - {% for j in range(0,6): %} - - {% endfor %} - - {% endfor %} -
{{ cat }}
- {% if draw_cells[(i-1)*6+j] %} - ${{ i ** 4 + 2*(i ** 3) + 7*(i**2) + i * 33 + ((j+2)%3)**2 + j * 87 - (j+3)**2 - (j+2)**3 + i*((j + 2)%3) + 24 }} - {% endif %} -
- + + + Jeopardy + + + + + + {% for cat in categories: %} + + {% endfor %} + + {% for i in range(1,7) %} + + {% for j in range(0,6): %} + + {% endfor %} + + {% endfor %} +
{{ cat }}
+ {% if draw_cells[(i-1)*6+j] %} + ${{ i ** 4 + 2*(i ** 3) + 7*(i**2) + i * 33 + ((j+2)%3)**2 + j * 87 - (j+3)**2 - (j+2)**3 + i*((j + 2)%3) + 24 }} + {% endif %} +
+ \ No newline at end of file diff --git a/templates/question picture.html b/templates/question picture.html index 66d55f2..a48c678 100644 --- a/templates/question picture.html +++ b/templates/question picture.html @@ -1,14 +1,14 @@ - - - Jeopardy - - - - - - -
- ${{ (question//6+1) ** 4 + 2*((question//6+1) ** 3) + 7*((question//6+1)**2) + (question//6+1) * 33 + (((question%6)+2)%3)**2 + (question%6) * 87 - ((question%6)+3)**2 - ((question%6)+2)**3 + (question//6+1)*(((question%6) + 2)%3) + 24 }} -
- + + + Jeopardy + + + + + + +
+ ${{ (question//6+1) ** 4 + 2*((question//6+1) ** 3) + 7*((question//6+1)**2) + (question//6+1) * 33 + (((question%6)+2)%3)**2 + (question%6) * 87 - ((question%6)+3)**2 - ((question%6)+2)**3 + (question//6+1)*(((question%6) + 2)%3) + 24 }} +
+ \ No newline at end of file diff --git a/templates/question.html b/templates/question.html index 9580b1d..9302612 100644 --- a/templates/question.html +++ b/templates/question.html @@ -1,14 +1,14 @@ - - - Jeopardy - - - - - {{question_text}} - -
- ${{ (question//6+1) ** 4 + 2*((question//6+1) ** 3) + 7*((question//6+1)**2) + (question//6+1) * 33 + (((question%6)+2)%3)**2 + (question%6) * 87 - ((question%6)+3)**2 - ((question%6)+2)**3 + (question//6+1)*(((question%6) + 2)%3) + 24 }} -
- + + + Jeopardy + + + + + {{question_text}} + +
+ ${{ (question//6+1) ** 4 + 2*((question//6+1) ** 3) + 7*((question//6+1)**2) + (question//6+1) * 33 + (((question%6)+2)%3)**2 + (question%6) * 87 - ((question%6)+3)**2 - ((question%6)+2)**3 + (question//6+1)*(((question%6) + 2)%3) + 24 }} +
+ \ No newline at end of file