Understanding coding for multiplayer games

I’m pretty new to java but I generally get how to use java, I’ve only got basic programming knowledge though. I’ve made a chess variant game once which was only playable on one pc. But I wanted it to be playable per lan/internet, I didn’t know it was much harder to code games with multiplayer then. I got frustrated and quit working on it. Now after some years have passed I scripted one of my boardgame ideas with Maptool, I finished the project. (sadly nobody is interested in the game T_T) I’m really satisfied with the work I did (even though a lot ppl helped me out) but instead of just scripting, I thought you can do better, start real programming again. I’ve gotten older and more patiant so now I’m trying to understand how programming multiplayer games work before I start coding. I’ll start with a simple cardgame that can be played with 2 players with tcp/ip, to get into programming with java. I’ve tried to find code that I could use to understand how it works but I sadly couldn’t find some. I couldn’t even find a code archive or something alike. I’m hoping you guys can help out with some advice/links.

-Ahh ok it’s called snippets no wonder I couldn’t find any code ^-^

Are you familiar with Oracle’s Java Tutorials? They are an excellent resource.
http://download.oracle.com/javase/tutorial/networking/index.html
Link is for the section on networking. I was told to check out the section “sockets” when I got on a similar topic about a week ago. But you would need the previous sections as background knowledge if you didn’t already know about URL coding, etc.

Thx just what I need :smiley:

I also found this snippet: http://www.dreamincode.net/code/snippet1917.htm

Shameless plug:
http://code.google.com/p/kryonet/

I also made a chess variant so i would be very interested in seeing yours! could i have a download link? you can see mine at http://spawngame.weebly.com/

Would recommend.

I also made a chess variant so i would be very interested in seeing yours! could i have a download link? you can see mine at http://spawngame.weebly.com/

Would recommend.