dimanche 20 décembre 2020

What is the best path for hosting a python game as a web application?

I am getting into python programming as a hobby and as an effort to push myself in my career development. My most recent project was creating a game in Python. I created a simple multiplayer game with a tkinter GUI. It is a baseball game where one player selects which pitch type they want to throw, and the other player selects which pitch type they think is coming, and a result is generated based on if the choices match or not. It works great and I'm happy with it! But my next challenge for myself is to adapt that game so it can be played online via a web browser.

At first, I was hoping it would be as easy as recreating the client in JavaScript, but I haven't found much luck in figuring out how to do that. I was looking at socket.io, but I am not sure if that's really what I need in this case.

I don't mind recreating my entire program in JavaScript if need be, but I wanted to see if that was the most common-sense way of approaching it. There is no need to go into a lot of detail. I am not looking for anyone to hold my hand. But I appreciate any advice you can give!

Thank you!




Aucun commentaire:

Enregistrer un commentaire