954,559 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

HELP creating a multiserver game in VB winsock

can any1 help at all please? i am requried to develop the following number guessing game using VB's winsock. i have no ideas so please help

The system that needs to be developed requires
· Between 3 and 5 clients playing against each other in a fair manner
· two game servers operating in tandem (acting for fault tolerance)
· it is recommended that a ‘super’ control application be used to keep the servers in synchronisation
· the number to be guessed is only to be input at one of the game servers at the start of a game.
· some form of protocol between the various applications must be developed that permits the system to operate
· NO central data stores are permitted
· On each server & client will be a button. Each time this button is pressed it will either turn it on or off (via the use of a global variable within that form). This will permit the actual application to carry on running, but can not send or act upon any messages received.

In the VB we can make use of the split command to split a string

To Split a String
Dim strname As String
strname = "fred$bert$sid$"
message = Split(strname, "$", -1, vbTextCompare)
temp = message(0)
temp1 = message(1)
temp2 = message(2)


The protocol required for this assignment will expect to make use of this type of protocol where the first letter will indicate the function, and any other details will follow with $ separators.

dazw1
Newbie Poster
9 posts since Jan 2005
Reputation Points: 10
Solved Threads: 0
 

To Easy... when I get out of work, I'll let you know.

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 
To Easy... when I get out of work, I'll let you know.

that would be great if you could help me. cheers

dazw1
Newbie Poster
9 posts since Jan 2005
Reputation Points: 10
Solved Threads: 0
 

can any1 help at all please? i am requried to develop the following number guessing game using VB's winsock. i have no ideas so please help

The system that needs to be developed requires · Between 3 and 5 clients playing against each other in a fair manner · two game servers operating in tandem (acting for fault tolerance) · it is recommended that a ‘super’ control application be used to keep the servers in synchronisation · the number to be guessed is only to be input at one of the game servers at the start of a game. · some form of protocol between the various applications must be developed that permits the system to operate · NO central data stores are permitted · On each server & client will be a button. Each time this button is pressed it will either turn it on or off (via the use of a global variable within that form). This will permit the actual application to carry on running, but can not send or act upon any messages received.

In the VB we can make use of the split command to split a string

To Split a String Dim strname As String strname = "fred$bert$sid$" message = Split(strname, "$", -1, vbTextCompare) temp = message(0) temp1 = message(1) temp2 = message(2)

The protocol required for this assignment will expect to make use of this type of protocol where the first letter will indicate the function, and any other details will follow with $ separators.

Oh dear, I fear that you've left this one a little bit too late.

check the documentation given on blackboard - week 4+6
phil

uogPhilD
Newbie Poster
1 post since Jan 2005
Reputation Points: 10
Solved Threads: 0
 

Oh dear, I fear that you've left this one a little bit too late.

check the documentation given on blackboard - week 4+6 phil


cheers phil, but already done. this forums rubbish no1 helps.

dazw1
Newbie Poster
9 posts since Jan 2005
Reputation Points: 10
Solved Threads: 0
 

Patience is a virtue,

I'm sorry I was unable to get a response, after work that day, but my system was fritzing, and would only load certain pages. After spending a signifcant amount of time, trying to get my system functional again, my visual basic didn't work. I'd hate to have given you poor guidance. No Response, is better than a wrong one, in my opinion.

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You