-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsolver.html
More file actions
86 lines (76 loc) · 3.61 KB
/
Copy pathsolver.html
File metadata and controls
86 lines (76 loc) · 3.61 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
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
<!DOCTYPE html>
<html>
<head>
<title>Sudoku-Solver</title>
<style>
input{
width: 20px;
height: 20px;
text-align: center;
border-style: solid;
border-color: lightgray;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: none;
border-top-style: none;
}
input:nth-child(3n) {
border-right-style: solid;
border-right-color: black;
}
div:nth-child(3n+1) input {
border-bottom-style: solid;
border-bottom-color: black;
}
div:nth-child(2) input{
border-top-style: solid;
border-top-color: black;
}
input:first-child{
border-left-style: solid;
border-left-color: black;
}
table {
border:2px solid black;
border-collapse: collapse;
text-align: center;
}
td {
width:60px;
height:60px;
border:1px dotted black;
}
tr:nth-child(3n) td {
border-bottom-width:2px;
border-bottom-style: solid;
}
td:nth-child(3n) {
border-right-width:2px;
border-right-style: solid;
}
</style>
<script src="jquery-2.1.3.min.js"></script>
<script src="solver.js"></script>
</head>
<body>
<h1>Sudoku Solver</h1>
<div><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/></div>
<div><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/></div>
<div><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/></div>
<div><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/></div>
<div><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/></div>
<div><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/></div>
<div><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/></div>
<div><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/></div>
<div><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/><input type="text"/></div>
<button onclick="solve()">Loesen</button><button onclick="reset()">Reset</button>
<div>
<button onclick="displayFirstStep()">|<</button>
<button onclick="displayPreviousStep()"><</button>
<span id="curr">0</span>/<span id="total">0</span>
<button onclick="displayNextStep()">></button>
<button onclick="displayLastStep()">>|</button>
<p id="method"></p>
</div>
</body>
</html>