This commit is contained in:
2024-08-13 14:38:31 +02:00
parent 8a1bfc76ea
commit e734d55a4d
28 changed files with 350 additions and 346 deletions

142
main.py
View File

@@ -1,72 +1,72 @@
import flask import flask
import string import string
import json import json
BASE64 = string.digits + string.ascii_letters + "-_" BASE64 = string.digits + string.ascii_letters + "-_"
app = flask.Flask(__name__) app = flask.Flask(__name__)
with open("questions.json", "r", encoding="utf-8") as file_pointer: with open("questions.json", "r", encoding="utf-8") as file_pointer:
QUESTIONS = json.load(file_pointer) QUESTIONS = json.load(file_pointer)
def encode_state(game_encoding): def encode_state(game_encoding):
characters = [game_encoding[i*6:i*6+6] for i in range(0,6)] characters = [game_encoding[i*6:i*6+6] for i in range(0,6)]
return ''.join( return ''.join(
[BASE64[sum([2**j for j in range(6) if not i[j]])] for i in characters] [BASE64[sum([2**j for j in range(6) if not i[j]])] for i in characters]
) )
def decode_state(game_state): def decode_state(game_state):
bit_string = ''.join([format(BASE64.index(s), '06b')[::-1] for s in game_state]) bit_string = ''.join([format(BASE64.index(s), '06b')[::-1] for s in game_state])
return [x != "1" for x in bit_string] return [x != "1" for x in bit_string]
@app.route('/') @app.route('/')
def main_page(): def main_page():
game_encoding = flask.request.args.get("game_state") game_encoding = flask.request.args.get("game_state")
if game_encoding is None: if game_encoding is None:
game_encoding = "000000" game_encoding = "000000"
game_state = decode_state(game_encoding) game_state = decode_state(game_encoding)
return flask.render_template("main_board.html", categories=QUESTIONS["categories"], game_state=game_encoding, draw_cells=game_state) return flask.render_template("main_board.html", categories=QUESTIONS["categories"], game_state=game_encoding, draw_cells=game_state)
@app.route('/question') @app.route('/question')
def question(): def question():
game_encoding = flask.request.args.get("game_state") game_encoding = flask.request.args.get("game_state")
question = flask.request.args.get("question") question = flask.request.args.get("question")
if game_encoding is None or question is None: if game_encoding is None or question is None:
return flask.redirect("/") return flask.redirect("/")
game_state = decode_state(game_encoding) game_state = decode_state(game_encoding)
game_state[int(question)] = False game_state[int(question)] = False
game_encoding = encode_state(game_state) game_encoding = encode_state(game_state)
question_text = QUESTIONS["questions"][int(question)%6][int(question)//6][0] question_text = QUESTIONS["questions"][int(question)%6][int(question)//6][0]
if question_text == "": if question_text == "":
return flask.redirect("/?game_state="+game_encoding) return flask.redirect("/?game_state="+game_encoding)
elif question_text == "$": elif question_text == "$":
return flask.render_template("question picture.html", question=int(question), game_state=game_encoding) 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) return flask.render_template("question.html", question=int(question), question_text=question_text, game_state=game_encoding)
@app.route('/answer') @app.route('/answer')
def answer(): def answer():
game_encoding = flask.request.args.get("game_state") game_encoding = flask.request.args.get("game_state")
question = flask.request.args.get("question") question = flask.request.args.get("question")
if game_encoding is None or question is None: if game_encoding is None or question is None:
return flask.redirect("/") return flask.redirect("/")
answer_text = QUESTIONS["questions"][int(question)%6][int(question)//6][1] answer_text = QUESTIONS["questions"][int(question)%6][int(question)//6][1]
if answer_text == "": if answer_text == "":
return flask.redirect("/?game_state="+game_encoding) return flask.redirect("/?game_state="+game_encoding)
elif answer_text == "$": elif answer_text == "$":
return flask.render_template("answer picture.html", question=int(question), game_state=game_encoding) 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) return flask.render_template("answer.html", question=int(question), answer_text=answer_text, game_state=game_encoding)
@app.route('/static/<path:path>') @app.route('/static/<path:path>')
def flag_image(path): def flag_image(path):
return flask.send_from_directory("static", path) return flask.send_from_directory("static", path)
if __name__ == "__main__": if __name__ == "__main__":
app.run(host='0.0.0.0', port=8001) app.run(host='0.0.0.0', port=8001)

View File

@@ -1,60 +1,60 @@
{ {
"categories" : [ "categories" : [
"TRUE OR FALSE", "TRUE OR FALSE",
"", "",
"FLAGS", "FLAGS",
"", "",
"THE SAW FRANCHISE", "THE SAW FRANCHISE",
"KINGDOM HEARTS DEEP CUTS PT. 2" ""
], ],
"questions" : [ "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."]
], ],
[ [
["",""], ["",""],
["",""], ["",""],
["",""], ["",""],
["",""], ["",""],
["",""], ["",""],
["",""] ["",""]
] ]
] ]
} }

View File

