From 068530cfe7abf8554f2f34717eb9edbaa710d499 Mon Sep 17 00:00:00 2001 From: Anuj Sharma Date: Fri, 22 May 2026 14:21:06 +0530 Subject: [PATCH] Fix game not working issue --- web-app/js/projects.js | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/web-app/js/projects.js b/web-app/js/projects.js index aa047af..69ab14f 100644 --- a/web-app/js/projects.js +++ b/web-app/js/projects.js @@ -1,4 +1,4 @@ -// Project Registry +// Project Registry // Each project's HTML and logic lives in its own file under js/projects/ //To Prevent duplicate intialisation @@ -6,30 +6,6 @@ let activeProject=null; function getProjectHTML(projectName) { const projects = { - 'rock-paper-scissor': getRockPaperScissorHTML(), - 'dice-rolling': getDiceRollingHTML(), - 'coin-flip': getCoinFlipHTML(), - 'number-guessing': getNumberGuessingHTML(), - 'hangman': getHangmanHTML(), - 'flames': getFlamesHTML(), - 'emoji-memory': getEmojiMemoryGameHTML(), - 'fibonacci': getFibonacciHTML(), - 'progression-recognizer': getProgressionRecognizerHTML(), - 'pascal-triangle': getPascalTriangleHTML(), - 'armstrong': getArmstrongHTML(), - 'calculator': getCalculatorHTML(), - 'collatz': getCollatzHTML(), - 'prime-analyzer': getPrimeAnalyzerHTML(), - 'projectile-motion': getProjectileMotionHTML(), - 'coordinate-polar-transform': getCoordinatePolarTransformHTML(), - 'derivative-calculator': getDerivativeCalculatorHTML(), - 'morse-code': getMorseCodeHTML(), - 'tower-of-hanoi': getTowerOfHanoiHTML(), - 'number-converter': getNumberConverterHTML(), - 'typing-speed-tester': getTypingSpeedTesterHTML(), - 'snake-game': getsnakeGameHTML(), - 'password-forge': getPasswordForgeHTML(), - 'whack-a-mole': getWhackaMoleHTML(), 'tic-tac-toe': () => getTicTacToeHTML(), 'rock-paper-scissor': () => getRockPaperScissorHTML(), 'dice-rolling': () => getDiceRollingHTML(), @@ -1990,7 +1966,7 @@ function initFlames() { name2Input.addEventListener('keypress', (e) => { if (e.key === 'Enter') calculateFlames(); }); -} +}) // ============================================ // COLLATZ CONJECTURE @@ -3935,7 +3911,7 @@ function initializeProject(projectName) { initializers[projectName](); } } - +} //Removed Redundant game and project Logics and seperated them to different individual files located at (web-app/js/projects/) // ============================================================================