Adding my pygame game to a website?
We are making a basic chess engine using pygame, currently you can just move the pieces (run ChessMain.py to see)
I'd like to host the engine on a webpage with a .repl url. This would allow someone to go to the url and move some of the pieces around.
I'm not sure where to start, do I need to start using REST API's and Flask? Or is there a simpler way to integrate it using replit? Thanks in advance for your help/patience!
If you check the replit docs, you'll find that there is a sort-of-api built specifically for accessing the visual/audial output of a Repl. https://docs.replit.com/hosting/streaming-native-graphics-vnc
I'm guessing you could simply embed an iframe to the noVNC client or something like that.