Ability to loose game

This commit is contained in:
2024-02-18 09:50:33 +01:00
parent e21910547a
commit 8219634b9c
8 changed files with 113 additions and 28 deletions
-3
View File
@@ -31,9 +31,6 @@ export const genBombs = (grid: GridType, difficulty: Difficulty) => {
bombs = surface * 0.15;
}
console.log(difficulty);
// console.log(surface, surface * 0.05, bombs);
bombs = Math.floor(bombs);
for (let i = 1; i <= bombs; i++) {
let needRegenerate = false;