-
Notifications
You must be signed in to change notification settings - Fork 0
/
9.html
93 lines (90 loc) · 6.27 KB
/
9.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
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="js/postscript.js"></script>
<script src="js/visualizer.js"></script>
<script type="text/javascript">
(function ($) {
$(function () {
var updater = function () {
var visualizer = new Visualizer($('#canvas')[0], "9", ["........##10...#..11",".###....##.#....##..","0....0#.....#.1....#","1#...#1#.#.....##..#","#.....#..#.#.00#....","1.#..#0.#01...#.0...",".0#0...#.#1.....#...",".#.....#.##.#...1..#","#.....1##0.....0....","#..##.10.##..#.00...",".###..1.1##1...#..##","#.1####.#...#.#1....",".#.#.#1..........0.0","#1....1#.#..##.#.#..","#...#..##..#1.....1.",".......#...0#.....#.","1....1#....10#.#0...","......#..###....1..1",".01.........#..#0...","..01###.........1#.#"], ["........##0.1..#....",".###0...##.#..0.##..","....0.#.0...#0.....#",".#...#1#.#.....##1.#","#.1..0#..#1#1..#0..1","..#..#.0#.0...#.....","..#....#.#.1....#0..",".#.1...#.##.#0.....#","#1....0##.....010...","#..##11.1##.1#......",".###.....##....#..##","#..####.#...#.#....1",".#0#.#1.1.....1.....","#..1.1.#.#.1##.#.#..","#...#.1##.1#.10.....","......1#....#.....#.","...00.#0.01..#.#....","......#.1###....0...","............#.1#...0","....###1.........#.#"], [[4, 13, 3],[4, 14, 3],[5, 10, 2],[6, 10, 2],[0, 13, 2],[0, 14, 1],[0, 10, 1],[6, 15, 0],[6, 10, 3],[9, 6, 0],[10, 6, 3],[18, 2, 2],[19, 2, 3],[18, 11, 0],[6, 1, 3],[4, 1, 2],[5, 13, 3],[0, 13, 0],[5, 16, 3],[19, 3, 3],[11, 15, 1],[9, 7, 1],[12, 15, 0],[12, 7, 3],[8, 9, 2],[10, 8, 3],[15, 11, 0],[15, 8, 1],[19, 8, 0],[19, 16, 0],[19, 7, 3],[16, 11, 0],[19, 8, 3],[16, 8, 2],[2, 5, 3],[2, 0, 2],[0, 5, 1],[2, 5, 0],[1, 5, 0],[5, 6, 2],[6, 3, 2],[6, 6, 3],[5, 7, 3],[5, 6, 2],[4, 7, 2],[4, 8, 3],[8, 6, 0],[8, 15, 3],[5, 15, 2],[5, 19, 1],[6, 19, 0],[7, 16, 1],[8, 16, 0],[0, 10, 1],[3, 14, 0],[6, 10, 3],[2, 14, 1],[3, 10, 2],[4, 14, 0],[3, 14, 3],[2, 14, 0],[5, 0, 2],[5, 1, 3],[4, 1, 2],[4, 4, 3],[1, 4, 2],[2, 4, 3],[1, 7, 0],[0, 4, 2],[0, 7, 1],[2, 8, 1],[2, 7, 2],[4, 8, 3],[2, 11, 1],[3, 11, 2],[3, 14, 3],[2, 14, 2],[2, 18, 1],[2, 13, 2],[9, 18, 3],[2, 18, 0],[3, 18, 0],[0, 18, 1],[9, 18, 0],[9, 17, 1],[11, 17, 2],[0, 19, 1],[1, 19, 0],[1, 18, 1],[9, 18, 0],[9, 17, 3],[6, 17, 2],[7, 17, 3],[6, 19, 0],[4, 17, 2],[16, 5, 3],[10, 11, 1],[13, 6, 1],[18, 16, 2],[17, 16, 1],[19, 16, 0],[16, 16, 3],[18, 19, 0],[10, 16, 1],[18, 16, 2],[14, 12, 2],[17, 19, 0],[14, 17, 1],[17, 17, 2],[16, 17, 1],[18, 17, 0],[18, 16, 1],[19, 16, 0],[19, 8, 3],[17, 8, 0],[18, 8, 3],[17, 7, 2],[15, 8, 1],[16, 8, 2],[16, 10, 3],[16, 11, 0],[11, 10, 1],[16, 8, 2],[16, 9, 3],[14, 9, 2],[16, 12, 0],[16, 10, 3],[16, 11, 0],[15, 10, 1],[16, 8, 2],[12, 19, 1],[16, 19, 0],[16, 16, 3],[9, 16, 2],[10, 16, 3],[9, 19, 0],[7, 16, 1],[0, 11, 0],[16, 0, 2],[16, 5, 3],[14, 5, 2],[12, 17, 3],[7, 17, 0],[9, 15, 0],[8, 14, 0],[9, 14, 3],[8, 9, 2],[6, 14, 0],[6, 12, 3],[5, 12, 0],[14, 18, 3],[11, 18, 0],[11, 15, 1],[17, 19, 3],[12, 19, 0],[12, 15, 3],[12, 16, 0],[11, 15, 1],[12, 9, 2],[9, 16, 1],[16, 16, 2],[16, 19, 1],[18, 19, 0],[17, 19, 1],[18, 16, 1],[19, 16, 0],[19, 8, 3],[18, 8, 0],[18, 3, 3],[14, 3, 0],[14, 1, 1],[17, 1, 2],[12, 2, 1],[17, 5, 0],[17, 2, 3],[18, 1, 3],[14, 1, 2],[14, 3, 1],[9, 7, 1],[12, 8, 1],[12, 7, 2],[13, 8, 3],[12, 13, 3],[10, 13, 2],[10, 14, 3],[9, 14, 2],[9, 19, 3],[8, 19, 0],[8, 17, 1],[12, 17, 2],[12, 19, 1],[18, 19, 0],[17, 19, 1],[18, 16, 1],[19, 16, 0],[19, 8, 3],[18, 8, 0],[18, 3, 1],[13, 1, 1],[19, 3, 0],[19, 1, 3],[19, 2, 0],[15, 6, 0],[19, 0, 3],[15, 0, 2],[16, 0, 2],[16, 3, 3],[16, 2, 2],[14, 3, 1],[16, 5, 0],[13, 1, 2],[13, 3, 1],[13, 2, 2],[15, 3, 3],[13, 5, 1],[13, 4, 2],[18, 5, 3],[12, 6, 2],[13, 6, 3],[12, 8, 1],[12, 7, 2],[13, 8, 3],[12, 14, 1],[12, 13, 2],[18, 2, 3],[13, 3, 1],[13, 2, 2],[15, 3, 3],[13, 5, 1],[13, 4, 2],[18, 5, 3],[12, 6, 2],[13, 6, 3],[12, 8, 1],[12, 7, 2],[13, 8, 3],[12, 14, 1],[12, 13, 2],[2, 0, 2],[5, 10, 1],[5, 9, 2],[6, 10, 3],[5, 13, 3],[0, 10, 1],[3, 13, 0],[3, 10, 3],[3, 11, 3],[2, 11, 0],[2, 8, 1],[2, 9, 0],[4, 8, 3],[2, 7, 3],[0, 7, 0],[2, 5, 0],[0, 0, 1],[2, 0, 2],[1, 0, 1],[2, 0, 2],[2, 4, 1],[2, 5, 0],[8, 4, 3],[2, 0, 2],[2, 3, 1],[8, 3, 2],[12, 14, 1],[12, 15, 0],[17, 14, 3],[12, 9, 2],[12, 13, 3],[10, 13, 2],[10, 14, 3],[8, 14, 0],[9, 14, 3],[8, 9, 2],[6, 14, 0],[6, 12, 3],[5, 12, 2],[5, 13, 3],[0, 10, 1],[3, 13, 0],[3, 10, 3],[3, 11, 3],[2, 11, 0],[2, 8, 1],[2, 9, 0],[4, 8, 3],[2, 7, 3],[3, 0, 3],[0, 7, 0],[0, 0, 1],[0, 1, 0],[0, 0, 1],[2, 0, 2],[2, 3, 1],[19, 14, 2],[19, 16, 3],[18, 16, 2],[18, 18, 3],[16, 18, 0],[16, 16, 3],[9, 16, 0],[8, 14, 0],[9, 14, 3],[8, 9, 2],[6, 14, 0],[6, 12, 3],[4, 12, 2],[5, 12, 3],[4, 14, 0],[0, 10, 1],[3, 12, 0],[3, 10, 3],[3, 11, 3],[2, 11, 0],[2, 8, 1],[2, 9, 0],[4, 8, 3],[2, 7, 3],[3, 0, 3],[0, 7, 0],[0, 0, 1],[0, 1, 0],[0, 0, 1],[2, 0, 2],[2, 3, 1],[8, 3, 2],[8, 5, 3],[8, 1, 2],[6, 5, 1],[8, 5, 0],[7, 5, 0],[7, 4, 3],[3, 4, 0],[3, 2, 1],[17, 3, 2],[17, 5, 1],[18, 5, 0],[18, 0, 2],[18, 11, 1],[19, 11, 2],[19, 16, 3],[18, 16, 2],[18, 19, 3],[18, 18, 2],[12, 19, 1],[17, 19, 0],[17, 17, 3],[14, 17, 0],[3, 0, 3],[0, 0, 2],[0, 7, 1],[2, 8, 1],[2, 7, 2],[4, 8, 3],[2, 11, 1],[3, 11, 2],[3, 14, 3],[2, 14, 2],[7, 13, 2],[2, 18, 1],[7, 18, 0],[6, 18, 1],[9, 18, 2],[9, 19, 3],[8, 19, 0],[8, 17, 1],[12, 17, 2],[14, 12, 2],[12, 19, 1],[14, 19, 0],[13, 19, 0],[13, 18, 1],[14, 18, 0],[14, 13, 1],[14, 12, 2],[15, 13, 3],[14, 19, 0]]);
visualizer.doit();
};
updater();
});
})(jQuery);
</script>
<style type="text/css">
body {
font-family: Arial, Sans-Serif;
}
h3 {
font-size: 12pt;
padding-left: 0.5em;
}
#canvas {
border: 1px solid black;
}
/* td.properties {
padding-left: 1em;
} */
#coord {
position: fixed;
top: 2px;
left: 2px;
font-familiy: Helvetica;
font-size: 10pt;
background: #fef3a1;
border-style: solid;
border-width: 1px;
border-color: #bba824;
padding: 2px 2px 2px 2px;
z-index: 1;
opacity: 0.9;
}
#steps {
align: left;
}
</style>
</head>
<body>
<table>
<tr>
<td colspan="3">
<canvas id="canvas" width="960" height="960" sytle="align: center">
</canvas>
</td>
</tr>
<tr>
<td>
<h3>seed:</h3>
</td>
<td id="seed">
</td>
<td>
</td>
</tr>
<tr>
<td class="properties">
<h3>steps:</h3>
</td>
<td id="steps">
</td>
<td>
</td>
</tr>
<tr>
<td>
<h3>Score:</h3>
</td>
<td id="score">
</td>
<td>
</td>
</tr>
</table>
<div>
<strong id="coord"></strong>
</div>
</body>
</html>