import React from 'react'; import { useGridStore } from '../../store/gridStore'; import { Card, CardContent, CardHeader, CardTitle } from '../ui/card'; import { Button } from '../ui/button'; import { Brain } from 'lucide-react'; import type { Algorithm } from '../../types'; const ALGORITHMS: { code: Algorithm; name: string; category: 'uninformed' | 'informed' }[] = [ { code: 'BF', name: 'Breadth-First', category: 'uninformed' }, { code: 'DF', name: 'Depth-First', category: 'uninformed' }, { code: 'ID', name: 'Iterative Deepening', category: 'uninformed' }, { code: 'UC', name: 'Uniform Cost', category: 'uninformed' }, { code: 'GR1', name: 'Greedy (Manhattan)', category: 'informed' }, { code: 'GR2', name: 'Greedy (Euclidean)', category: 'informed' }, { code: 'AS1', name: 'A* (Manhattan)', category: 'informed' }, { code: 'AS2', name: 'A* (Tunnel)', category: 'informed' }, ]; export const AlgorithmSelector: React.FC = () => { const { selectedAlgorithm, setAlgorithm } = useGridStore(); const uninformed = ALGORITHMS.filter(a => a.category === 'uninformed'); const informed = ALGORITHMS.filter(a => a.category === 'informed'); return ( Algorithm

Uninformed

{uninformed.map((algo) => ( ))}

Informed

{informed.map((algo) => ( ))}
); }; export default AlgorithmSelector;