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;