I'm planning to create a simple math multiplayer game and I plan to just use Ajax for the server/client communication but I'm not sure if this is sufficient or if I need a socket server.
The game will look like this:
- 2-4 users
- all get a simple math task (like: "37 + 14")
- they have to solve it as fast as possible
- first user who solves it is the winner
I will track the time for each user, since the game started, on the client side and everytime a user gives an answer, the answer and the passed time will be send to the server. Additionally I'll add a function which will check every 3 seconds if the other users finished, how much time they needed and who won.
Do you think this is possible just using Ajax? What alternatives are there?