CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - hash
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - hash - List
[
Other Riddle games
]
minesweep
DL : 0
扫雷游戏是以BorderLayout为布局,分别在CENTER与EAST中加入JPanel用于构建游戏界面和基本的信息与控制。 右方的JTextField中提供设定雷数的功能。游戏可通过左键与右键的操作进行。 主类包括: 1:主类的构造方法(Main),设定布局与各种监听器的注册; 2:初始化方法(init),每当调用时重新随机埋雷,代表新一轮游戏的开始; 3:搜索方法(dfs):是用深度优先的搜索方法,通过对网格的hash[][]达到扫雷中需要的游戏效果。 打包生成的jar文件放在My_project->dist下。-minesweeper game
Date
: 2025-12-30
Size
: 54kb
User
:
zhuwc
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.