Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
1.67/5 (3 votes)
See more:
Hi,
I have made Tic Tac Toe Game in VB after which an idea struck me to write a code which can make this game playable on LAN . Can anybody help me in this regard ?

[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 24-Aug-11 22:58pm
v3

Look at the Socket class[^]



"hey OriginalGriff can u please explain in a bit more detail ... . I'm new to programming ... not able to understand how can I make a Tic Tac Toe Game that can be played on LAN"


It's a bit too detailed to go into here - but there is a good tutorial on it here: Sockets in C#[^]
Try to read it, and have a look at the example - it's not that difficult to do, but the article explains the background of why you do what you do, which can help you understand better!



"I 'm currently using VB 5 ... in which trying to make the game to be played on LAN . So this C# code doesn't help me much :("

VB5! :OMG:

You do realize that is 14 years old? And was replaced 13 years ago?

Why, if you are new to programming would you make things that difficult for yourself?

Change now:
Assuming your PC will run it, get a copy of Visual Studio Express - VB or C# - it's free, and fully working with only a few bits missing that you probably won't even notice. Microsoft will give you a copy here: http://www.microsoft.com/express[^]

By preference, get the C# version and learn that, but there is a VB version if you want it. Then get a book, and start following it!

Starting off with VB5 nowadays is like learning to drive a car by hitching a horse to the front of a Ferrari!
 
Share this answer
 
v3
Comments
sagar wasule 25-Aug-11 4:33am    
hey OriginalGriff can u please explain in a bit more detail ... . I'm new to programming ... not able to understand how can I make a Tic Tac Toe Game that can be played on LAN
OriginalGriff 25-Aug-11 4:43am    
Answer updated
Nithin Sundar 25-Aug-11 4:45am    
5 for a good answer.
sagar wasule 25-Aug-11 5:09am    
I 'm currently using VB 5 ... in which trying to make the game to be played on LAN . So this C# code doesn't help me much :(
OriginalGriff 25-Aug-11 5:18am    
Answer updated.
In the name of all that is bacon, download vb.net or c#.net and use a current language!

You may as well program in something that is used today as opposed to tech equivalent of cuniform.
 
Share this answer
 
I just want to add my voice to those say don't use VB5, it is ancient (in IT terms), was replaced by VB6 and neither is a particularly good language to start with. You will also find newer languages easier to get to grips with.

I suggest VB.NET (if you really want to use VB) or C#. If cost is a worry you can use Visual Studio Express Editions[^]. I'd even recommend Java over VB5/VB6 and I'm developed for all my professional career on Microsoft products.
 
Share this answer
 
SQL
I just received a telex from 1997 asking for their programming language back. Like the rest of them said - if you want to learn programming, start with what's current and add onto it with whatever comes next. Playing catch-up from a different millennia is dedication, but also an exercise in complete and utter futility.

//L
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900