This commit is contained in:
Nikolaj
2024-09-09 13:22:11 +02:00
parent e734d55a4d
commit 1526451fd1
3 changed files with 9 additions and 8 deletions

View File

@@ -26,7 +26,8 @@ def main_page():
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)
empty = 36-sum(game_state)
return flask.render_template("main_board.html", categories=QUESTIONS["categories"], game_state=game_encoding, draw_cells=game_state, empty=empty)
@app.route('/question')
def question():

View File

@@ -1,7 +1,7 @@
{
"categories" : [
"TRUE OR FALSE",
"",
"RANDOM TRIVIA",
"SONG TITLES + OUTER WILDS (SINGING REQUIRED)",
"FLAGS",
"",
"THE SAW FRANCHISE",
@@ -17,12 +17,12 @@
["",""]
],
[
["Taylor Swift's first song (alphabetically) + how long the Outer Wilds time loop is","22 minutes"],
["Elphaba's signature song in Wicked + The main source of thrust for Nomai spaceships","Defying Gravity cannon"],
["",""],
["NSYNC's lead single + What the Nomai constructed the ATP to find","Bye Bye Beye of the Universe"],
["",""],
["",""],
["",""],
["",""],
["",""]
["The lead single of Sabrina Carpenter's 2024 album + The Nomai you meet at the quantum moon","Espressolanum"]
],
[
["$","Danish flag"],

View File

@@ -15,7 +15,7 @@
{% for j in range(0,6): %}
<td>
{% 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*250)-(i**2*empty)}}<!--${{ 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 %}
</td>
{% endfor %}