Questions about writing a website game
I need some advice for I am writing a simple website card game between two or more players. Each round, the players play their action cards and attack the opposing character cards. Each player needs to be able to execute actions and also receive feedback results from each round played.
There will be a program that actually runs the game, and a player webpage interface (that runs in a web-browser obviously). Here are some issues I need help/advice on:
Synchronizing Activity: Players need to know when they can input their actions, and also need to know the results of the round. A player may have to wait for their opponent to act, so the web interface must be capable of receiving new data. I figure web interfaces would probably need to maintain listening connection to the actual game program running on the webserver. Or it would need to periodically ask the server for updates.