-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
63 lines (63 loc) · 3.58 KB
/
index.html
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html>
<head>
<title>8-Puzzle AI Solver</title>
<meta charset="UTF-8" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<meta name="description" content="Solve the 8puzzle game interactively with our AI-powered solver. Improve your skills and track progress with real-time feedback. Perfect for beginners and pros alike" />
<meta name="keywords" content="8-Puzzle, 8, Solver, Puzzle, Game, AI, Artificial Intelligence, Node, Algorithm, Mobile" />
<meta name="author" content="Daniel Maya" />
<!-- <meta name="robots" content="noindex, nofollow"> -->
<link rel="icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="style/general.css" />
<link rel="stylesheet" type="text/css" href="style/states.css" />
<link rel="stylesheet" type="text/css" href="style/stats.css" />
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet" type="text/css" />
<script>
if(navigator.userAgent.match(/iPhone/i)) {
var meta = document.createElement('meta');
meta.name = 'viewport';
meta.content = 'width=device-width, initial-scale=0.85';
document.getElementsByTagName('head')[0].appendChild(meta);
}
</script>
</head>
<body>
<div id="container-box" class="modal container ease" style="display: none;">
<div class="stats-box completed">
<button id="close-modal-button" class="close-modal">X</button>
</div>
</div>
<h1 class="title ease">8-Puzzle Solver</h1>
<div class="grid ease" id="grid">
<div class="grid-item no-select ease" id="5">5</div>
<div class="grid-item no-select ease" id="4">4</div>
<div class="grid-item no-select ease" id="1">1</div>
<div class="grid-item hidden" id="0">0</div>
<div class="grid-item no-select ease" id="2">2</div>
<div class="grid-item no-select ease" id="8">8</div>
<div class="grid-item no-select ease" id="3">3</div>
<div class="grid-item no-select ease" id="6">6</div>
<div class="grid-item no-select ease" id="7">7</div>
</div>
<!-- Add Assistant -->
<!-- <div class="btn-assist ease">
<button class="btn2 btn-box ease " onclick="displayAdjacentElements(650)">Show Adjacents</button>
<button class="btn2 btn-box ease" onclick="toggleCompleted()">Toggle Complete</button>
</div> -->
<div class="btn-panel">
<button class="btn btn-box ease" id="reset" onclick="resetGrid()">Reset</button>
<button class="btn btn-box ease" id="solve" onclick="solveGrid()">Solve</button>
<button class="btn btn-box ease" id="shuffle" onclick="shuffleGrid()">Shuffle</button>
<button class="btn btn-box ease remove" id="stats" onclick="openStatsModal()">Nerd Stats</button>
<button class="btn btn-box ease remove" id="solution" onclick="showSolution()">Show Solution</button>
</div>
</body>
<script src="./scripts/8puzzle-animations.js"></script>
<script src="./scripts/8puzzle-moves.js"></script>
<script src="./scripts/8puzzle-grid.js"></script>
<script src="./scripts/algo-implementation.js"></script>
<script src="./scripts/decision_tree.js"></script>
</html>