-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (69 loc) · 2.4 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Sudoku Helper</title>
<link rel="stylesheet" href="css/lib/normalize.css">
<link rel="stylesheet" href="css/sudoku.css">
</head>
<body>
<script type="text/x-handlebars" data-template-name="application">
<h2>Sudoku Helper</h2>
<p>
A constraint-propagation-based sudoku solver using on ideas from
<a href="http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-22.html#%_sec_3.3.5">Section 3.3.5</a>
of SICP. Written using CoffeeScript and Ember.js. Source code available
on <a href="https://github.com/nhan/sudoku">GitHub</a>.
</p>
<ul>
<li> Click or use the arrow keys to select a cell. </li>
<li> Enter values 1 through 9 using the number keys or numpad. </li>
<li> Use backspace or delete to clear a value.</li>
<li>
<span class="conflict">Conflicting values</span>
cannot be entered.</li>
<li>
<span class="computed">System derived values</span>
cannot be cleared directly. These values are automatically
cleared when you clear the input that allowed them to be deduced.
</li>
<li>
If a cell displays no possible values, this means you have input an
invalid board and the system has derived a contradiction. Try clearing
some cells.
</li>
</ul>
{{outlet}}
</script>
<script type="text/x-handlebars" data-template-name="index">
<div class="sudoku_board">
{{#each row in model.blocks}}
{{#each block in row}}
<div class="sudoku_block">
{{#each blockRow in block}}
{{#each cell in blockRow}}
{{view Sudoku.CellView cellBinding="cell"}}
{{/each}}
<div class="clear_left"></div>
{{/each}}
</div>
{{/each}}
<div class="clear_left"></div>
{{/each}}
</div>
</script>
<script type="text/x-handlebars" data-template-name="sudoku_cell">
<div class="possible_values">
{{view.possibleValues}}
</div>
<div class="cell_value">
{{view.value}}
</div>
</script>
<script src="js/lib/jquery-1.9.1.min.js"></script>
<script src="js/lib/handlebars-1.0.0-rc.3.js"></script>
<script src="js/lib/ember-1.0.0-rc.3.min.js"></script>
<!-- script src="js/lib/coffee-script.js"></script-->
<script src="js/sudoku.js"></script>
</body>
</html>