From b2072d83bbe642969c7d8c5cfe2d59a036b701e2 Mon Sep 17 00:00:00 2001 From: Naz Date: Wed, 16 Sep 2026 10:15:52 +0000 Subject: [PATCH] =?UTF-8?q?v6:=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D1=88=D0=B0=D1=82=D1=8C=20?= =?UTF-8?q?=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=B5=D1=82=20=D0=BF=D0=BE?= =?UTF-8?q?=D1=81=D0=BB=D0=B5=20=D0=BF=D0=BE=D0=B1=D0=B5=D0=B4=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 10c44a1..004457f 100644 --- a/index.html +++ b/index.html @@ -576,16 +576,19 @@ function getRotationAxis(layer) { } function scramble(reset = true) { - if (isAnimating) return; - const layers = ['U', 'D', 'L', 'R', 'F', 'B']; const moves = 20; let currentMove = 0; if (reset) { resetGame(); + } else { + document.getElementById('winMessage').classList.remove('show'); + document.getElementById('overlay').classList.remove('show'); + moveHistory = []; } - moveHistory = []; + + isAnimating = false; function nextMove() { if (currentMove >= moves) return;