from boggle import Boggle import json from flask import Flask, request, render_template, redirect, flash, jsonify, session app = Flask(__name__) app.config['SECRET_KEY'] = "secretKey" boggle_game = Boggle() word_dict = boggle_game.read_dict('words.txt') words_found = [] @app.route('/') def home_page(): curr_game = boggle_game.make_board() session['curr_game'] = curr_game words_found = [] session['found_words'] = words_found session['score'] = 0 print(session) return render_template('index.html', curr_game=session['curr_game']) ### Likely @app.route('/check-word', methods=['POST']) def check_word_validity(): curr_word = request.json['word']