基于JAVA汉诺塔游戏设计与实现

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

基于JAVA汉诺塔游戏设计与实现

院系:计算机与电子系

专业班:计算机应用技术0902班

姓名:高亚

学号:20092911057

指导教师:彭文艺

2012 年6月

基于JAVA汉诺塔游戏设计与实现JA V A Tower of Hanoi-based Game Design and Implementation

摘要

Java是一种可以撰写跨平台应用软件的面向对象的程序设计语言,是由Sun Microsystems公司于1995年5月推出的Java程序设计语言和Java平台(即JavaSE, JavaEE, JavaME)的总称。Java 技术具有卓越的通用性、高效性、平台移植性和安全性,广泛应用于个人PC、数据中心、游戏控制台、科学超级计算机、移动电话和互联网,同时拥有全球最大的开发者专业社群。在全球云计算和移动互联网的产业环境下,Java更具备了显著优势和广阔前景。

随着时代的不断发展进步,计算机已经融入我们的日常生活。很多时候,很多的问题想通过人的手来亲自解决已变得十分困难了,这时我们就要运用计算机来帮我们解决这些复杂的问题,汉诺塔问题就是这类较复杂的问题。

此次,我们通过Eclipse软件来解决汉诺塔问题。程序运行后会出现一个界面,界面上有各种操作提示,按照提示进行各种操作后会得到汉诺塔游戏的运行过程及结果。

关键词:Java汉诺塔Eclipse

Abstract

Java is a cross-platform application software can write object-oriented programming language by Sun Microsystems, Inc. in May 1995 launch of the Java programming language and the Java platform (namely JavaSE, JavaEE, of JavaME) the general term.Has excellent versatility, efficiency, platform portability, and security of Java technology, widely used in personal PC, the data center, game consoles, scientific supercomputers, mobile phones and the Internet, while the world's largest developer of professional community. Global cloud computing and mobile Internet industry environment, Java has significant advantages and broad prospects.

With the continual development and progress, the computer has been integrated into our daily lives. In many cases, a lot of problems to think through the human hand to personally resolve the very difficult, then we will use the computer to help us solve these complex issues. The Tower of Hanoi problem is that these more complex problems.

The Eclipse software to solve the Tower of Hanoi problem. After running a single interface, the interface on a variety of operating tips, follow the prompts to perform various operations will be the running process and the outcome of the Tower of Hanoi game.

Key words: Java Tower of Hanoi Eclipse

目录

摘要 .................................................................................................................... I Abstract ............................................................................................................. II 绪论 .. (1)

1相关技术介绍 (2)

1.1开发工具........................................................................ 错误!未定义书签。

1.2应用环境 (2)

1.3问题的提出 (2)

1.4任务设计内容 (3)

2系统需求分析 (4)

2.1界面及其布局设计 (4)

2.2 A、B、C座的实现方法 (4)

2.2.1成员变量 (5)

2.2.2方法 (5)

2.3圆盘的实现方法 (6)

2.3.1 Disc成员变量 (7)

2.3.2 Disc方法 (7)

3系统总体设计 (8)

3.1总体类关系 (8)

3.2总体功能图 (8)

3.3总体流程图 (9)

4系统主要功能设计流程图 (10)

4.1 A、B、C座实现流程图 (10)

4.2圆盘画法流程图 (10)

5系统详细设计 (12)

6系统测试 (17)

结论 (19)

致谢 (20)

参考文献 (21)

相关文档
最新文档