@@ -1,60 +1,60 @@
{ {
"categories" : [ "categories" : [
"TRUE OR FALSE", "TRUE OR FALSE",
"MEGAN THEE STALLION OR TAYLOR SWIFT", "MEGAN THEE STALLION OR TAYLOR SWIFT",
"KINGDOM HEARTS DEEP CUTS", "KINGDOM HEARTS DEEP CUTS",
"(BAD) RIDDLES", "(BAD) RIDDLES",
"CELEBRITY FACEMASH", "CELEBRITY FACEMASH",
"THE SIMS OR CRUSADER KINGS" "THE SIMS OR CRUSADER KINGS"
], ],
"questions" : [ "questions" : [
[ [
["True or false: The G-spot was named after a dude named Gregory","False. His name was Ernst"], ["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: 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: 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: 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: 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"] ["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"], ["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"], ["\"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"], ["\"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"], ["\"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"], ["\"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"] ["\"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 world Sora, Riku and Kairi are from?","Destiny Islands"],
["What is the name of the legendary Keyblade sought by Xehanort?", "The χ-blade"], ["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"], ["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"], ["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?"], ["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'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 do you break before you use it?","Glowstick"],
["What has an eye but cannot see?","A blind cyclops"], ["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"], ["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"], ["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"], ["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)","$"] ["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"], ["$","Margot Robbie and Ariana Grande"],
["$","Tom Hiddleston and Jim Parsons"], ["$","Tom Hiddleston and Jim Parsons"],
["$","Keira Knightley and Cara Delevigne"], ["$","Keira Knightley and Cara Delevigne"],
["$","Robert Pattinson and Dwayne Johnson"], ["$","Robert Pattinson and Dwayne Johnson"],
["$","Taylor Swift and Anna Kendrick"], ["$","Taylor Swift and Anna Kendrick"],
["$","Tom Hanks and Daniel Craig"] ["$","Tom Hanks and Daniel Craig"]
], ],
[ [
["\"My game glitched and now my in game daughter has a beard 😭\"","$"], ["\"My game glitched and now my in game daughter has a beard 😭\"","$"],
["\"Is there a mod that would let me seduce my daughter?\"","$"], ["\"Is there a mod that would let me seduce my daughter?\"","$"],
["\"My husband got pregnant and just gave birth\"","$"], ["\"My husband got pregnant and just gave birth\"","$"],
["\"can i lock infants in prisons?\"","$"], ["\"can i lock infants in prisons?\"","$"],
["\"Why is my son ugly when both my wife and I are beautiful?\"","$"], ["\"Why is my son ugly when both my wife and I are beautiful?\"","$"],
["\"Is there a way to kill toddlers and children?\"","$"] ["\"Is there a way to kill toddlers and children?\"","$"]
] ]
] ]
} }

BIN
static/images/14.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 545 KiB

After

Width:  |  Height:  |  Size: 267 KiB

BIN
static/images/2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
static/images/20.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
static/images/26.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 KiB

BIN
static/images/8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

View File

Before

Width:  |  Height:  |  Size: 463 KiB

After

Width:  |  Height:  |  Size: 463 KiB

View File

Before

Width:  |  Height:  |  Size: 285 KiB

After

Width:  |  Height:  |  Size: 285 KiB

BIN
static/images_old/16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 545 KiB

View File

Before

Width:  |  Height:  |  Size: 581 KiB

After

Width:  |  Height:  |  Size: 581 KiB

View File

Before

Width:  |  Height:  |  Size: 713 KiB

After

Width:  |  Height:  |  Size: 713 KiB

View File

Before

Width:  |  Height:  |  Size: 284 KiB

After

Width:  |  Height:  |  Size: 284 KiB

View File

Before

Width:  |  Height:  |  Size: 699 KiB

After

Width:  |  Height:  |  Size: 699 KiB

View File

Before

Width:  |  Height:  |  Size: 302 KiB

After

Width:  |  Height:  |  Size: 302 KiB

View File

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

View File

Before

Width:  |  Height:  |  Size: 533 KiB

After

Width:  |  Height:  |  Size: 533 KiB

View File

Before

Width:  |  Height:  |  Size: 241 KiB

After

Width:  |  Height:  |  Size: 241 KiB

View File

Before

Width:  |  Height:  |  Size: 558 KiB

After

Width:  |  Height:  |  Size: 558 KiB

View File

Before

Width:  |  Height:  |  Size: 672 KiB

After

Width:  |  Height:  |  Size: 672 KiB

View File

