title: Designing multiplayer game (connect two players)
body: <p>I am doing a multiplayer game where each player draws a picture and then displays his/her pictures to the opponent to answer some questions.</p>
  <p>I'm new to game programming and especially multiplayer games.</p>
  <p>My question is: how can two players connect to each other and the state of both players updates continuously?</p>
  <p>By the way, I'm planning to use JavaScript, PHP and MySQL languages for the implementation.</p>
  <h3>Update:</h3>
  <p>I didn't understand until now how can I connect two players. If the first player finished drawing the image, then the game has to find the opponent to answer some question regarding the picture. How can my code find the opponent?</p>