March 10th, 2013, 10:51 PM
Developing a web based two player game in PHP
I want to develop a simple game in PHP.Game is as follows, a server displays a image to the two players,two players have to type keyword corresponding to the image if the key word is same,they are given next image. What I am confused is how to develop the interface for this game.How do I display an image to two different players simultaneously and how do i keep track of their answers.Moreover how to implement two players ?
March 11th, 2013, 01:07 AM
March 11th, 2013, 07:52 AM
I could simplify it a bit more, but the basic theory is the same. Database (or memcache) to keep track of which player belongs to which game, a current game state table, and then ajax pollers constantly waiting for the other player to make a move and advance the game state.
HEY! YOU! Read the New User Guide and Forum Rules
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002
Think we're being rude? Maybe you asked a bad question
or you're a Help Vampire.
Trying to argue intelligently? Please read this.