From 2747d6173a9fa5334c85c14a907c73903bed0be3 Mon Sep 17 00:00:00 2001 From: Naz Date: Wed, 16 Sep 2026 10:06:31 +0000 Subject: [PATCH] =?UTF-8?q?v3:=20=D0=BA=D1=83=D0=B1=D0=B8=D0=BA=20=D0=B0?= =?UTF-8?q?=D0=B2=D1=82=D0=BE=D0=BC=D0=B0=D1=82=D0=B8=D1=87=D0=B5=D1=81?= =?UTF-8?q?=D0=BA=D0=B8=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D1=88=D0=B8?= =?UTF-8?q?=D0=B2=D0=B0=D0=B5=D1=82=D1=81=D1=8F=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B5?= 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 1103f98..8eafba8 100644 --- a/index.html +++ b/index.html @@ -259,7 +259,7 @@
Действия
- +
@@ -561,14 +561,16 @@ function getRotationAxis(layer) { return 'Z'; } -function scramble() { +function scramble(reset = true) { if (isAnimating) return; const layers = ['U', 'D', 'L', 'R', 'F', 'B']; const moves = 20; let currentMove = 0; - resetGame(); + if (reset) { + resetGame(); + } moveHistory = []; function nextMove() { @@ -704,6 +706,7 @@ document.addEventListener('touchend', () => { }); initCube(); +setTimeout(() => scramble(), 500); let moveHistory = []; let hintTimeout = null;