I need some advice from a better web-developer.
I am making a game similar to Jackbox’s Quiplash:
- A host (whose screen is visible to all players, preferably on a TV) is able to go to a website to start a game.
- Using a 4-character key, up to 8 players can join.
- The game gives everyone prompts to answer.
- Two candidate’s responses are voted on by the rest of the party
- The winner gets a point.
- The rounds of voting continue, and a winner is chosen
I made a prototype, complete with voting and all the client-side graphics, using Python 3 with a Flask / SocketIO webserver. However, I’ve started to miss Java’s static-typing and class system. Once I ran into multi-threading issues, I decided to switch to Java.
For context, it’s been a while since I worked in Java, and that was mostly with games and graphics, not with any networking or web servers.
I would appreciate advice on how to rebuild my server in Java with multi-threading issues in mind.
What kind of web server library should I use for real-time communication with the client?
How do I design my game-manager in a thread-safe, scalable way?