文件名称:minesweep
介绍说明--下载内容均来自于网络,请自行研究使用
扫雷游戏是以BorderLayout为布局,分别在CENTER与EAST中加入JPanel用于构建游戏界面和基本的信息与控制。
右方的JTextField中提供设定雷数的功能。游戏可通过左键与右键的操作进行。
主类包括:
1:主类的构造方法(Main),设定布局与各种监听器的注册;
2:初始化方法(init),每当调用时重新随机埋雷,代表新一轮游戏的开始;
3:搜索方法(dfs):是用深度优先的搜索方法,通过对网格的hash[][]达到扫雷中需要的游戏效果。
打包生成的jar文件放在My_project->dist下。-minesweeper game
右方的JTextField中提供设定雷数的功能。游戏可通过左键与右键的操作进行。
主类包括:
1:主类的构造方法(Main),设定布局与各种监听器的注册;
2:初始化方法(init),每当调用时重新随机埋雷,代表新一轮游戏的开始;
3:搜索方法(dfs):是用深度优先的搜索方法,通过对网格的hash[][]达到扫雷中需要的游戏效果。
打包生成的jar文件放在My_project->dist下。-minesweeper game
(系统自动生成,下载前可以参看下载内容)
下载文件列表
My_project\build\classes\my_project\icon\cry.gif
..........\.....\.......\..........\....\flag.jpg
..........\.....\.......\..........\....\good.gif
..........\.....\.......\..........\....\mine.jpg
..........\.....\.......\..........\....\smile.gif
..........\.....\.......\..........\icon
..........\.....\.......\..........\Main$1.class
..........\.....\.......\..........\Main$2.class
..........\.....\.......\..........\Main$Action.class
..........\.....\.......\..........\Main$Rightaction.class
..........\.....\.......\..........\Main.class
..........\.....\.......\my_project
..........\.....\classes
..........\.....\empty
..........\build
..........\build.xml
..........\dist\README.TXT
..........\....\扫雷.jar
..........\dist
..........\manifest.mf
..........\nbproject\build-impl.xml
..........\.........\genfiles.properties
..........\.........\private\config.properties
..........\.........\.......\private.properties
..........\.........\.......\private.xml
..........\.........\private
..........\.........\project.properties
..........\.........\project.xml
..........\nbproject
..........\src\my_project\icon\cry.gif
..........\...\..........\....\flag.jpg
..........\...\..........\....\good.gif
..........\...\..........\....\mine.jpg
..........\...\..........\....\smile.gif
..........\...\..........\....\Thumbs.db
..........\...\..........\icon
..........\...\..........\Main.java
..........\...\my_project
..........\src
..........\test
My_project
..........\.....\.......\..........\....\flag.jpg
..........\.....\.......\..........\....\good.gif
..........\.....\.......\..........\....\mine.jpg
..........\.....\.......\..........\....\smile.gif
..........\.....\.......\..........\icon
..........\.....\.......\..........\Main$1.class
..........\.....\.......\..........\Main$2.class
..........\.....\.......\..........\Main$Action.class
..........\.....\.......\..........\Main$Rightaction.class
..........\.....\.......\..........\Main.class
..........\.....\.......\my_project
..........\.....\classes
..........\.....\empty
..........\build
..........\build.xml
..........\dist\README.TXT
..........\....\扫雷.jar
..........\dist
..........\manifest.mf
..........\nbproject\build-impl.xml
..........\.........\genfiles.properties
..........\.........\private\config.properties
..........\.........\.......\private.properties
..........\.........\.......\private.xml
..........\.........\private
..........\.........\project.properties
..........\.........\project.xml
..........\nbproject
..........\src\my_project\icon\cry.gif
..........\...\..........\....\flag.jpg
..........\...\..........\....\good.gif
..........\...\..........\....\mine.jpg
..........\...\..........\....\smile.gif
..........\...\..........\....\Thumbs.db
..........\...\..........\icon
..........\...\..........\Main.java
..........\...\my_project
..........\src
..........\test
My_project