<?php
/**
 * Developer: Molla Samser
 * Organization: RSK World
 * Website: https://rskworld.in
 * Email: help@rskworld.in, support@rskworld.in
 * Phone/WhatsApp: +91 93305 39277
 * Address: Nutanhat, Mongolkote, Purba Burdwan, West Bengal, India, 713147
 * Copyright © 2026 RSK World. All rights reserved.
 */
?>
<?php
$gameDetails = [
    'id' => 'tower-of-hanoi',
    'title' => 'Tower of Hanoi',
    'description' => 'Move all the disks from one rod to another following specific rules.',
    'image' => './tower-of-hanoi.png',
    'link' => './index.php',
    'technologies' => ['JavaScript', 'HTML5', 'CSS3'],
    'difficulty' => 'Intermediate',
    'rating' => 5,
    'category' => 'puzzle',
    'tags' => ['Logic', 'Strategy'],
    'features' => [
        'Multiple Disk Levels',
        'Step Counter',
        'Responsive Design'
    ]
];
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Tower of Hanoi: Ultimate 3D Logic Puzzle | Play Free Online 2026</title>
    <meta name="description" content="Play the ultimate Tower of Hanoi puzzle game online for free. Master logic, strategy, and math in this 3D-style brain training challenge. HTML5 games source code available.">
    <meta name="keywords" content="html5 games source code, html5 games download, free html5 games, html5 game source code, open source html5 games, html games download, free html5 games source code, html5 games, html5 games open source, html5 open source games, tower of hanoi, brain training, logic puzzles, strategy games, educational math games">
    <meta name="author" content="RSK World">
    <meta name="robots" content="index, follow">
    
    <!-- Open Graph / Facebook -->
    <meta property="og:type" content="website">
    <meta property="og:url" content="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
    <meta property="og:title" content="Tower of Hanoi: Ultimate 3D Logic Puzzle | Play Free Online 2026">
    <meta property="og:description" content="Master the Tower of Hanoi challenge. Enhance your logic and strategy skills with this premium HTML5 puzzle game.">
    <meta property="og:image" content="<?php echo htmlspecialchars($gameDetails['image']); ?>">
    
    <!-- Twitter -->
    <meta property="twitter:card" content="summary_large_image">
    <meta property="twitter:url" content="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
    <meta property="twitter:title" content="Tower of Hanoi: Ultimate 3D Logic Puzzle | Play Free Online 2026">
    <meta property="twitter:description" content="The best Tower of Hanoi online. High-quality brain training and logic puzzle.">
    <meta property="twitter:image" content="<?php echo htmlspecialchars($gameDetails['image']); ?>">
    
    <!-- Schema.org JSON-LD -->
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "VideoGame",
      "name": "Tower of Hanoi: Ultimate 3D Logic Puzzle",
      "description": "A classic mathematical puzzle game where you move disks between rods. Includes multiple difficulty levels and auto-solve features.",
      "genre": ["Puzzle", "Logic", "Strategy", "Educational"],
      "url": "https://rskworld.in/games/html5-games/puzzle-games/tower-of-hanoi/tower-of-hanoi/",
      "image": "https://rskworld.in/games/html5-games/puzzle-games/tower-of-hanoi/tower-of-hanoi/tower-of-hanoi.png",
      "author": {
        "@type": "Organization",
        "name": "RSK World",
        "url": "https://rskworld.in"
      },
      "operatingSystem": "Web Browser",
      "applicationCategory": "Game",
      "offers": {
        "@type": "Offer",
        "price": "0",
        "priceCurrency": "USD"
      }
    }
    </script>
    
    <!-- Favicon -->
    <link rel="icon" type="image/png" href="favicon.ico">
    
    <!-- CSS -->
    <link rel="stylesheet" href="styles.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7023015421128292"
     crossorigin="anonymous"></script>
</head>
<body>
    <?php /*
    Support, licensing, and custom development:
    Email: help@rskworld.in
    Phone/WhatsApp: +91 9330539277
    Website: RSK World
    Business Inquiries: help@rskworld.in
    🤝 Contributing
    */ ?>
    <?php include 'index.html'; ?>
    
    <!-- Game Metadata for JavaScript -->
    <script>
        const gameConfig = <?php echo json_encode($gameDetails); ?>;
        console.log('Game loaded:', gameConfig);
        
        // You can access game configuration in JavaScript like this:
        // console.log('Game title:', gameConfig.title);
        // console.log('Difficulty:', gameConfig.difficulty);
    </script>
    
    <!-- JavaScript is included via index.html -->
    
    <!-- Google Analytics (optional) -->
    <!--
    <script async src="https://www.googletagmanager.com/gtag/js?id=YOUR-GA-ID"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
        gtag('config', 'YOUR-GA-ID');
    </script>
    -->
</body>
</html>
