Skip to content

Commit

Permalink
Remove error when score is 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
Zikoat committed Jan 15, 2024
1 parent cc81398 commit 9cd5ccd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ export class Field extends EventEmitter {
}
this.score++;

if (this.score > 1000) throw Error("probably a recursive loop");
// generating of neighbors. we generate the cells when a neighbor is opened
const neighbors = this.getNeighbors(cell.x, cell.y);
for (let i = 0; i < neighbors.length; i++) {
Expand Down

0 comments on commit 9cd5ccd

Please sign in to comment.