generated from edyst/sudoku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsudoku.html
129 lines (129 loc) · 8.79 KB
/
sudoku.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sudoku</title>
<link rel="stylesheet" href="style.css" />
<script src="index.js"></script>
</head>
<body onload="loadFunc()">
<div >
<div>
<h1 style="text-align: center; font-size: 5vw;">SUDOKU</h1>
</div>
<div class="buttons">
<button onclick="easyMaze()">Easy</button>
<button onclick="mediumMaze()">Medium</button>
<button onclick="hardMaze()">Hard</button>
</div>
<div>
<table>
<tr>
<td><input id="0" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="1" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="2" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="3" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="4" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="5" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="6" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="7" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="8" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
</tr>
<tr>
<td><input id="9" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="10" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="11" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="12" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="13" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="14" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="15" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="16" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="17" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
</tr>
<tr>
<td><input id="18" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="19" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="20" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="21" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="22" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="23" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="24" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="25" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="26" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
</tr>
<tr>
<td><input id="27" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="28" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="29" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="30" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="31" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="32" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="33" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="34" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="35" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
</tr>
<tr>
<td><input id="36" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="37" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="38" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="39" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="40" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="41" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="42" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="43" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="44" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
</tr>
<tr>
<td><input id="45" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="46" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="47" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="48" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="49" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="50" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="51" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="52" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="53" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
</tr>
<tr>
<td><input id="54" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="55" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="56" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="57" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="58" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="59" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="60" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="61" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="62" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
</tr>
<tr>
<td><input id="63" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="64" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="65" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="66" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="67" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="68" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="69" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="70" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="71" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
</tr>
<tr>
<td><input id="72" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="73" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="74" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="75" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="76" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="77" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="78" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="79" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
<td><input id="80" oninput="doCheck(this)" type="number" max="9" min="1" /></td>
</tr>
</table>
</div>
<button onclick="ansCheck()" style="display:flex;margin:auto;margin-top: 20px;">Validate</button>
</div>
<div class="alertpop"><span>Congrats!!, You Won</span><br/><button
style="float:right;margin-right:30px">Play Again</button></div>
</body>
</html>