From 8a297107f65cde090cb30adcd5e84cfcedf49527 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 10 Aug 2025 16:44:33 +0000 Subject: [PATCH] Fix index page display Ensure the guessing game is visible on the index page. --- src/pages/Index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/Index.tsx b/src/pages/Index.tsx index b943f53..a19dd5b 100644 --- a/src/pages/Index.tsx +++ b/src/pages/Index.tsx @@ -92,12 +92,12 @@ const allInteractives = [{ theme: 'Puzzles' }]; -// Featured interactives (3 fixed ones) -const featuredInteractives = allInteractives.filter(interactive => ['northcotts-game', 'ternary-search-trick', 'sikinia-parliament'].includes(interactive.id)); +// Featured interactives (4 fixed ones) +const featuredInteractives = allInteractives.filter(interactive => ['guessing-game', 'northcotts-game', 'ternary-search-trick', 'sikinia-parliament'].includes(interactive.id)); // Function to get random interactives (excluding featured ones) const getRandomInteractives = (count: number) => { - const availableInteractives = allInteractives.filter(interactive => !['northcotts-game', 'ternary-search-trick', 'sikinia-parliament'].includes(interactive.id)); + const availableInteractives = allInteractives.filter(interactive => !['guessing-game', 'northcotts-game', 'ternary-search-trick', 'sikinia-parliament'].includes(interactive.id)); const shuffled = [...availableInteractives].sort(() => 0.5 - Math.random()); return shuffled.slice(0, count); };