|
论文大纲,目录 |
关键词搜索: |
摘要 伴随着计算机技术和网络技术的发展,网络游戏已成为人们现代生活的一部分。开发网络游戏的一种方法是设计新的场景和新的游戏规则,另一种方法是将传统的棋牌游戏和其他宜智游戏网络化。本文工作属于后一种。 五道棋规则简明、容易掌握,在我国的历史可谓是渊远流长,喜爱它的玩家也是大有人在。但目前的五道棋软件一般都是单机版的,游戏无法在异地的玩家之间进行。基于上述原因,本人决定开发一个符合传统五道棋规则的网络环境下的五道棋对弈软件。 本软件采用Microsoft公司的 Visual C++ 6.0为开发工具,利用MFC提供的Socket类库实现程序之间的远程通讯。 本软件被设计成客户机/服务器模式。服务器程序与客户端程序可以运行在不同的主机上,只要服务器程序所在的主机被设置了IP地址。服务器程序负责监听和收发来自客户端的消息,客户端只负责收发来自服务器程序的消息。在本文工作中,服务器程序同时兼任一个客户端。在对弈时,对弈双方可以看到相同的棋盘内容,但是只能移动自己的棋子。当有棋子被吃掉时,在双方的棋盘上也都有所显示。在对弈的同时,还可以给对方发送文字信息。 本文详细介绍了服务器和客户端程序的通讯原理以及交互界面的实现方法。 关键词:网络游戏,套接字,客户端,服务器. Abstract With the development of computers and networks, network games are playing an important role in modern life of common people. Generally, there are two approaches to develop network games: one is to design new scenes and regulations, and the other is to import from traditional chess and puke games. The work of thesis belongs to the latter. Wudao (Grid 5), a very simple and popular chess game,is widely played in China and has a long history. Now, the software of Wudao chess is usually stand-alone, and the game couldn’t be carried out among players in different places. Concerning the reasons above, I decided to develop new programs for playing Wudao chess under network environment. Microsoft’s Visual C++6.0 was exploited as the development tool, and the Socket class library was applied to implement communications between programs. The software was designed with client/server model. The server and the client can be run on different无忧论文 【http://www.uklunwen.com】 hosts, provided that the server host has been designated IP address. The server program is responsible for listening the messages from the client, and the client is responsible for sending and receiving the messages from the server. The server in this thesis is also a client. When playing with the software, both sides can see the same chessboard, and can send dialog messages to the other side. The thesis will present in detail the theorem of communications and the implementation method of interactive interface.
Key words: Network game, Socket, Client, Server. 目 录 1 引言┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄1 1.1 课题背景┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄1 1.2 本文工作┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄3 2 系统结构与通讯功能的实现┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄5 2.1 系统结构┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄5 2.2 Socket的原理┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄6 2.3 程序框架┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄9 2.4 客户端与服务器的连接┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄10 2.5 数据的接收与发送┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄14 3 交互界面的设计与实现┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄16 3.1 棋盘的生成┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄16 3.2 棋子的生成┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄18 3.3 行棋的实现┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄20 4 系统的运行结果┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄31 5 结论┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄37 5.1 工作总结┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄37 5.2 进一步工作展望┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄38 致 谢┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄39 参考文献┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄40
|
|
|
第1页 第2页 |
|
|
| 上一篇:图书管理系统(含程序及开题报告)下一篇:微分方程的初边值问题(程序代码,PP
|
| 最新论文 |
最热门论文 |
|
|
|
|
|