通过局域网的井字游戏 [英] Tic tac toe game through LAN

查看:98
本文介绍了通过局域网的井字游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我用VB制作了Tic Tac Toe游戏,之后我想到了编写代码使其可以在LAN上玩的代码.在这方面有人可以帮助我吗?

[edit]已删除喊话"-OriginalGriff [/edit]

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]

推荐答案

查看


它太详细了,无法在此处进行介绍-但这里有一个很好的教程:
C#中的套接字 [ ^ ]
尝试阅读它,然后看一下示例-要做起来并不难,但是本文解释了为什么要做自己的事情的背景,这可以帮助您更好地理解!



我目前正在使用VB 5 ...,试图在LAN上玩游戏.因此,此C#代码对我的帮助不大:("

VB5! :OMG:

您确实意识到已经14岁了吗?并在13年前被替换?

为什么,如果您是编程新手,会为自己带来困难吗?

立即更改:
假设您的PC可以运行它,则可以免费获得Visual Studio Express的副本-VB或C#,并且可以完全正常工作,并且只有一点点丢失,您甚至可能不会注意到. Microsoft将在这里给您一份副本: http://www.microsoft.com/express [
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!


以培根的名义下载vb.net或c#.网络并使用当前语言!

您不妨使用当今使用的程序进行编程,而不是使用与Cuniform等效的技术.
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.


我只是想向那些说不使用VB5的人添加声音,这是 ancient (在IT方面)已被VB6取代,而且两者都不是特别好的语言.您还将发现更容易掌握的新语言.

我建议使用VB.NET(如果您真的想使用VB)或C#.如果您担心成本,可以使用
Visual Studio Express版本 [ ^ ].我什至建议在VB5/VB6上使用Java,并且为我的所有职业生涯开发Microsoft产品.
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.


这篇关于通过局域网的井字游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