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:
parent
c25a17a74a
commit
1ad16d355c
2 changed files with 15 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ import { Search } from 'lucide-react';
|
||||||
import Layout from '@/components/Layout';
|
import Layout from '@/components/Layout';
|
||||||
import BinarySearchTrick from '@/components/BinarySearchTrick';
|
import BinarySearchTrick from '@/components/BinarySearchTrick';
|
||||||
import TernarySearchTrick from '@/components/TernarySearchTrick';
|
import TernarySearchTrick from '@/components/TernarySearchTrick';
|
||||||
|
import GuessingGame from '@/components/GuessingGame';
|
||||||
|
|
||||||
interface Interactive {
|
interface Interactive {
|
||||||
id: string;
|
id: string;
|
||||||
|
|
@ -16,6 +17,13 @@ interface Interactive {
|
||||||
}
|
}
|
||||||
|
|
||||||
const interactives: 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',
|
id: 'binary-search-trick',
|
||||||
title: 'Binary Search Magic Trick',
|
title: 'Binary Search Magic Trick',
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,13 @@ import Layout from "@/components/Layout";
|
||||||
|
|
||||||
// All interactives data
|
// All interactives data
|
||||||
const allInteractives = [{
|
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',
|
id: 'binary-number-game',
|
||||||
title: 'Binary Number Representation',
|
title: 'Binary Number Representation',
|
||||||
description: 'Learn how numbers are represented in binary (base-2) format through an interactive guessing game.',
|
description: 'Learn how numbers are represented in binary (base-2) format through an interactive guessing game.',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue