• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2737
  • Last Modified:

How to make online multiplayer games like chess,backgammon ect..

How can i make online multiplayer games like chess,backgammon ect...for my php-mysql based web site.
0
Ali Kayahan
Asked:
Ali Kayahan
1 Solution
 
jasonsbytesCommented:
You could do it with nothing more than php and mysql, but you would be constantly refreshing the page and the user might get annoyed...

To make it a pleasent experience for the user, you'd have to use something like AJAX or Java.

In general though, you'd have ways for people to meet up and start a game...
You'd store a game ID in the db.
You'd store who's turn it was in the db and after each turn, update that variable.
Also you'd obviously keep track of moves, score, etc. in the db.
0
 
jasonsbytesCommented:
also:
http://www.physicsforums.com/archive/index.php/t-133774.html

there is a support group for creating php games on 43things.com... other people working on doing just what you want to do:
http://www.43things.com/things/view/30215
0
 
Ali KayahanFull Stack DeveloperAuthor Commented:
Need better answers,such as informing me about the logic where should i start from?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
jasonsbytesCommented:
I suppose you should start by understanding the game you want to create.
Next you'd better have a very good understanding of the language and database you plan to use.

Once you have that, everything else will be easy.

There isn't anything I can say that will give you instant knowledge of either of the above, it will just take practice and trial and error.
0
 
Ali KayahanFull Stack DeveloperAuthor Commented:
Need more answers....
0
 
jasonsbytesCommented:
You need to ask a specific question.
0
 
Ali KayahanFull Stack DeveloperAuthor Commented:
For example in yahoo games ,i have knowledge about php-mysql but dont have any idea how to integrate the games board or how to create a chess board,or do i have to create a chess board? i just want to create games room like yahoo not so complicated such that just including 4 games backgammon,chess,king and some kind of card games,that visitors login and start game also chat during game....
0
 
jasonsbytesCommented:
sorry, I have never created a game, so I can't tell you what to do.

I have php-mysql knowledge though and I know how checkers works, so I'm pretty confident I could create an online version of the game in probably a month using google to find out how to do anything I don't already know how...

I suggest you start with what you know... and google the rest... Obviously you need to create a board, so if you don't know how to make php output a checker board, you need to study php and dhtml+css some more...  There won't be anything special about that, just basic dhtml+css and a few basic php loops to write it all out.
0
 
Ali KayahanFull Stack DeveloperAuthor Commented:
jasonsbytes thanks for your efforts but i already got that you dont know how to create games such as i want,and asked for other suggestions...I already do know about mysql-php,actionscript,flash, css+dhtml
but this is not enough for what i want... it seems that its the profession of java programmers. So i need other suggestions such as explaining integrating a board game with php for web.
0
 
jasonsbytesCommented:
good luck
0
 
Ali KayahanFull Stack DeveloperAuthor Commented:
please close this topic,seems has no answer..
0
 
Ali KayahanFull Stack DeveloperAuthor Commented:
Please close the question and refund,as it seems there isnt any answer...
0
 
Frosty555Commented:
Funny thing, I am looking into doing precisely the same thing -  build a multiplayer backgammon website using php and mysql. And I found JasonsBytes comment #19579008 very informative, if you will take the time to read the thread he linked to, which concerned the table structure for making a simple chatting system and game manager in php.

Experts Exchange is here to help you, but we're not here to spoon feed you answers to a large project like a multiplayer, muilti-game online engine using php. You have to at least *attempt* the problem, and then ask us questions about specific issues you are having.

First, make a website that connects to a mysql database in php. If you run into trouble, ask us.

Next, design your tables in the database so that it holds enough information about the state of a game that you can display it on the screen. If you are having trouble with, say, thinking up a method of storing the position of every piece in a chess game in a mysql database and you'd like some suggestions, ask us. We will all be full of ideas.

Next, make a page in php, javascript, ajax, flash or whatever you're comfortable with that uses that informaiton and displays it attractively. Should you have any issues making that work, perhaps you are having trouble making php display an attractive chess board, feel free to post a question here, we can help you debug your code.

Next, implement the game logic. Again, once you have something we can work off of you can ask us specific questions and we can help you. Having trouble implementing all the nuances of chess? Want suggestions on how to implement a "speed clock"? Ask us, we can probably give you some tips.

But it is really quite useless to just ask for "more solutions" to a large project. Reminds me of a nest of baby birds with their beaks wide open saying "FEED ME!!".

If you request the question be closed, my recommendation to the mods is award the answer to JasonsBytes, with a B grade.
0
 
jasonsbytesCommented:
Thanks Frosty...
0
 
totiobsCommented:
that is the wrost answer i heared, i paid money like this man to have at least some examples about the multiplayer game in flash , how to make it and some sample codes for that so we can run it in flash understand it and then do the same, that is what we paid th emoney for, but if you can't help then i will cancel my membership and ask for a full refund,

we are here to see real results
0
 
jasonsbytesCommented:
you should note that the accepted solution is chosen by the person asking the question...
0
 
Ali KayahanFull Stack DeveloperAuthor Commented:
  Hi totiobs ;thats why i closed this question,there is no real answers above,but as far as i learned from my investigations doing these kind of things with java seems the best solution.
   And about your opinion about cancelling your membership,this would be the worst step that you have ever done in your it career,this site really works,sure there might be exceptions such as that...
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now