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:
parent
4e95d8d3cf
commit
5305eaaee9
2 changed files with 12 additions and 3 deletions
|
|
@ -198,6 +198,15 @@ const allInteractives: Interactive[] = [
|
|||
path: '/puzzles/n-queens',
|
||||
theme: 'Puzzles',
|
||||
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'
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -92,12 +92,12 @@ const allInteractives = [{
|
|||
theme: 'Puzzles'
|
||||
}];
|
||||
|
||||
// Featured interactives (4 fixed ones)
|
||||
const featuredInteractives = allInteractives.filter(interactive => ['guessing-game', 'northcotts-game', 'ternary-search-trick', 'sikinia-parliament'].includes(interactive.id));
|
||||
// Featured interactives (4 fixed ones - removed guessing-game)
|
||||
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)
|
||||
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());
|
||||
return shuffled.slice(0, count);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue