Simple Math Multiplayer game - is Ajax sufficient?

Posted by Christian Strang on Game Development See other posts from Game Development or by Christian Strang
Published on 2011-06-19T15:11:32Z Indexed on 2011/06/20 16:40 UTC
Read the original article Hit count: 302

Filed under:
|
|

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?

© Game Development or respective owner

Related posts about math

Related posts about multiplayer