-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (34 loc) · 1.03 KB
/
index.html
File metadata and controls
43 lines (34 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>8 Queens Puzzle Solver</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="container">
<h1>8 Queens Puzzle Solver</h1>
<div class="controls">
<!-- Main actions -->
<button id="nextBtn">Next Step</button>
<button id="resetBtn">Restart</button>
<!-- NEW: Auto-play + Speed -->
<button id="autoBtn" title="Run automatically">Auto</button>
<button id="speedBtn" title="Change auto speed">Speed: 2x</button>
</div>
<div class="main">
<!-- LEFT: state vector -->
<aside class="left">
<h3>State Vector</h3>
<ol id="stateVector" class="statevec">
</ol>
</aside>
<!-- CENTER: chess board -->
<div id="board" class="chessboard"></div>
</div>
<div id="status" class="status" aria-live="polite"></div>
</div>
<script src="solver.js"></script>
</body>
</html>