-
Notifications
You must be signed in to change notification settings - Fork 0
/
20.html
93 lines (90 loc) · 5.93 KB
/
20.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], "20", ["3.........550#...##.","0.1#.......4.##31..#","..#...#.........#.32","....3#............#.",".5#.##......#.##...#",".2...1#...........#2","#....#.#....##....0.","..#......#........50",".#.#...#5...........",".0##..#...........51","4.....#.............","..#.....5......3#..#",".......5#.......3..5",".......#...#...#....","#......#.43......3..","........4#2......#..","........5#.......1..","....#....2#.........","5..#..#..0....#....3",".4......2.......#..."], ["............1#...##.","..3#.........##....#","..#...#.5.5..3..#...",".12..#......0.....#.","..#.##......#.##...#","...3..#...2.2.....#.","#....#2#....##...3..","0.#......#5..4......",".#.#...#.43...30....","..##..#.......1.....","......#..5......5...","..#5..2..1..450.#..#","........#..0........",".......#...#...#...3","#......#.......5....","........5#.......#..",".........#.....2....","....#5....#.....31..","4..#..#.......#3....",".....4.0........#..5"], [[1, 2, 0],[1, 1, 1],[0, 10, 1],[0, 11, 0],[13, 10, 3],[0, 1, 2],[0, 9, 1],[6, 9, 2],[6, 11, 1],[12, 11, 0],[12, 9, 3],[11, 15, 0],[8, 9, 1],[11, 9, 2],[7, 19, 1],[8, 19, 0],[8, 9, 1],[9, 9, 0],[9, 7, 1],[11, 8, 3],[11, 7, 2],[9, 8, 1],[11, 8, 2],[16, 8, 1],[18, 9, 1],[18, 8, 2],[19, 9, 3],[18, 13, 1],[19, 13, 2],[19, 15, 3],[8, 8, 1],[11, 8, 0],[3, 4, 3],[3, 1, 3],[0, 4, 0],[0, 1, 1],[0, 2, 1],[18, 19, 3],[10, 0, 2],[10, 5, 1],[9, 19, 1],[10, 19, 0],[5, 19, 1],[10, 10, 2],[10, 19, 3],[10, 18, 1],[19, 18, 0],[19, 17, 3],[17, 9, 0],[17, 5, 3],[7, 5, 2],[19, 5, 3],[7, 8, 0],[7, 5, 1],[7, 6, 3],[16, 17, 2],[16, 19, 3],[14, 19, 0],[14, 17, 3],[14, 18, 0],[1, 17, 1],[14, 15, 1],[14, 16, 0],[19, 15, 3],[14, 11, 2],[14, 14, 3],[12, 14, 0],[12, 9, 3],[7, 18, 0],[1, 11, 1],[14, 9, 3],[12, 11, 0],[12, 9, 1],[12, 10, 3],[8, 10, 0],[14, 10, 3],[8, 8, 2],[8, 10, 1],[0, 12, 1],[5, 19, 1],[10, 19, 0],[10, 10, 3],[7, 10, 2],[8, 10, 3],[7, 19, 0],[1, 10, 0],[1, 4, 1],[3, 4, 0],[18, 9, 0],[18, 7, 1],[5, 5, 0],[5, 1, 1],[5, 2, 0],[7, 1, 3],[5, 0, 3],[2, 0, 2],[2, 1, 3],[0, 1, 2],[0, 10, 1],[0, 9, 2],[6, 10, 3],[9, 1, 0],[9, 0, 3],[15, 8, 1],[18, 8, 2],[18, 13, 3],[11, 13, 0],[12, 13, 3],[14, 10, 3],[11, 10, 2],[12, 10, 3],[19, 7, 3],[19, 8, 0],[15, 7, 1],[19, 5, 3],[19, 6, 0],[7, 5, 1],[19, 2, 3],[12, 2, 2],[12, 6, 3],[19, 1, 2],[19, 4, 3],[18, 4, 2],[18, 5, 3],[7, 5, 2],[7, 8, 1],[11, 9, 1],[11, 8, 2],[13, 9, 3],[6, 18, 1],[8, 18, 0],[8, 11, 1],[18, 0, 3],[19, 7, 3],[15, 0, 2],[15, 7, 1],[15, 6, 2],[0, 0, 2],[0, 10, 1],[0, 9, 2],[6, 10, 3],[0, 11, 1],[11, 11, 0],[11, 10, 1],[14, 10, 2],[14, 14, 1],[17, 14, 2],[15, 10, 1],[16, 10, 2],[8, 10, 1],[16, 19, 0],[16, 10, 3],[12, 16, 1],[16, 11, 2],[17, 16, 0],[16, 16, 1],[17, 11, 2],[18, 16, 0],[9, 18, 1],[19, 18, 2],[12, 7, 0],[12, 0, 1],[13, 0, 2],[13, 6, 1],[17, 6, 0],[1, 15, 1],[3, 15, 0],[3, 13, 3],[2, 18, 3],[2, 19, 0],[1, 18, 1],[2, 17, 3],[1, 16, 3],[1, 17, 0],[0, 16, 1],[1, 15, 1],[3, 15, 0],[3, 13, 1],[5, 13, 0],[2, 13, 1],[5, 7, 2],[5, 13, 3],[1, 0, 1],[5, 1, 1],[5, 0, 2],[7, 1, 3],[5, 5, 0],[5, 2, 1],[6, 2, 2],[6, 4, 3],[12, 19, 0],[11, 12, 0],[12, 12, 3],[11, 10, 2],[7, 12, 0],[7, 10, 3],[7, 11, 0],[1, 10, 2],[1, 12, 1],[2, 12, 0],[3, 1, 0],[4, 1, 3],[3, 0, 2],[0, 1, 2],[0, 10, 1],[0, 9, 2],[6, 10, 3],[0, 11, 1],[11, 11, 0],[11, 10, 1],[16, 10, 2],[16, 14, 3],[12, 14, 0],[11, 12, 0],[12, 12, 3],[11, 10, 2],[7, 12, 0],[7, 10, 3],[7, 11, 0],[1, 10, 2],[1, 12, 1],[2, 12, 0],[11, 15, 1],[12, 15, 0],[11, 12, 0],[12, 12, 3],[11, 10, 2],[7, 12, 0],[7, 11, 3],[0, 10, 1],[0, 11, 0],[6, 10, 3],[0, 0, 1],[5, 1, 1],[5, 0, 2],[7, 1, 3],[0, 10, 1],[3, 1, 0],[4, 1, 3],[3, 0, 2],[12, 11, 3],[0, 1, 2],[0, 11, 1],[0, 10, 1],[1, 16, 0],[1, 15, 1],[3, 15, 0],[3, 13, 1],[5, 13, 2],[14, 17, 3],[7, 10, 2],[6, 10, 1],[7, 13, 1],[7, 12, 2],[10, 13, 3],[7, 19, 0],[7, 14, 3],[5, 14, 2],[5, 16, 1],[2, 18, 0],[2, 17, 1],[4, 17, 0],[4, 16, 1],[9, 16, 2],[9, 19, 3],[8, 10, 2],[5, 19, 1],[8, 19, 0],[7, 19, 0],[5, 4, 1],[16, 4, 0],[16, 0, 1],[19, 0, 2],[19, 4, 3],[18, 4, 2],[17, 5, 2],[18, 5, 3],[17, 9, 0],[7, 5, 2],[7, 8, 3],[2, 8, 2],[3, 8, 3],[2, 12, 0],[0, 8, 1],[1, 8, 0],[1, 4, 2],[1, 12, 1],[2, 12, 0],[0, 12, 1],[2, 9, 2],[2, 12, 3],[7, 14, 1],[2, 7, 1],[5, 7, 2],[5, 9, 1],[6, 9, 0],[6, 8, 3],[12, 11, 3],[3, 8, 2],[3, 11, 1],[2, 11, 0],[3, 10, 2],[3, 11, 1],[11, 11, 0],[11, 9, 1],[11, 10, 0],[13, 9, 3],[11, 7, 2],[11, 8, 3],[2, 8, 0],[3, 8, 3],[2, 7, 2],[0, 8, 1],[1, 8, 2],[1, 12, 1],[2, 12, 0],[10, 14, 3],[5, 17, 0],[5, 14, 1],[5, 15, 1],[12, 15, 0],[11, 12, 0],[12, 12, 3],[11, 10, 2],[7, 13, 1],[7, 12, 2],[10, 13, 3],[7, 19, 0],[7, 14, 1],[10, 14, 2],[10, 15, 3],[2, 13, 1],[5, 15, 0],[5, 13, 3],[5, 14, 1],[2, 9, 1],[6, 9, 0],[6, 8, 1],[11, 8, 0],[11, 7, 3],[9, 7, 2],[9, 13, 3],[8, 14, 3],[8, 13, 2],[5, 14, 1],[8, 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>