From 1526451fd1c2a8ed568c66cf2ad469e1b1f30b62 Mon Sep 17 00:00:00 2001 From: Nikolaj Date: Mon, 9 Sep 2024 13:22:11 +0200 Subject: [PATCH] :sparkles: --- main.py | 3 ++- questions.json | 12 ++++++------ templates/main_board.html | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/main.py b/main.py index 297a081..ade8d26 100644 --- a/main.py +++ b/main.py @@ -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(): diff --git a/questions.json b/questions.json index 11faad3..79c2a97 100644 --- a/questions.json +++ b/questions.json @@ -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"], diff --git a/templates/main_board.html b/templates/main_board.html index 5165005..e020bb9 100644 --- a/templates/main_board.html +++ b/templates/main_board.html @@ -15,7 +15,7 @@ {% for j in range(0,6): %} {% 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 }} + ${{(i*250)-(i**2*empty)}} {% endif %} {% endfor %}