Add guessing game to data structures

Add the guessing game component to the "Data Structures and Algorithms" theme and update the index to include it.
This commit is contained in:
gpt-engineer-app[bot] 2025-08-10 15:51:03 +00:00
parent c25a17a74a
commit 1ad16d355c
2 changed files with 15 additions and 0 deletions

View file

@ -6,6 +6,7 @@ import { Search } from 'lucide-react';
import Layout from '@/components/Layout';
import BinarySearchTrick from '@/components/BinarySearchTrick';
import TernarySearchTrick from '@/components/TernarySearchTrick';
import GuessingGame from '@/components/GuessingGame';
interface Interactive {
id: string;
@ -16,6 +17,13 @@ interface Interactive {
}
const interactives: Interactive[] = [
{
id: 'guessing-game',
title: 'Number Guessing Game',
description: 'Experience different search algorithms through interactive gameplay. Compare random, linear, and binary search strategies!',
tags: ['algorithms', 'search', 'educational', 'interactive', 'binary-search', 'computer-science'],
component: GuessingGame
},
{
id: 'binary-search-trick',
title: 'Binary Search Magic Trick',

View file

@ -7,6 +7,13 @@ import Layout from "@/components/Layout";
// All interactives data
const allInteractives = [{
id: 'guessing-game',
title: 'Number Guessing Game',
description: 'Experience different search algorithms through interactive gameplay. Compare random, linear, and binary search strategies!',
tags: ['algorithms', 'search', 'educational', 'interactive'],
path: '/games/guessing',
theme: 'Data Structures'
}, {
id: 'binary-number-game',
title: 'Binary Number Representation',
description: 'Learn how numbers are represented in binary (base-2) format through an interactive guessing game.',