1、 I 摘 要 随着科技的进步,计算机已经普及每个家庭,而计算机游戏也随之越来越多,越 来越丰富。网络游戏、单机游戏等休闲游戏让众多人喜欢,而斗地主也受广大群众的 追捧。 “斗地主”是流行于全国的一种扑克游戏,玩法简单,娱乐性强,老少皆宜。据 传在旧社会的民间,地主横行乡里,无恶不做,人们为了发泄对地主的痛恨,常常在 一天的劳作之后,一家人在家里来“斗地主“。该游戏由三个人玩,用一副或两副牌, 地主为一方,其余两家为另一方,双方对战,先出完牌的一方获胜。 本设计以一副牌规则为准.本论文讲述了单机版斗地主的游戏算法的设计,以 Visual C+语言编译的一个应用程序。使用者可以简单方便的实现斗地主
2、游戏。本程 序界面友好,操作简单,比较实用。 本程序在详细设计时不断地修正和完善,经过测试阶段反复调试和验证,最终形 成达到设计要求的可行系统。 关键字:斗地主; 纸牌; Visual C+;数据库; 齐齐哈尔大学毕业设计(论文) II 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 o
3、ther 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 d
4、ont 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 a
5、fter 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 p
6、ractical。 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 words: Landlord; Cards; Visual c + +; SERVLET; III 目目 录录 摘 要 I AbstractAbstract II 第 1 章 绪论 . 1 1.1 设计目的 1 1.2 设计思路 1 第 2 章 系统开发工具及其介绍 . 3 2.1 开发工具的选择 3 2.2 Visual C+编程特点 4 2.2.1 C+语言的发展 4 2.2.2 Visual C+ 2003 简介 4 2.2.3 Visual C+ 2003 的开发环境 5 第 3 章 需求分析及可行性分析 7 3.1