✨
This commit is contained in:
3
main.py
3
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():
|
||||
|
||||
@@ -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"],
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user