import Layout from "@/components/Layout"; import InteractiveCard from "@/components/InteractiveCard"; import { useNavigate } from "react-router-dom"; const Puzzles = () => { const navigate = useNavigate(); const puzzles = [ { id: "sikinia-parliament", title: "Parliament of Sikinia Puzzle", description: "Separate parliament members into two houses so each has at most one enemy in their house. A graph theory puzzle!", path: "/puzzles/sikinia-parliament", tags: ["Graph Theory", "Logic", "Coloring"], difficulty: "Intermediate" as const, duration: "5-20 min", participants: "1 player" }, { id: "plate-swap", title: "The Plate Swap Puzzle", description: "Arrange plates around a circular table so each person has their own plate. A challenging permutation puzzle!", path: "/puzzles/plate-swap", tags: ["Logic", "Permutation", "Strategy"], difficulty: "Advanced" as const, duration: "10-30 min", participants: "1 player" }, { id: "chessboard-repaint", title: "Chessboard Repaint Puzzle", description: "Repaint rows, columns, or 2×2 squares to achieve exactly one black square. A puzzle about parity and operations!", path: "/puzzles/chessboard-repaint", tags: ["Logic", "Parity", "Operations"], difficulty: "Advanced" as const, duration: "15-45 min", participants: "1 player" }, { id: "knights-puzzle", title: "Knights Exchange Puzzle", description: "Can the black and white knights swap places using legal chess moves? A classic puzzle on a 3×3 board.", path: "/knights-puzzle", tags: ["Chess", "Logic", "Classic"], difficulty: "Intermediate" as const, duration: "5-15 min", participants: "1 player" } ]; return (

Interactive Puzzles

Challenge your problem-solving skills with these educational puzzles designed to reinforce key concepts across multiple disciplines.

{puzzles.map((puzzle) => ( navigate(`${puzzle.path}?from=puzzles`)} /> ))}
); }; export default Puzzles;