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.
I'm new to game programming and especially multiplayer games.
My question is: how can two players connect to each other and the state of both players updates continuously?
By the way, I'm planning to use JavaScript, PHP and MySQL languages for the implementation.
Update:
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?