Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Network game - hangman - where to start ?

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
I'm considering putting together what should be a simple game of 'hangman' to be played by two people over a network (or internet in time).
Ideally what I want is to have a client on two machines, the first person to enter in the word(s) to be guessed and the second person guessing the letters that are in the word(s). The guesser would see a list of letters guessed but not contained in the solution (on one side of the client application with the characters struck-through) and the correct letters placed accordingly in the solution string(s).
The problem is I don't know where to start ...
I know as much that I need a client application on the two players machines but don't know how to control the feed of information from one to the other.
Do I also need a controlling application working on the server the two clients are working through ?
Should I be thinking about using some form of database on the server to be performing the controlling functionality, guessed letters, etc.
Any help / pointers would be greatly appreciated.
Thanks in advance.
Steve
 
Just a few ideas off the top of my head:

Store the entered word in a database - with the user's name in the same table.
Use sockets to connect the two PCs (not sure if you can use sockets in C# - I've never tried).

Hope this helps you a bit!

Craftor

:cool:
 
If you're talking about internet eventually, then you could just make an ASP.Net webpage coded in C# to run over your LAN right now, and move it to the internet later.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top