I am making a bot that solves Wordle, and am trying to host it on my domain. It takes in the user's guess and result as inputs and returns the most optimal word for them to guess next (displayed on the html page as a global variable, which is the issue that I don't know how to fix). My issue is that one user might have one optimal word, i.e. "sooty", and another will have "apple". If one user reloads, they will have the same word as the other user. Is there any way I can keep the content different without using a database or user system? I am making this website using Flask, here is a link to the github page: https://github.com/confused-404/Wordle-Website
I have seen that flask sessions or cookies might do the trick, but I haven't been able to figure out how to implement them in this scenario.