Visual Studio 2010中通过LAN的​​TicTacToe。 [英] TicTacToe through LAN in Visual Studio 2010.

查看:77
本文介绍了Visual Studio 2010中通过LAN的​​TicTacToe。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是编程的初学者。

我很难过如何创建它。

我的想法是当我点击一个形状,同样的形状也被点击了我的合作伙伴的程序,但我不知道如何连接两个程序!

i'm a beginner in programming.
i'm stumped as to how to create it.
my idea was when i click a shape, that same shape also gets clicked in my partner's program but i don't know how to even connect two programs together!

推荐答案

首先通过某种形式的通信工作,然后看看提炼以满足游戏需求。



我首先要看一下套接字类 [ ^ ]并尝试首先在两台PC之间进行通信。
Start by getting some form of communications working, then look at refining that to handle the game needs.

I'd start by looking at the Sockets class[^] and trying to get the communications working between two PCs first.


这篇关于Visual Studio 2010中通过LAN的​​TicTacToe。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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