扫雷毕业设计

2019-04-08 21:09

基于Java扫雷游戏的设计与实现

院 系:计算机与电子系 专 业 班:计算机应用技术0902班 姓 名:张峥 学 号:20092911052 指导教师:彭 文 艺 2012 年 6月

基于Java扫雷游戏的设计与实现 Design and Implementation of Java

Minesweeper Game

摘 要

Java是一种可以撰写跨平台应用软件的面向对象的程序设计语言,是由Sun Microsystems公司于1995年5月推出的Java程序设计语言和Java平台的总称。在硬件或操作系统平台上安装一个Java平台之后,Java应用程序就可运行。Java是一种简单的,面向对象的,分布式的,解释型的,健壮安全的,结构中立的,可移植的,性能优异、多线程的动态语言。Java 技术具有卓越的通用性、高效性、平台移植性和安全性,广泛应用于个人PC、数据中心、游戏控制台、科学超级计算机、移动电话和互联网,同时拥有全球最大的开发者专业社群。在全球云计算和移动互联网的产业环境下,Java更具备了显著优势和广阔前景。

近年来Java作为一种新的语言,以其简单性,平台无关性和可移植性等优点,得到了广泛的应用,特别是Java与万维网的完美结合,使其成为网络编程和嵌入式编程领域的首选编程语言。JBuilder是Bonrla公司用于快速开发Java应用的一款优秀的集成开发环境,它以其友好的的开发界面,强大的组件支持等优点,得到了广大程序员的接受与认可。

本论文研究的是以Eclipse为开发环境,设计并开发一款扫雷游戏,其功能类似于Windows操作系统自带的扫雷游戏。论文首先介绍了制作游戏的整体思路及整个游戏设计的流程规划,然后介绍了雷区的布置及地雷随机产生的实现方法;重点介绍了在游戏过程中各事件的处理。

关键词:Java 扫雷 Eclipse

I

Abstract

Java is a cross-platform application software can write object-oriented programming language, the general term of the Java programming language by Sun Microsystems, Inc. in May 1995 and the Java platform. Hardware or operating system platform to install a Java platform, Java applications can run. Java is a simple, object-oriented, distributed, interpreted, robust security, the structure-neutral, portable, high-performance, multithreaded dynamic language. 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

Java in recent years as a new language, with its advantages of simplicity, platform independence and portability, get a wide range of applications, especially Java and the World Wide Web perfect binding, making it the network programming and embedded programming the preferred programming language. JBuilder is an excellent integrated development environment Borlan company for rapid development of Java applications, and its friendly development interface, powerful component supports, etc., has been accepted and recognized by the majority of programmers This thesis is based on the Eclipse development environment, design and develop a mine-sweeping game, its function is similar to minesweeper game that comes with Windows operating system. The paper first introduces the idea of making the game as a whole and the entire game design process planning, and randomly generated minefield layout and mine; focuses on the handling of events in the course of the game.

Key words: Java Minesweeping Eclipse

II

目 录

摘要 .................................................................................................................. Ⅰ Abstract ............................................................................................................ Ⅱ 绪论 .................................................................................................................... 1 1 开发环境 ........................................................................................................ 2 1.1 开发工具 ..................................................................................................... 2 1.2 应用环境 ..................................................................................................... 2 1.3 编写意义 ..................................................................................................... 2 1.4 任务设计内容 .............................................................................................. 3 2 可行性分析和需求分析 ................................................................................... 4 2.1 可行性分析 .................................................................................................. 4 2.2 需求分析 ..................................................................................................... 5 3 概要设计 ....................................................................................................... 6 4 详细设计 ........................................................................................................ 8 4.1 MineGame类 ............................................................................................... 8 4.2 MineArea类 ................................................................................................. 9 4.3 Block类 .................................................................................................... 11 4.4 BlockView类 ............................................................................................. 12 4.5 LayMines类 ............................................................................................... 12 4.6 Record类 ................................................................................................... 13 4.7 showRecord类 .............................................................................................. 14 5 系统测试 ...................................................................................................... 16 结论 .................................................................................................................. 20 致谢 .................................................................................................................. 21 参考文献 ........................................................................................................... 22

III


扫雷毕业设计.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:ABB机器人RAPID指令中文翻译

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: