150 lines
6.0 KiB
HTML
150 lines
6.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>MAZE GENERATOR</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="/static/css/styles.css">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<header class="header">
|
|
<h1 class="title">MAZE GENERATOR</h1>
|
|
<p class="subtitle">8 ALGORITHMS • INFINITE POSSIBILITIES</p>
|
|
</header>
|
|
|
|
<div class="main-grid">
|
|
<!-- Control Panel -->
|
|
<div class="panel control-panel">
|
|
<h2 class="panel-title">CONTROLS</h2>
|
|
|
|
<!-- Generation Controls -->
|
|
<div class="control-group">
|
|
<label class="label">ALGORITHM</label>
|
|
<select id="algorithm" class="select-input">
|
|
<option value="recursive_backtracking">Recursive Backtracking</option>
|
|
<option value="kruskal">Kruskal's Algorithm</option>
|
|
<option value="prim">Prim's Algorithm</option>
|
|
<option value="sidewinder">Sidewinder</option>
|
|
<option value="hunt_and_kill">Hunt & Kill</option>
|
|
<option value="eller">Eller's Algorithm</option>
|
|
<option value="wilson">Wilson's Algorithm</option>
|
|
<option value="aldous_broder">Aldous-Broder</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="control-row">
|
|
<div class="control-group">
|
|
<label class="label">ROWS</label>
|
|
<input type="number" id="rows" class="text-input" min="5" max="50" value="15">
|
|
</div>
|
|
<div class="control-group">
|
|
<label class="label">COLS</label>
|
|
<input type="number" id="cols" class="text-input" min="5" max="50" value="15">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="label">SEED (OPTIONAL)</label>
|
|
<input type="number" id="seed" class="text-input" placeholder="Random">
|
|
</div>
|
|
|
|
<button id="generateBtn" class="btn btn-primary">
|
|
1. GENERATE MAZE
|
|
</button>
|
|
|
|
<!-- Solving Controls -->
|
|
<button id="solveDfsBtn" class="btn btn-secondary">
|
|
6. SOLVE (DFS)
|
|
</button>
|
|
<button id="solveBfsBtn" class="btn btn-secondary">
|
|
7. SOLVE (BFS)
|
|
</button>
|
|
|
|
<!-- Animation Controls -->
|
|
<div id="animationControls" class="animation-controls" style="display: none;">
|
|
<h3 class="control-title">ANIMATION</h3>
|
|
<div class="control-buttons">
|
|
<button id="pauseBtn" class="btn btn-control">PAUSE</button>
|
|
<button id="stopBtn" class="btn btn-control">STOP</button>
|
|
</div>
|
|
<div class="control-group">
|
|
<label class="label">SPEED</label>
|
|
<input type="range" id="speedSlider" class="speed-slider" min="1" max="100" value="50">
|
|
<div class="speed-labels">
|
|
<span>SLOW</span>
|
|
<span>FAST</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Action Buttons -->
|
|
<button id="visualizeBtn" class="btn btn-accent">
|
|
2. VISUALIZE
|
|
</button>
|
|
<button id="downloadBtn" class="btn btn-accent">
|
|
3. DOWNLOAD IMAGE
|
|
</button>
|
|
<button id="saveBtn" class="btn btn-accent">
|
|
4. SAVE TO FILE
|
|
</button>
|
|
<button id="loadBtn" class="btn btn-accent">
|
|
5. LOAD FROM FILE
|
|
</button>
|
|
<button id="analyzeBtn" class="btn btn-accent">
|
|
8. ANALYZE MAZE
|
|
</button>
|
|
<button id="benchmarkBtn" class="btn btn-accent">
|
|
9. BENCHMARK
|
|
</button>
|
|
</div>
|
|
|
|
<!-- Visualization Area -->
|
|
<div class="panel viz-panel">
|
|
<h2 class="panel-title">VISUALIZATION</h2>
|
|
<div class="canvas-container">
|
|
<canvas id="mazeCanvas"></canvas>
|
|
</div>
|
|
<div id="mazeInfo" class="info-box"></div>
|
|
</div>
|
|
|
|
<!-- Results Panel -->
|
|
<div class="panel results-panel">
|
|
<h2 class="panel-title">RESULTS</h2>
|
|
<div id="resultsContent" class="results-content">
|
|
<p class="placeholder-text">Generate a maze to see results...</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Footer -->
|
|
<footer class="footer">
|
|
<div class="footer-content">
|
|
<div class="copyleft">
|
|
<span class="copyleft-symbol">🄯</span>
|
|
<span>COPYLEFT 2025 - ALL WRONGS RESERVED</span>
|
|
</div>
|
|
<div class="footer-message">
|
|
Made with ❤️ and Python in New Jersey
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<!-- Load Modal -->
|
|
<div id="loadModal" class="modal">
|
|
<div class="modal-content">
|
|
<h2 class="modal-title">LOAD MAZE</h2>
|
|
<div id="fileList" class="file-list"></div>
|
|
<button id="closeModal" class="btn btn-secondary">CLOSE</button>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="/static/js/app.js"></script>
|
|
<script src="/static/js/visualizer.js"></script>
|
|
</body>
|
|
</html>
|