Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

ChessGame: Finished network system

Sign in to follow this  


I've now completed coding and designing (and coding again [smile]) my simple network system. It kinda' exceeded my expectations of what I thought I would be able to do when struggling though my first network code yesterday.

Here are some examples of how it works...

First: It's a client-server model application, and as an example, suppose we have the users "Mimi","Peter","Dan" and "Robbie" logged on (you are logged on whenever your chess game is in network mode). Here's an image...

The example continues with the connection of a new user...

To be mentioned is that the server will keep track of all logged in users in two lists: one containing all users and one containing those that are not currently playing.

Now how does game handling work?

We now have the current setup:

and Dan wants to play with Mimi...

NOTE: the show setup images contain information on other actions as well (messages in red text to the right)

As you can see the server is a kind of lobby... but handles chess draw transfers as well (chess play data is not much (4 bytes per draw) and is only transfered each 1-5 minutes or so per game).

I'm a bit amased that I as a beginner was able to put this together... it's just like I thought before I started: Network code isn't going to be much to work for a chess app...
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!