文件名称:javasaorei
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 23kb
- 下载次数:
- 0次
- 提 供 者:
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
扫雷程序还会自动展开已确定没有雷的雷区。如果a[3][4]周围雷数为1,a[2][3]已被标示为地雷,那么a[2][4],a[2][5],a[3][3],a[3][5],a[4][3],a[4][4],a[4][5]将被展开,一直波及到不可确定的雷区。这也是实现的关键。我们可以把数组的元素设定为一个类对象,它们所属的类设定这样的一个事件:在被展开时,检查周围的雷数是否与周围标示出来的雷数相等,如果相等则展开周围未标示的雷区。这样新的雷区展开又触发这个事件,就这样递归下去,一直蔓延到不可展开的雷区。相信在了解以上两个要点后,把雷区这个类编写完全(如添加是否有雷标记,是否展开标记,周围雷数等,双击,左右单击的鼠标事件等),实现扫雷程序应是十分简单的一件事。-err
(系统自动生成,下载前可以参看下载内容)
下载文件列表
java扫雷游戏
............\GameAPI_Demo.java
............\GameAPI_Demo.MF
............\GameAPI_Game.java
............\GameScreen.java
............\IntroScreen.java
............\MyScreen.java
............\Readme.txt
............\res
............\...\aliens.bin
............\...\aliens.mask
............\...\ball.bin
............\...\ball.mask
............\...\bird.bin
............\...\bird.mask
............\...\credit.bin
............\...\explo.bin
............\...\explo.mask
............\...\game.bin
............\...\shot.bin
............\...\shot.mask
............\...\show$1.class
............\...\show$ACanvas.class
............\...\show.class
............\...\show.java
............\...\spr1.bin
............\...\spr1.mask
............\...\spr2.bin
............\...\spr2.mask
............\...\spr3.bin
............\...\spr3.mask
............\...\spr4.bin
............\...\spr4.mask
............\...\spr5.bin
............\...\spr5.mask
............\...\sship.bin
............\...\sship.mask
............\...\tiles.bin
............\...\tiles2.bin
............\...\tiles2.mask
............\...\title.bin
............\TiledScreen.java
............\WhoScreen.java
............\GameAPI_Demo.java
............\GameAPI_Demo.MF
............\GameAPI_Game.java
............\GameScreen.java
............\IntroScreen.java
............\MyScreen.java
............\Readme.txt
............\res
............\...\aliens.bin
............\...\aliens.mask
............\...\ball.bin
............\...\ball.mask
............\...\bird.bin
............\...\bird.mask
............\...\credit.bin
............\...\explo.bin
............\...\explo.mask
............\...\game.bin
............\...\shot.bin
............\...\shot.mask
............\...\show$1.class
............\...\show$ACanvas.class
............\...\show.class
............\...\show.java
............\...\spr1.bin
............\...\spr1.mask
............\...\spr2.bin
............\...\spr2.mask
............\...\spr3.bin
............\...\spr3.mask
............\...\spr4.bin
............\...\spr4.mask
............\...\spr5.bin
............\...\spr5.mask
............\...\sship.bin
............\...\sship.mask
............\...\tiles.bin
............\...\tiles2.bin
............\...\tiles2.mask
............\...\title.bin
............\TiledScreen.java
............\WhoScreen.java