jackhard Posted March 11, 2013 Share Posted March 11, 2013 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 ? Quote Link to comment https://forums.phpfreaks.com/topic/275483-developing-a-web-based-two-player-game-in-php/ Share on other sites More sharing options...
gmaestroo Posted March 11, 2013 Share Posted March 11, 2013 The answer is not simple so i will only give you directions. First you will need a system that checks who is logged in(create table in db loggedInUsers). Next you should pair 2 players and display them an image(another db table pairedUsers). Use a JQuery ajax to check this every who is logged, who is playing with who, and users answers. Quote Link to comment https://forums.phpfreaks.com/topic/275483-developing-a-web-based-two-player-game-in-php/#findComment-1417915 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.