JAVA局域网斗地主纸牌游戏的设计与实现 摘要:本局域网斗地主设计以eclipse为开发平台,基于C/S模式,采用JDBC、SQL Server数据库技术设计和实现的局域网斗地主纸牌游戏的应用程序。其主要功能包括:服务器对玩家的分组、分牌、不同数据处理功能;客户端的聊天、抢地主、出牌功能。本系统的核心功能模块是服务器的分牌算法和客户端的出牌算法。本系统和其他类似系统项目相比,具有界面友好,操作简单,易文护,算法智能等特点。
关键字:斗地主;Eclipse;C/S;Java;JDBC
The Design and Implementation of LAN Landlord Card Game
Abstract: LAN landlord card game based on C / S mode is designed with the “eclipse” as a development platform and the application is completed by using the JDBC and SQL Server database. Its main functions include: dividing players and cards into groups, dealing with different data; chatting system, grabbing the landlord and so on. The core functional module of this system is the server's dividing cards into groups and the client's algorithm of dealing with cards. Comparing to the past system, this program with friendly interface and simple operation can be easily operated by players.
Key Words: Landlords ;Eclipse ;C/S;Java;JDBC.
目 录
摘要 3
关键词 3
引言 3
1. 研究意义 4
2. 课题采用相关技术 4
2.1 JAVA 4
2.2JDBC和SQL Server 5
2.3 C/S架构 6
3. 系统分析 6
3.1需求分析 6
3.2系统功能分析 6
3.2.1客户端与服务器之间的总体架构图 6
3.2.2服务器的功能架构图 7
3.2.3客户端的功能架构图 7
4. 系统核心功能实现 8
4.1服务器功能的实现 8
4.1.1 服务器线程功能 8
4.1.2 服务器的分牌算法 8
4.2客户端功能的实现 9
4.2.1登录/注册功能的实现 10
4.2.2出牌算法 11
4.2.3客户端运行流程图 12
5. 结 论 13
6. 参考文献 14,3080