毕业论文 斗地主游戏设计.doc

约32页DOC格式手机打开展开

毕业论文 斗地主游戏设计,摘 要随着科技的进步,计算机已经普及每个家庭,而计算机游戏也随之越来越多,越来越丰富。网络游戏、单机游戏等休闲游戏让众多人喜欢,而斗地主也受广大群众的追捧。“斗地主”是流行于全国的一种扑克游戏,玩法简单,娱乐性强,老少皆宜。据传在万恶的旧社会,地主横行乡里,无恶不做,人们为了发泄对地主的痛恨,常常在一天的劳作之后,一家...
编号:20-196545大小:383.50K
分类: 论文>计算机论文

内容介绍

此文档由会员 ljjwl8321 发布

摘 要

随着科技的进步,计算机已经普及每个家庭,而计算机游戏也随之越来越多,越来越丰富。网络游戏、单机游戏等休闲游戏让众多人喜欢,而斗地主也受广大群众的追捧。
“斗地主”是流行于全国的一种扑克游戏,玩法简单,娱乐性强,老少皆宜。据传在万恶的旧社会,地主横行乡里,无恶不做,人们为了发泄对地主的痛恨,常常在一天的劳作之后,一家人关起门来"斗地主"。该游戏由三个人玩,用一副或两副牌,地主为一方,其余两家为另一方,双方对战,先出完牌的一方获胜。
本设计以一副牌规则为准.本论文讲述了单机版斗地主的游戏算法的设计,以Visual C++语言编译的一个应用程序。使用者可以简单方便的实现斗地主游戏。本程序界面友好,操作简单,比较实用。
本程序在详细设计时不断地修正和完善,经过测试阶段反复调试和验证,最终形成达到设计要求的可行系统。
关键字:斗地主; 纸牌; Visual C++
ABSTRACT

With the progress of science and technology,Computers have universal every family,and with more and more computer games,increasingly rich。The network game, LAN game and other casual games for many people like it,but Landlord also affected by the broad masses in both hands。
“Landlord” is a popular poker game national,play simple, entertaining is strong,enjoyed by young and old。Reportedly, the landlord of the old society in the root of evil, no hooliganism village don't do, people to vent the hate for landlords in the day, often after work, family behind closed doors " Landlord "。The game consists of three people playing, use a pair or two pairs of CARDS, landlords and the rest for the party to the other party, the two sides, first out CARDS against the party after winning。
This design with a deck rules shall prevail. This paper tells the stand-alone Landlord game algorithm is designed to Visual c + + language compiled an application. Users can simple to realize Fight the Landlord game. This procedure friendly interface, the operation is simple, is more practical。
This procedure in the detailed design constantly correction and perfect when, after testing phase repeated commissioning and validation, and finally form the feasible system to meet the design requirements。
Key word: Landlord; Cards; Visual c + +

目 录

绪论………………………………………………………………………………………… 1
1. 系统设计的目的及设计思路………………………………………………………… 2
1.1 设计目的………………………………………………………………………… 2
1.2 设计思路………………………………………………………………………… 2
1.3 系统预览………………………………………………………………………… 3
2. 系统开发工具及其介绍……………………………………………………………… 4
2.1 开发工具的选择………………………………………………………………… 4
2.2 Visual C++编程特点…………………………………………………………… 5
2.2.1 C++语言的发展…………………………………………………………… 5
2.2.2 Visual C++ 6.0简介…………………………………………………… 5
2.2.3 Visual C++ 6.0的开发环境…………………………………………… 6
3. 需求分析及可行性分析……………………………………………………………… 7
3.1 需求分析………………………………………………………………………… 7
3.1.1 需求分析的作用………………………………………………………… 7
3.1.2 需求分析过程…………………………………………………………… 7
3.1.3 需求分析的方法………………………………………………………… 7
3. 2 可行性分析………………………………………………………………………8
3.2.1 可行性分析的意义………………………………………………………8
3.2.2 可行性分析报告…………………………………………………………8
3. 3 系统定义…………………………………………………………………………9
3. 4 系统的组成和功能构想…………………………………………………………9
4. 系统总体设计方案……………………………………………………………………10
4.1 C/S模式………………………………………………………………………… 10
4.1.1 C/S模式………………………………………………………………… 10
4.1.2 设计原则………………………………………………………………… 10
4.2 基于C/S的模块设计……………………………………………………………10
4.2.1 服务器端模块设计……………………………………………………… 10
4.2.2 客户端模块设计………………………………………………………… 11
5. 纸牌设计……………………………………………………………………………… 13
5.1 纸牌的设计…………………………………………………………………… 13
5.2 纸牌的出牌类型……………………………………………………………… 13
6. 详细设计与系统实现………………………………………………………………… 15
6.1 出牌记录和合法……………………………………………………………… 15
6.1.1 出牌记录和合法性………………………………………………………15
6.2 显示信息功能………………………………………………………………… 17
6.2.1 分牌………………………………………………………………………17
6.2.2 产生地主………………………………………………………………… 19
6.2.3 牌面显示………………………………………………………………… 21
6.2.4 出牌显示………………………………………………………..