parent
836aaa6271
commit
a6c2776b06
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "minesweeper",
|
||||
"version": "0.0.63",
|
||||
"version": "0.0.64",
|
||||
"description": "Just Minesweeper!",
|
||||
"author": "Felix W. Dekker",
|
||||
"browser": "dist/bundle.js",
|
||||
|
|
|
@ -198,12 +198,13 @@ export class Field {
|
|||
if (this.coveredRemaining === this.size - this.mineCount) {
|
||||
if (this.startTimes.length !== this.endTimes.length)
|
||||
this.endTimes.push(Date.now());
|
||||
} else {
|
||||
} else if (this.coveredRemaining > 0) {
|
||||
this.lost = false;
|
||||
this.won = false;
|
||||
|
||||
if (this.startTimes.length === this.endTimes.length)
|
||||
this.startTimes.push(Date.now());
|
||||
}
|
||||
this.lost = false;
|
||||
this.won = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue