I have to create a lil game. I run some AI stuff on this game with python BUT the interface for the game has to be a website/webapp built with flask.
So my first thought was to use pygame, but after some research on the net, it seems you can't have a web interface with pygame.
Then i thought that the easiest would be to create the game in javascript to get it built-in the website.
I'm aware that you can share infos beetween the site and flask via post/get methods.
So here's my question : is there a way to get and give infos to the javascript inside the page with the flask server without the need to reload the page, and with enough speed so that i can run the AI stuff in the python in real-time?
Or is there a totally different way, avoiding javascript that i missed?