Fix index page display

Ensure the guessing game is visible on the index page.
This commit is contained in:
gpt-engineer-app[bot] 2025-08-10 16:44:33 +00:00
parent 1ad16d355c
commit 8a297107f6

View file

@ -92,12 +92,12 @@ const allInteractives = [{
theme: 'Puzzles' theme: 'Puzzles'
}]; }];
// Featured interactives (3 fixed ones) // Featured interactives (4 fixed ones)
const featuredInteractives = allInteractives.filter(interactive => ['northcotts-game', 'ternary-search-trick', 'sikinia-parliament'].includes(interactive.id)); 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) // Function to get random interactives (excluding featured ones)
const getRandomInteractives = (count: number) => { 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()); const shuffled = [...availableInteractives].sort(() => 0.5 - Math.random());
return shuffled.slice(0, count); return shuffled.slice(0, count);
}; };