Question by Robert: What’s the best computer language to write a chess program for online play?
I’m just learning so my goal is not to be able to play the computer…I understand the enormous complexity that would involve.
I just want to create a platform that would allow two human participants to play the game over the web.
The program would show the board and allow the piece movements…but from there I guess it would simply serve as a referee…keeping track of whose turn it is, denying illegal moves, and acknowledging a check or checkmate.
What program language should I look into and what would I need in the way of software to pull this off?
Any insight you could provide me would be very helpful.
Thanks!
Best answer:
Answer by Mark aka jack573
You could use basically any language that allows networking to do it in.
There are some questions you need to ask yourself about the game.
1) Do you want the program to be a graphical program so the user can see the board and click on the piece they want to move to move the piece, or whether you want just a text program that people need to type into and the board gets displayed as a textual board.
2) Do you want to allow people to log onto a site and to choose rooms or games to play against other people, or do you want people to be able to download the game from a web site and be able to connect to another player that has the game.
3) Do you want to be able to rank players. For instance, how many games played, how many won, etc.
Ok, if you want to make a graphical game, you may need to make different versions of your game so they run on different operating systems (computers).
You may even need to make different versions of your game if it is just a textual game.
If you want people to be able to download the game and run it. Then the players get a list of people who are available to play, you are going to need the program to connect to a central program that holds information about who is avaiable toplay, etc.
If you want people to be able to log into your website and see who is available to play, you will also need something so you can keep track of who is playing, who is available, etc.
If you want to be able to keep ranks, etc, then you are going to need to keep information about the people who play your game. You can use a database for this type of information.
The easiest programming language for all of this would be Java, in my opinion. You can create the game either as a graphical game, or a text based game.
You can create it to be downloaded, or played on your web site.
You don’t have to worry as much about making different versions for different computers.
Basically what you are asking about is huge. You will have a lot to learn and may take a while for you to actually get the program working and available for people to play.
What do you think? Answer below!
Incoming search terms:
- best language to write online games
- how to write a chess program
- java writing games online
- free online chess against computer can do 4 move chekmate
- what is your best computer language
- what is the best language to write games in
- what is the best language to write games
- top computer languages 2011
- learn to write chess programming
- language to program board game