adjusted minesweeper formular

This commit is contained in:
MasterGordon 2026-03-04 23:43:27 +01:00
parent d09f79d524
commit b5da1dc60d
1 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ const expandBoard = (serverGame: ServerGame) => {
const newHeight = Math.floor(Math.min(height + 7, height * 1.5));
const newWidth = width;
const newMinesCount = Math.floor(
width * height * 0.5 * (Math.log10(30 * stage) * 0.1),
width * height * 0.5 * (Math.log10(30 * stage) * 0.95),
);
// expand mines array
const newMines = Array.from({ length: newWidth }, () =>
@ -115,7 +115,7 @@ const expandBoard = (serverGame: ServerGame) => {
const newWidth = Math.floor(Math.min(width + 7, width * 1.5));
const newHeight = height;
const newMinesCount = Math.floor(
width * height * 0.5 * (Math.log10(30 * stage) * 0.1),
width * height * 0.5 * (Math.log10(30 * stage) * 0.95),
);
// expand mines array
const newMines = Array.from({ length: newWidth }, () =>