forked from Spandan-Bhattacharya/Solve_it
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
109 lines (97 loc) · 3.83 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="stylesheet" href="./style.css">
<title>8x8 Sudoku Solver</title>
<script src="https://kit.fontawesome.com/b9199edbdd.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="../css_files/model.css">
</head>
<body background="../assets/bg.webp">
<nav class="navbar">
<div class="image">
<img src="../assets/bodylogo.png" alt="loading">
</div>
<div class="left-nav">
<ul>
<li><a href="../index.html">Home</a></li>
<li><a href="newContact.html">Contact</a></li>
<li><a href="about.html">About</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="contributors.html">Contributors</a></li>
<li><a href="#" onclick="openInstructions()">Instructions</a></li>
</ul>
</div>
</nav>
<h1 class="head">8x8 Sudoku Solver</h1>
<div class="info">
<div id="choose-size">
<label for="size">Difficulty:</label><br>
<select id="size" name="size" onchange="changeDifficulty(value)">
<option value="0" selected>Easy</option>
<option value="1">Medium</option>
<option value="2">Hard</option>
</select>
</div>
<div id="timer-container">
Time Remaining <br><span id="timer">10:00</span>
</div>
<div class="lives-container">
<span id="lives">Lives: <span id="hearts"><span id="h-1">❤️</span><span id="h-2">❤️</span><span
id="h-3">❤️</span></span></span>
</div>
</div>
<div class="sudoku-container">
<table>
<tbody id="sudoku-grid"></tbody>
<!--the grid wil be dynamically generated by JavaScript-->
</table>
</div>
<div>
<button id="solve-btn" class="btn-s">Solve Puzzle</button>
<button id="resetButton" class="btn-s">Reset</button>
</div>
<button class="backHome"><a href="../index.html">Back To Home</a></button>
<script src="./script.js"></script>
<div class="footer-container">
<div class="foot-head">
<h2>Solve it!</h2>
<p>
Solve it! is a website that contains solvers for common games like
Sudoku, Nonogram, Crosswords and more!
</p>
</div>
<div class="foot-navlinks">
<h3>Quick Links</h3>
<a href="#">Home</a>
<a href="/html_files/about.html">About</a>
<a href="/html_files/newContact.html">Contact</a>
<a href="/html_files/faq.html">FAQ</a>
<a href="/html_files/contributors.html">Contributors</a>
</div>
<div class="foot-social">
<h3>Social Links</h3>
<a href="https://twitter.com/TeamJWOC"><i class="fab fa-x-twitter" style="font-size: 1.25em; margin: 2px"></i></a>
<a href="https://github.com/Spandan-Bhattacharya"><i class="fa-brands fa-github"
style="font-size: 1.25em; margin: 2px"></i></a>
<a href="https://www.linkedin.com/in/spandan-bhattacharya-02509b227"><i class="fa-brands fa-linkedin"
style="font-size: 1.25em; margin: 2px"></i></a>
</div>
<div id="instructionsModal" class="modal">
<div class="modal-content">
<span class="close" onclick="closeInstructions()">×</span>
<h2>How to Play 8x8 Sudoku:</h2>
<p>
1. Each row, column, and 2x4 subgrid must contain all the numbers from 1 to 8.<br>
2. Click on a cell to select it, then enter a number from 1 to 8.<br>
3. Use the "Solve Puzzle" button to automatically fill in the correct numbers.<br>
4. Use the "Reset" button to clear all entered numbers and start over.<br>
5. You have 3 lives. Entering an incorrect number will reduce your lives by 1.<br>
6. Complete the puzzle before the timer runs out to win!
</p>
</div>
</div>
<script src="../javascript/instruction.js"></script>
</body>
</html>