improved log factor

This commit is contained in:
MasterGordon 2026-03-04 23:55:26 +01:00
parent 88ad319a08
commit 295c864a3d
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 + 1)) * 0.095),
width * height * 0.5 * (Math.log10(30 * (stage + 1)) * 0.098),
);
// 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 + 1)) * 0.095),
width * height * 0.5 * (Math.log10(30 * (stage + 1)) * 0.098),
);
// expand mines array
const newMines = Array.from({ length: newWidth }, () =>