From 88ad319a08df03c69e8041729f7cf740cf8765d6 Mon Sep 17 00:00:00 2001 From: MasterGordon Date: Wed, 4 Mar 2026 23:53:56 +0100 Subject: [PATCH] fixed log factor --- backend/entities/game.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/entities/game.ts b/backend/entities/game.ts index a85d32f..a97c1a7 100644 --- a/backend/entities/game.ts +++ b/backend/entities/game.ts @@ -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.95), + width * height * 0.5 * (Math.log10(30 * (stage + 1)) * 0.095), ); // 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.95), + width * height * 0.5 * (Math.log10(30 * (stage + 1)) * 0.095), ); // expand mines array const newMines = Array.from({ length: newWidth }, () =>