-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (66 loc) · 2.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Slowed down sudoku bruteforcer</title>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
<script type="module" src="script.js"></script>
</head>
<body>
<h1>Slowed down sudoku bruteforcer</h1>
<p>Type in a sudoku puzzle below (or <a id="random" href="">generate a puzzle for me</a>) and watch a bruteforcer algorithm solve the sudoku step by step.</p>
<div class="outer">
<table id="table">
<tr><td>Please enable Javascript for this website to work.</td></tr>
</table>
<div class="info">
<div class="buttons">
<button class="large" id="left-button">Clear</button>
<button class="large" id="right-button">Start</button>
</div>
<span id="success"></span>
<ul id="errors"></ul>
<div class="option">
<label for="iter">Iteration</label>
<div>
<button class="small" id="next" disabled>+1</button>
<button class="small" id="skip" disabled>≫</button>
</div>
</div>
<input class="stat" id="iter" name="iter" type="number" value="0" disabled />
<div class="option">
<label for="speed">Speed (per second)</label>
<div>
<button class="small" id="speed-down">÷2</button>
<button class="small" id="speed-up">×2</button>
</div>
</div>
<input class="stat" id="speed" name="speed" type="number" min="1" step="any" value="125" />
<hr/>
<!-- <div class="option">
<label for="type">Type</label>
<select id="type" name="type">
<option value="standard">Normal sudoku</option>
<option value="x">Sudoku X</option>
<option value="window">Window sudoku</option>
</select>
</div> -->
<div class="option">
<label for="method">Fill-in</label>
<select id="method" name="method">
<option value="standard">Rows first</option>
<option value="column">Columns first</option>
<option value="efficient">Least possibilities first</option>
</select>
</div>
<div class="option">
<label for="copy"><a id="save" href="">Link to this sudoku</a></label>
<div>
<button class="medium" id="copy" name="copy">Copy</button>
</div>
</div>
</div>
</div>
</body>
</html>