Skip to content
Snippets Groups Projects
Commit a6f78c08 authored by ghalys's avatar ghalys
Browse files

rules

parent 125b6afc
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -178,7 +178,15 @@ def handle_rules():
Check if we want to apply rules, still not implemented
"""
global rules_applied
rules_applied = request.form['psw3']
if rules_applied == "True":
game.set_transparent_mode(False)
rules_applied = "False"
else :
game.set_transparent_mode(True)
print("########pas de regles")
rules_applied = "True"
return render_template('index.html', disabled_button=disabled_button, check =rules_applied )
@app.route('/change_place', methods=['POST'])
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment