扫雷java程序算法设计_基于Java的Windows扫雷游戏的设计与实现毕业论文+任务书+翻译及原文+源码+辅导视频...
基于Java的Windows掃雷游戲的設(shè)計(jì)與實(shí)現(xiàn)
摘 要
掃雷這款游戲有著很長(zhǎng)的歷史,從掃雷被開(kāi)發(fā)出來(lái)到現(xiàn)在進(jìn)行了無(wú)數(shù)次的優(yōu)化,這款游戲變得越來(lái)越讓人愛(ài)不釋手了,簡(jiǎn)單的玩法在加上一個(gè)好看的游戲界面,每一處的細(xì)節(jié)都體現(xiàn)了掃雷的魅力。所以本次的畢業(yè)設(shè)計(jì)我將開(kāi)發(fā)一款掃雷游戲。
本次畢業(yè)設(shè)計(jì)是以JAVA語(yǔ)言作為開(kāi)發(fā)環(huán)境,使用Eclipse設(shè)計(jì)并開(kāi)發(fā)一個(gè)類似Windows掃雷的游戲,實(shí)現(xiàn)其基本功能。論文首先介紹了課題背景,其次進(jìn)行了需求分析及可行性分析;然后設(shè)計(jì)游戲流程,介紹雷區(qū)中的雷怎么安放和產(chǎn)生雷的隨機(jī)算法;最后介紹游戲中可能會(huì)觸發(fā)的各種時(shí)間,比如鼠標(biāo)點(diǎn)擊時(shí)間和清理掉沒(méi)有雷的格子,其中鼠標(biāo)事件包括點(diǎn)擊到或沒(méi)有點(diǎn)擊到雷觸發(fā)的事件和點(diǎn)擊到重新開(kāi)始以及菜單觸發(fā)的事件,清理掉沒(méi)有雷的格子就需要使用“遞歸”的方法來(lái)使該功能可以簡(jiǎn)單的實(shí)現(xiàn)。
關(guān)鍵詞:掃雷;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開(kāi)發(fā)工具的選用及介紹1
1.3選題目的和意義2
1.4本文主要研究的內(nèi)容2
2需求分析3
2.1可行性分析3
2.2掃雷游戲功能描述3
2.3掃雷游戲用例圖4
2.4掃雷游戲功能需求4
2.5掃雷游戲界面需求5
2.6掃雷游戲功能模塊6
3游戲的概要分析與設(shè)計(jì)7
3.1設(shè)計(jì)構(gòu)想7
3.2流程規(guī)劃8
3.3界面規(guī)劃9
3.4算法思想9
4游戲的詳細(xì)設(shè)計(jì)11
4.1游戲初始化11
4.2雷區(qū)的布置12
4.3游戲中主要模塊的介紹與使用13
4.3.1鼠標(biāo)事件13
4.3.2地雷及雷區(qū)表面探測(cè)情況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類設(shè)計(jì)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游戲?qū)崿F(xiàn)25
5.1游戲難度自定義25
5.2掃雷28
5.2.1玩家通過(guò)右鍵進(jìn)行掃雷,并顯示小紅旗28
5.2.2玩家因觸碰到雷而導(dǎo)致游戲結(jié)束29
5.2.3玩家掃雷成功29
5.2.4玩家游戲數(shù)據(jù)顯示30
5.3程序打包發(fā)布過(guò)程32
6游戲測(cè)試結(jié)果33
6.1游戲難度自定義測(cè)試33
6.2掃雷測(cè)試35
6.3玩家游戲數(shù)據(jù)顯示測(cè)試37
6.4游戲數(shù)據(jù)顯示區(qū)測(cè)試39
6.5遞歸算法測(cè)試43
結(jié)??? 論44
參考文獻(xiàn)45
致??? 謝47
外文原文48
中文翻譯55
總結(jié)
以上是生活随笔為你收集整理的扫雷java程序算法设计_基于Java的Windows扫雷游戏的设计与实现毕业论文+任务书+翻译及原文+源码+辅导视频...的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: js 数组对象sort()排序(升序降序
- 下一篇: JavaScript如何调用Python