TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Roy S
NA
650
0
C# multiplayer chess
Sep 13 2010 3:58 PM
If this is the wrong section for this type of questions, move it please?
About three months ago I asked a question about making a game lobby (for playing chess online). I've been thinking about it and a week ago one of my teachers said to us that they wanted that everyone makes a website (of their end-work) which will be hosted (or whatever the proper term is) on a server in school. That reminded me of this problem.
The people posting in the last topic gave me the idea that the clients connects to a server that tells them who is online and who wants to play. The server also handles the game requests and the games themselves.
But I'm not sure what will happen if 10 games are played simultaneously, wouldn't that be too stressful on the server? I thought about letting the server handle the requests but the clients connect to each-other and handle the games themselves.
This is my idea of what needs to happen:
Client connects to server.
Server takes info from client (name, ip, ...).
Server sends info about new person to everyone else.
If someone wants to play a game he sends to server a sort message saying "I want to play a game with [name]".
The server sends a message to the right person saying "[name] wants to play a game, do you accept?".
The other person sends something back to confirm.
The server sends to the first person that he can connect to the second.
And if someone leaves (even if the internet connection fails if possible) or enters a game, the other clients should also be notified.
Eventually, I'd like to add an option to view one of the games but that's for later...
The actual question is "how?", how should I do this? Please, help me with this.
Try to avoid saying "search google" or "go to [section] of this site", I can't find it.
Reply
Answers (
7
)
Virtual Key strokes to Physical key strokes?
gps intermediate driver win32 equivalent