@@ -1,80 +1,84 @@
@font-face { @font-face {
font-family: "Swiss 921"; font-family: "Swiss 921";
src: url(/static/swiss\ 921.ttf) format("truetype"); src: url(/static/swiss\ 921.ttf) format("truetype");
} }
@font-face { @font-face {
font-family: "Korinna"; font-family: "Korinna";
src: url(/static/korinna.otf) format("truetype"); src: url(/static/korinna.otf) format("truetype");
} }
body { body {
background-color: #2903c3; background-color: #2903c3;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 95%; height: 95%;
} }
table { table {
margin-top: 2%; margin-top: 2%;
margin-bottom: auto; margin-bottom: auto;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
height: auto; height: auto;
border: 18px solid black; border: 18px solid black;
border-collapse: collapse; border-collapse: collapse;
font-family: "Swiss 921"; font-family: "Swiss 921";
} }
td { td {
border: 10px solid black; border: 10px solid black;
border-collapse: collapse; border-collapse: collapse;
width: 250px; width: 250px;
height: 135px; height: 135px;
text-align: center; text-align: center;
text-shadow: 6px 6px 0px black; text-shadow: 6px 6px 0px black;
} }
td a { td a {
color: rgb(255, 204, 0); color: rgb(255, 204, 0);
text-decoration: none; text-decoration: none;
font-size: 70px; font-size: 70px;
} }
.money { .money {
position: absolute; position: absolute;
top: 10px; top: 10px;
left: 10px; left: 10px;
color: rgb(255, 204, 0); color: rgb(255, 204, 0);
text-decoration: none; text-decoration: none;
font-size: 70px; font-size: 70px;
font-family: "Swiss 921"; font-family: "Swiss 921";
text-shadow: 6px 6px 0px black; text-shadow: 6px 6px 0px black;
} }
th { th {
border: 15px solid black; border: 15px solid black;
border-collapse: collapse; border-collapse: collapse;
width: 250px; width: 250px;
height: 150px; height: 150px;
color: white; color: white;
font-size: 25px; font-size: 25px;
padding: 10px; padding: 10px;
text-shadow: 3px 3px 1px black; text-shadow: 3px 3px 1px black;
} }
.question { .question {
color: white; color: white;
font-family: "Korinna"; font-family: "Korinna";
text-align: center; text-align: center;
font-size: 100; font-size: 100;
bottom: auto; bottom: auto;
height: 100%; height: 100%;
width: 80%; width: 80%;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
text-decoration: none; text-decoration: none;
text-shadow: 5px 5px 1px black; text-shadow: 5px 5px 1px black;
} }
.question img {
height: 70%;
}

View File

@@ -1,14 +1,14 @@
<html> <html>
<head> <head>
<title>Jeopardy</title> <title>Jeopardy</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head> </head>
<body> <body>
<a class="question" href="/?game_state={{ game_state }}"> <a class="question" href="/?game_state={{ game_state }}">
<img src="/static/images/{{question}}.png"> <img src="/static/images/{{question}}.png">
</a> </a>
<div class="money"> <div class="money">
${{ (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 }} ${{ (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 }}
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,14 +1,14 @@
<html> <html>
<head> <head>
<title>Jeopardy</title> <title>Jeopardy</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head> </head>
<body> <body>
<a class="question" href="/?game_state={{ game_state }}"> <a class="question" href="/?game_state={{ game_state }}">
{{answer_text}} {{answer_text}}
</a> </a>
<div class="money"> <div class="money">
${{ (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 }} ${{ (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 }}
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,26 +1,26 @@
<html> <html>
<head> <head>
<title>Jeopardy</title> <title>Jeopardy</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head> </head>
<body> <body>
<table> <table>
<tr> <tr>
{% for cat in categories: %} {% for cat in categories: %}
<th>{{ cat }}</th> <th>{{ cat }}</th>
{% endfor %} {% endfor %}
</tr> </tr>
{% for i in range(1,7) %} {% for i in range(1,7) %}
<tr> <tr>
{% for j in range(0,6): %} {% for j in range(0,6): %}
<td> <td>
{% if draw_cells[(i-1)*6+j] %} {% if draw_cells[(i-1)*6+j] %}
<a href="/question?question={{ (i-1) * 6 + j }}&game_state={{ game_state }}">${{ 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 }}</a> <a href="/question?question={{ (i-1) * 6 + j }}&game_state={{ game_state }}">${{ 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 }}</a>
{% endif %} {% endif %}
</td> </td>
{% endfor %} {% endfor %}
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
</body> </body>
</html> </html>

View File

@@ -1,14 +1,14 @@
<html> <html>
<head> <head>
<title>Jeopardy</title> <title>Jeopardy</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head> </head>
<body> <body>
<a class="question" href="/answer?question={{ question }}&game_state={{ game_state }}"> <a class="question" href="/answer?question={{ question }}&game_state={{ game_state }}">
<img src="/static/images/{{question}}.png"> <img src="/static/images/{{question}}.png">
</a> </a>
<div class="money"> <div class="money">
${{ (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 }} ${{ (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 }}
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,14 +1,14 @@
<html> <html>
<head> <head>
<title>Jeopardy</title> <title>Jeopardy</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head> </head>
<body> <body>
<a class="question" href="/answer?question={{ question }}&game_state={{ game_state }}"> <a class="question" href="/answer?question={{ question }}&game_state={{ game_state }}">
{{question_text}} {{question_text}}
</a> </a>
<div class="money"> <div class="money">
${{ (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 }} ${{ (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 }}
</div> </div>
</body> </body>
</html> </html>