We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 56835f6 + bbc36b1 commit cad8c9dCopy full SHA for cad8c9d
2 files changed
.vscode/settings.json
@@ -0,0 +1,3 @@
1
+{
2
+ "liveServer.settings.port": 5501
3
+}
web-app/js/projects.js
@@ -3292,6 +3292,11 @@ function initTowerOfHanoi() {
3292
3293
async function solve() {
3294
if (isAnimating) return;
3295
+
3296
+ if (diskCount < 3 || diskCount > 7) {
3297
+ alert("Visualization supports only 3 to 7 disks");
3298
+ return;
3299
+ }
3300
3301
isAnimating = true;
3302
solveBtn.disabled = true;
0 commit comments