-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
291 lines (249 loc) · 10.2 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sudoku</title>
<link rel="stylesheet" href="style.css">
<script defer src="main.js"></script>
</head>
<body>
<header>
<button id="nav-bar-button">
<div></div>
<div></div>
<div></div>
</button>
<p><a href="#credits">ǝɯɐɥs∀,</a>'s Sudoku</p>
<nav>
<a href="#introduction">Introduction</a>
<a href="#guide">Guide</a>
<a href="#manual">Manual</a>
<a href="#accessibility">Accessibility</a>
<a href="#credits">Credits</a>
</nav>
</header>
<button id="jump-to-top-button" style="--icon-url: url('Images/arrow_thick.png')"></button>
<section id="main-section">
<header>
<p id="difficulty-displayer">Difficulty: Easy</p>
<div id="timer-displayer">
<p>00:00</p>
<button disabled checked></button>
</div>
</header>
<section>
<div id="grid-table" uninitialized>
<p>Game is Paused</p>
<p>Start a New Puzzle</p>
<span>
<p>Pick a Difficulty:</p>
<div id="difficulty-button-container">
<button>Easy</button>
<button>Medium</button>
<button>Hard</button>
<button>Expert</button>
<button>Evil</button>
<button>Creation</button>
</div>
</span>
</div>
<div id="playing-button-container">
<div>
<div>
<button id="take-note-button" popUpInfo="off" style="--icon-url: url('Images/pencil.png')"
disabled></button>
<p>Notes</p>
</div>
<div>
<button id="erase-button" popUpInfo="none" style="--icon-url: url('Images/eraser.png')"
disabled></button>
<p>Erase</p>
</div>
<div>
<button id="hint-button" popUpInfo="3" style="--icon-url: url('Images/lamp.png')"
disabled></button>
<p>Hint</p>
</div>
</div>
<div id="digit-button-container"></div>
<div id="puzzle-button-container">
<button id="new-puzzle-button">New Puzzle</button>
<button id="solve-puzzle-button" hidden>Solve Puzzle</button>
</div>
</div>
</section>
</section>
<section id="extra-content-section">
<div id="introduction">
<h1>What's Sudoku?</h1>
<p>
<q>Sudoku</q> is a logic-based and numerical puzzle game, defined by its grid table.
<br><br>
In this game you'll be provided by a set of digits in a grid table, then you'll be asked to fill the
empty grids, hence solving the puzzle.
<br><br>
The game is split into <q>9</q> rows, columns, and squares, where each of which contains <q>9</q> grids.
</p>
</div>
<div id="guide">
<h1>How to Play</h1>
<p>
The goal of a <q>Sudoku Puzzle</q> is to fill all empty grids with digits from <q>1</q> to <q>9</q>.
<br><br>
Rules are simple: each row, column, and square, should only contain digits from <q>1</q> to
<q>9</q>, without
repeating any digit more than once.
<br><br>
When you start a new <q>Sudoku</q> puzzle, you're asked to choose certain difficulties that range from
<q>Easy</q> up
until to <q>Evil</q>, except for one of them which's not a real difficulty, and it's called
<q>Creation</q>.
<br><br>
<q>Creation Difficulty</q> allows you to insert your own <q>Sudoku Puzzle</q>, to let the <q>AI</q>
solve it for you, however, if you place any digit out of order, it wouldn't work obviously.
</p>
</div>
<div id="manual">
<h1>Website Guide</h1>
<p>
Currently the website is just a mere prototype, but it features almost everything of the essentials, but
it lacks some features: such as the <q>Navigation Bar Button</q> that's within the webstie header.
<br><br>
Use the <q>New Puzzle Button</q> to start a new puzzle, and the <q>Solve Puzzle Button</q> to
solve the puzzle if you couldn't solve it by yourself.
<br><br>
Whenever you create a new puzzle, a <q>Timer</q> starts ticking, indicating how long it'll take you to
solve
the puzzle, however, if you want to stop the <q>Timer</q> you could by toggling the <q>Timer Button</q>,
but that'd prevent you from continuing to solve the puzzle, till you toggle it back again.
</p>
<br>
<div>
<div class="icon" style="--icon-url: url('Images/pencil.png')"></div>
<p>
<q>Notes Button:</q>
<br>
Lets you toggle between the state of taking notes or assigning digits.
<br><br>
Taking notes can be useful to remember the digit that each grid may have.
</p>
</div>
<br>
<div>
<div class="icon" style="--icon-url: url('Images/eraser.png')"></div>
<p>
<q>Erase Button:</q>
<br>
Helps you to erase assigned digit from the selected grid when you've gone mistaken.
<br><br>
You cannot erase the grids that're generated by the puzzle though.
</p>
</div>
<br>
<div>
<div class="icon" style="--icon-url: url('Images/lamp.png')"></div>
<p>
<q>Hint Button:</q>
<br>
Gives you a hint to solve the puzzle by giving you the answer to a random grid, it can also
overwrite a grid you've assigned a wrong value to before.
<br><br>
This button can only be used for a maximum <q>3</q> numbers of time for each new puzzle.
</p>
</div>
</div>
<div id="accessibility">
<h1>Accessibility</h1>
<p>
If you're on a mobile device, you're likely to have no keyboard, so to fix this, the I introduced a set
of keypads to allow accessibility for everyone.
<br><br>
However, if you have a keyboard, you may have the luxury to use those shortcuts:
</p>
<ol>
<li>
<kbd style="--icon-url: url('Images/arrow_thick.png'); --rotation: 180deg;"></kbd>
<p>or</p>
<kbd>W</kbd>
<p>to move upwards.</p>
</li>
<li>
<kbd style="--icon-url: url('Images/arrow_thick.png'); --rotation: 0deg;"></kbd>
<p>or</p>
<kbd>S</kbd>
<p>to move downwards.</p>
</li>
<li>
<kbd style="--icon-url: url('Images/arrow_thick.png'); --rotation: 270deg;"></kbd>
<p>or</p>
<kbd>D</kbd>
<p>to move to right.</p>
</li>
<li>
<kbd style="--icon-url: url('Images/arrow_thick.png'); --rotation: 90deg;"></kbd>
<p>or</p>
<kbd>A</kbd>
<p>to move to left.</p>
</li>
<br>
<li>
<kbd>Enter</kbd>
<p>or</p>
<kbd>Space</kbd>
<p>to select or deselect a grid.</p>
</li>
<li>
<kbd>ESC</kbd>
<p>to deselect a grid.</p>
</li>
<br>
<li>
<p>All of these</p>
<kbd>1</kbd>
<kbd>2</kbd>
<kbd>3</kbd>
<kbd>4</kbd>
<kbd>5</kbd>
<kbd>6</kbd>
<kbd>7</kbd>
<kbd>8</kbd>
<kbd>9</kbd>
<p>to insert a digit to the selected grid.</p>
</li>
<br>
<li>
<kbd>+</kbd>
<p>to toggle between insertion and taking notes.</p>
</li>
<li>
<kbd>-</kbd>
<p>or</p>
<kbd>Delete</kbd>
<p>or</p>
<kbd>Backspace</kbd>
<p>to erase the value of a grid.</p>
</li>
<li>
<kbd>/</kbd>
<p>to ask for a hint.</p>
</li>
<li>
<kbd>=</kbd>
<p>to give up let the <q>AI</q> solve the puzzle.</p>
</li>
</ol>
</div>
<div id="credits">
<h1>Creator of the Website</h1>
<p>
All credits go to <q>ǝɯɐɥs∀,</q>, AKA:
<a href="https://github.com/AshameTheDestroyer/" target="_blank">@AshameTheDestroyer</a>.
<br><br>
You can visit my <q>GitHub</q> profile by clicking the username above.
<br><br>
Huge thanks for visiting my website project.
</p>
</div>
</section>
</body>
</html>