title: Javascript Multiplayer Game - Server Side Validation.
body: <p>I'm starting my hand at creating a multi-player game using HTML 5 / Javascript.</p>
  
  <p>I'm currently doing some prototypes on different ideas on how to stop people from cheating. Now I know I need to do everything server side and just have the client sending "actions". </p>
  
  <p>My issue is I can't workout the best way to store the game state for each player. </p>
  
  <p>So just looking at something basic; Two players running round a empty map. </p>
  
  <p>Currently my idea is</p>
  
  <p>Both clients(sockets.io) send their actions to a Node.JS server that then responds with a X/Y coord. This is fine. But obviously both clients need to know where the other player is. </p>
  
  <p>I thought about doing this by creating a new database table for each game and having the game state stored in there so the two node.js connections can talk to eachother. </p>
  
  <p>My question is, is this the best way to interact between two node.js connections, would it be fast enough? Or is there a design patten for this specific task that I'm missing?</p>
  
  <p>thanks</p>