Skip to content

Commit

Permalink
change shuffle speed
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillDyachkovskiy committed Oct 29, 2022
1 parent bc39b35 commit 0c103a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const FIELD = document.querySelector<HTMLDivElement>('.field');
const FIELD_ITEMS = Array.from(document.querySelectorAll<HTMLButtonElement>('.field__item'));

const SHUFFLE_BUTTON = document.querySelector<HTMLButtonElement>('.shuffle');
const SWAPS_COUNT = 50;
const SWAPS_COUNT = 100;

function main() {
if (FIELD_ITEMS.length !== 16) throw Error('Должно быть 16 элементов');
Expand Down Expand Up @@ -96,7 +96,7 @@ function main() {
if (counter > SWAPS_COUNT) {
clearInterval(interval);
}
}, 100)
}, 60)
})
}

Expand Down

0 comments on commit 0c103a9

Please sign in to comment.