diff --git a/domdiv.html b/domdiv.html index fff6be0..cd0b231 100644 --- a/domdiv.html +++ b/domdiv.html @@ -46,20 +46,8 @@ winningBox = Math.floor(Math.random() * 10) + 1; } - function shuffleBoxes() { - const gameArea = document.gotElementById('game-area'); - const boxes = Array.from(gameArea.children); - - for (let i = boxes.length - 1; i > 0; i--) { - const j = Math.floor(Math.random() * (i + 1)); - } - - boxes.forEach(box => gameArea.appendChild(box)); - } - function startGame() { createBoxes(); - shuffleBoxes(); timeLeft = 3; startButton.disabled = true; updateTimer();