Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been working on an online 2 player Tic Tac Toe solution for blackberries. both old and new. And so far I have html5 code that has a 3 x 3 layout that switches between x and o for the game mechanics. I believe I'm still missing a check for win function but my question is about the server side of this game. I'm not sure how to go about learning what exactly I want. how do you take what I have now, and make this into a functioning online game?

I've been told WAMP is a good solution, as well as IIS. and its all really over my head, so i'm hoping to get a little more clarity as far as what I should focus on to bring this game to life.

share|improve this question
up vote 1 down vote accepted

If you're building in HTML5 I suggest you look into Node.js and Socket.IO, as they fit well for your type of gameplay and are easy to implement due to Node.js' event loop. On top of that, you only need to use javascript for the client and server.

share|improve this answer
I have heard of node.js and as well. And a newer library called nowjs. what is hanging me up is how I split the code into client/server instead of just client. I'm clueless on how to code that – phi1o Jul 5 '12 at 10:20
Do you mean, how to share code between the client and server? If so, you can just eval(fs.readFileSync(filename) to read the raw file into Node.js and still load it normally on the client. It's not advised normally though since you should use require – Nick Jul 5 '12 at 11:37
I mean how do I split my code up into server side code and client side. what should be only server code, and what should be only client code? I dont know how to figure that out. – phi1o Jul 5 '12 at 14:52
In your case, everything happens on the server. The only thing the client needs to know is where and what to draw. I have a feeling though you're fairly new to multiplayer programming and I recommend that you do more research on the topic first. – Nick Jul 6 '12 at 7:06
yes. Completely new to the whole programming scene. Thank you – phi1o Jul 6 '12 at 13:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.