Fix: Add puzzle to index

The "Parliament of Sikinia" puzzle was not visible on the index page. This commit adds the puzzle to the index page to resolve the issue.
This commit is contained in:
gpt-engineer-app[bot] 2025-07-24 03:05:33 +00:00
parent 98a2b98975
commit d455a6e752

View file

@ -86,11 +86,11 @@ const allInteractives = [{
}]; }];
// Featured interactives (3 fixed ones) // Featured interactives (3 fixed ones)
const featuredInteractives = allInteractives.filter(interactive => ['northcotts-game', 'ternary-search-trick', 'game-of-sim'].includes(interactive.id)); const featuredInteractives = allInteractives.filter(interactive => ['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', 'game-of-sim'].includes(interactive.id)); const availableInteractives = allInteractives.filter(interactive => !['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);
}; };