Auto-chord empty square even with flags

Fixes #92.
This commit is contained in:
Florine W. Dekker 2020-10-22 17:05:06 +02:00
parent 4f1261b14b
commit 6a003c0dd7
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "minesweeper",
"version": "0.82.2",
"version": "0.82.3",
"description": "Just Minesweeper!",
"author": "Felix W. Dekker",
"browser": "dist/bundle.js",

View File

@ -324,7 +324,7 @@ export class Field {
));
if (next.hasMine) break;
if (next.getNeighborCount(it => it.hasMine || it.hasFlag || it.hasMark) === 0)
if (next.getNeighborCount(it => it.hasMine) === 0)
uncoverQueue.push(...next.neighbors.filter(it => it.isCovered));
}
});