Remove Number Guessing Game

Remove "Number Guessing Game" from featured interactives on the homepage and add the inference playground to the Index listing at `/index`.
This commit is contained in:
gpt-engineer-app[bot] 2025-08-11 12:26:12 +00:00
parent 4e95d8d3cf
commit 5305eaaee9
2 changed files with 12 additions and 3 deletions

View file

@ -198,6 +198,15 @@ const allInteractives: Interactive[] = [
path: '/puzzles/n-queens', path: '/puzzles/n-queens',
theme: 'Puzzles', theme: 'Puzzles',
dateAdded: '2024-12-22' dateAdded: '2024-12-22'
},
{
id: 'rules-of-inference',
title: 'Rules of Inference Playground',
description: 'Practice applying resolution and equivalence rules to derive conclusions step by step in this interactive logic playground.',
tags: ['logic', 'inference', 'playground', 'rules', 'proofs', 'educational'],
path: '/discrete-math/foundations/rules-of-inference',
theme: 'Discrete Math',
dateAdded: '2024-12-23'
} }
]; ];

View file

@ -92,12 +92,12 @@ const allInteractives = [{
theme: 'Puzzles' theme: 'Puzzles'
}]; }];
// Featured interactives (4 fixed ones) // Featured interactives (4 fixed ones - removed guessing-game)
const featuredInteractives = allInteractives.filter(interactive => ['guessing-game', 'northcotts-game', 'ternary-search-trick', 'sikinia-parliament'].includes(interactive.id)); const featuredInteractives = allInteractives.filter(interactive => ['northcotts-game', 'ternary-search-trick', 'sikinia-parliament', 'binary-search-trick'].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 => !['guessing-game', 'northcotts-game', 'ternary-search-trick', 'sikinia-parliament'].includes(interactive.id)); const availableInteractives = allInteractives.filter(interactive => !['northcotts-game', 'ternary-search-trick', 'sikinia-parliament', 'binary-search-trick'].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);
}; };