The websocket connection continiously sends the game state to the backend to receive the DQN Agent's next move.
Can it play faster?
This website is hosted on a virtual machine with 512MB RAM and 1 vCPU so I am glad that I made it work at all. It play pretty fast on my local machine which has far better specs.
What is the best score you have seen by the AI?
It scored like 750k points and I got bored and stopped the game. I am not sure about its limits.