Skip to content

Commit

Permalink
Merge branch 'main' of github.com:linyisonger/H5.Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
linyisonger committed Jan 16, 2025
2 parents 8325930 + 5132291 commit 89cb2d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 086.扫雷.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
const gameConfig = {
rows: 9,
cols: 9,
bomb: 5,
bomb: 10,
}

const mainAssetConfig = {
Expand Down Expand Up @@ -257,7 +257,7 @@
* @param {Grid} grid
*/
function blockedExpansion(grid) {
expansion(grid, 1, map).filter(g => g.state != GRID_STATE.NONE).forEach(g => {
expansion(grid, 1, map).filter(g => g.state == GRID_STATE.BLOCK).forEach(g => {
g.state = GRID_STATE.NONE;
if (g != grid && g.type == GRID_TYPE.BLOCKED) blockedExpansion(g)
})
Expand Down Expand Up @@ -291,6 +291,7 @@
bombs.forEach(b => b.state = GRID_STATE.FLAG)
stopTime();
updEmote(EMOTE_TYPE.COOL)
drawNums(countCtx, String(0).padStart(3, '0'))
}
}

Expand Down
1 change: 1 addition & 0 deletions examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,6 @@
084.qrcode.js 二维码.html
085.face-api.js 人脸对比.html
086.扫雷.html
087.新建窗口大小.html
blog.html
index.html

0 comments on commit 89cb2d1

Please sign in to comment.