Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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 am trying to create an online chess game using ActionScript and Flex. It works well when I have two players on the same PC, but I want to publish it as a web app. How can I transmit a move or action from one user to another, such that the other user sees what the first one did?

share|improve this question
My bad - I didn't notice the actionscript & flex tags. – Tim Holt Aug 10 '11 at 17:55

You will need some kind of server in the middle to manage the game state and transmit game data to the players.

The server's role is to take a player's move, make sure it is legal, update the board state based on the move, then push that change out to the other player so their game updates.

As far as technology goes, check out SmartFoxServer ( - something like it would do very well as your back-end technology.

Additionally, a quick Google search of "open source chess server" shows quite a few of them exist. You might be better off leveraging someone else's work. Remember, the server's job is not just to pass messages between game clients. It also has to confirm that all moves are legal, and that players aren't trying to cheat by sending illegal moves.

share|improve this answer

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.