1000字范文,内容丰富有趣,学习的好帮手!
1000字范文 > 扫雷java程序算法设计_基于Java的Windows扫雷游戏的设计与实现毕业论文+任务书+翻译及

扫雷java程序算法设计_基于Java的Windows扫雷游戏的设计与实现毕业论文+任务书+翻译及

时间:2023-05-28 14:13:43

相关推荐

扫雷java程序算法设计_基于Java的Windows扫雷游戏的设计与实现毕业论文+任务书+翻译及

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

摘 要

扫雷这款游戏有着很长的历史,从扫雷被开发出来到现在进行了无数次的优化,这款游戏变得越来越让人爱不释手了,简单的玩法在加上一个好看的游戏界面,每一处的细节都体现了扫雷的魅力。所以本次的毕业设计我将开发一款扫雷游戏。

本次毕业设计是以JAVA语言作为开发环境,使用Eclipse设计并开发一个类似Windows扫雷的游戏,实现其基本功能。论文首先介绍了课题背景,其次进行了需求分析及可行性分析;然后设计游戏流程,介绍雷区中的雷怎么安放和产生雷的随机算法;最后介绍游戏中可能会触发的各种时间,比如鼠标点击时间和清理掉没有雷的格子,其中鼠标事件包括点击到或没有点击到雷触发的事件和点击到重新开始以及菜单触发的事件,清理掉没有雷的格子就需要使用“递归”的方法来使该功能可以简单的实现。

关键词:扫雷;Eclipse;事件;递归

Design and Implementation of Mine Game

Abstract

Mine the game has a long history, from the mine was developed to now numerous optimization, the game is becoming more and more let a person fondle admiringly, simple style with a nice game interface, every detail reflects the charm of mine. So I'm going to develop a minesweeper game.

The graduate design study was designed with the JAVA language as a development environment, using Eclipse to design and develop a game like Windows minesweeper to implement its basic functions. The paper firstly introduces the background of the project and analyzes the requirements and feasibility analysis. Then the game process was designed to introduce the random algorithm of how the thunder in the minefield was placed and produced. Finally introduced the game may trigger a variety of time, such as a mouse click on the clear time and there is no ray of diamonds, mouse events including click to or no click to ray trigger events and click to restart and menu trigger events, clearing out squares no ray will need to use the "recursive" methods to make the function can be simple to implement.

Key words: Mine game; Visual Basic 6.0; Affairs; Recursion

目 录

摘 要i

Abstractii

1绪论1

1.1课题背景及意义1

1.2开发工具的选用及介绍1

1.3选题目的和意义2

1.4本文主要研究的内容2

2需求分析3

2.1可行性分析3

2.2扫雷游戏功能描述3

2.3扫雷游戏用例图4

2.4扫雷游戏功能需求4

2.5扫雷游戏界面需求5

2.6扫雷游戏功能模块6

3游戏的概要分析与设计7

3.1设计构想7

3.2流程规划8

3.3界面规划9

3.4算法思想9

4游戏的详细设计11

4.1游戏初始化11

4.2雷区的布置12

4.3游戏中主要模块的介绍与使用13

4.3.1鼠标事件13

4.3.2地雷及雷区表面探测情况14

4.3.3清除未靠近地雷的格子15

4.3.4游戏难度的选择16

4.3.5菜单栏的功能16

4.4游戏的判断16

4.4.1游戏成功完成16

4.4.2游戏失败16

4.5类设计17

4.5.1MineGame类17

4.5.2Block类18

4.5.3BlockView类19

4.5.4Record类20

4.5.5ShowRecord类21

4.5.6MineArea类22

4.5.7LayMines类23

5游戏实现25

5.1游戏难度自定义25

5.2扫雷28

5.2.1玩家通过右键进行扫雷,并显示小红旗28

5.2.2玩家因触碰到雷而导致游戏结束29

5.2.3玩家扫雷成功29

5.2.4玩家游戏数据显示30

5.3程序打包发布过程32

6游戏测试结果33

6.1游戏难度自定义测试33

6.2扫雷测试35

6.3玩家游戏数据显示测试37

6.4游戏数据显示区测试39

6.5递归算法测试43

结 论44

参考文献45

致 谢47

外文原文48

中文翻译55

扫雷java程序算法设计_基于Java的Windows扫雷游戏的设计与实现毕业论文+任务书+翻译及原文+源码+辅导视频...

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。