-
Notifications
You must be signed in to change notification settings - Fork 0
/
49.html
93 lines (90 loc) · 5.87 KB
/
49.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], "49", ["5..#...........2##.1",".#............#....0",".#.......#.#.#..#...",".#2...#....#........","..#....#...3..##.#40","......#...#...#...#.","...#...#..#......#21","#....#...##.....#...","...#...........#....","..#2.....##.0#..#5..","#..#..##...5#2......","#..#..#.#.#........#","####..5.#..#....##..","..........###...5##.","......3#...........2","4.2##.......####....","3.............#...##","3#......#....##5....","...................2",".2..4#.#..#3...0.#.."], ["...#....1.......##.4",".#............#.....",".#..2....#.#.#..#...",".#4...#....#...5....","2.#....#......##.#..","......#...#...#...#.","...#...#..#..1...#..","#....#...##3....#...","...#...........#03..","..#.2..2.##..#.0#...","#.5#..##....#.......","#..#..#.#.#.....2..#","####....#3.#..0.##..","...4..3..2###..2.##5",".......#......2.....","...##....5..####....","..5........2..#...##",".#......#3...##0....","..............5.....",".....#.#..#......#.."], [[9, 3, 2],[9, 12, 0],[10, 11, 0],[9, 11, 1],[10, 8, 2],[11, 11, 2],[11, 18, 3],[7, 18, 0],[7, 17, 1],[8, 17, 0],[14, 6, 3],[9, 17, 1],[11, 17, 2],[11, 18, 1],[12, 18, 2],[12, 19, 1],[17, 15, 1],[18, 15, 0],[18, 0, 1],[19, 1, 3],[19, 0, 2],[18, 1, 1],[19, 3, 0],[19, 2, 3],[13, 16, 1],[19, 15, 3],[19, 16, 0],[16, 15, 1],[19, 12, 2],[19, 14, 3],[3, 2, 2],[3, 5, 1],[6, 5, 2],[6, 6, 1],[9, 6, 2],[18, 19, 0],[18, 15, 3],[16, 15, 2],[16, 17, 3],[10, 13, 1],[14, 17, 0],[14, 13, 3],[8, 16, 2],[6, 19, 1],[8, 19, 0],[7, 19, 1],[10, 19, 0],[10, 14, 3],[6, 14, 0],[14, 14, 3],[6, 11, 2],[6, 14, 1],[16, 0, 2],[17, 0, 3],[16, 1, 3],[13, 1, 2],[13, 5, 3],[8, 5, 2],[8, 14, 3],[6, 14, 2],[14, 14, 3],[6, 16, 0],[6, 14, 1],[6, 15, 1],[7, 15, 0],[4, 19, 3],[1, 19, 0],[2, 19, 3],[1, 15, 1],[3, 15, 0],[3, 12, 3],[0, 12, 0],[0, 4, 1],[14, 4, 0],[14, 0, 3],[15, 2, 3],[13, 0, 2],[13, 2, 1],[13, 1, 2],[13, 5, 1],[18, 5, 2],[18, 14, 1],[18, 13, 2],[19, 14, 3],[18, 19, 3],[17, 19, 0],[15, 0, 2],[15, 1, 3],[13, 1, 2],[13, 5, 3],[8, 5, 0],[0, 15, 0],[8, 4, 3],[0, 4, 2],[1, 4, 0],[1, 2, 1],[19, 4, 3],[16, 4, 0],[16, 2, 1],[16, 3, 0],[19, 2, 3],[16, 1, 3],[13, 1, 2],[15, 2, 3],[13, 5, 0],[13, 2, 1],[1, 19, 0],[0, 19, 1],[1, 15, 2],[8, 16, 2],[10, 19, 3],[8, 19, 0],[9, 19, 0],[9, 17, 1],[11, 17, 0],[10, 11, 0],[11, 11, 3],[10, 8, 2],[8, 11, 0],[0, 15, 0],[8, 4, 3],[0, 4, 2],[1, 4, 0],[1, 2, 1],[2, 2, 2],[2, 8, 3],[10, 11, 1],[11, 11, 2],[11, 18, 3],[7, 18, 2],[7, 19, 3],[2, 19, 0],[2, 17, 3],[1, 17, 0],[1, 15, 1],[19, 15, 3],[17, 15, 2],[18, 15, 3],[17, 19, 0],[16, 15, 2],[16, 17, 3],[14, 17, 0],[14, 15, 3],[10, 13, 1],[14, 13, 0],[14, 8, 3],[13, 8, 2],[0, 0, 1],[6, 0, 2],[6, 2, 1],[8, 2, 0],[8, 0, 1],[9, 0, 2],[9, 1, 1],[11, 1, 2],[11, 2, 3],[19, 1, 3],[18, 1, 2],[18, 14, 1],[18, 13, 2],[19, 14, 3],[18, 19, 0],[17, 15, 2],[18, 15, 3],[17, 19, 0],[16, 15, 2],[16, 17, 3],[14, 17, 0],[14, 15, 3],[14, 19, 0],[10, 15, 1],[14, 15, 2],[4, 18, 3],[0, 18, 2],[9, 8, 3],[1, 8, 0],[1, 2, 3],[0, 2, 0],[0, 0, 1],[6, 0, 2],[6, 2, 1],[8, 2, 0],[8, 0, 1],[9, 0, 2],[9, 1, 3],[4, 1, 0],[4, 11, 0],[4, 8, 1],[10, 8, 2],[0, 8, 1],[10, 11, 0],[10, 8, 3],[10, 9, 1],[15, 2, 3],[13, 3, 1],[13, 2, 2],[14, 3, 3],[13, 5, 3],[8, 5, 0],[0, 15, 0],[0, 8, 1],[0, 9, 0],[10, 8, 3],[0, 4, 1],[8, 4, 2],[7, 4, 1],[8, 14, 0],[14, 4, 3],[8, 16, 2],[1, 19, 1],[8, 19, 0],[7, 19, 0],[7, 17, 1],[11, 17, 0],[11, 11, 3],[8, 11, 2],[8, 14, 1],[8, 4, 2],[13, 14, 3],[8, 14, 0],[9, 15, 1],[9, 14, 2],[12, 15, 0],[9, 15, 1],[12, 12, 2],[12, 15, 3],[14, 19, 1],[15, 19, 0],[15, 16, 3],[13, 16, 1],[19, 16, 0],[19, 12, 3],[6, 18, 2],[8, 16, 2],[6, 19, 1],[8, 19, 0],[7, 19, 1],[10, 19, 0],[10, 13, 1],[19, 11, 3],[14, 13, 0],[14, 11, 1],[14, 12, 0],[14, 8, 1],[16, 8, 2],[19, 11, 3],[17, 11, 0],[8, 4, 2],[8, 14, 1],[11, 14, 2],[11, 18, 3],[6, 18, 2],[8, 16, 2],[6, 19, 1],[8, 19, 0],[7, 19, 0],[7, 17, 1],[16, 12, 1],[17, 9, 2],[19, 12, 3],[17, 12, 0],[18, 12, 0],[18, 0, 3],[16, 0, 2],[17, 0, 3],[16, 1, 0],[13, 0, 2],[13, 3, 1],[13, 2, 2],[14, 3, 3],[13, 5, 3],[8, 5, 2],[8, 14, 1],[11, 14, 2],[11, 17, 3],[16, 0, 3],[13, 0, 2],[13, 3, 1],[13, 2, 2],[14, 3, 3],[13, 5, 3],[8, 5, 2],[8, 14, 1],[11, 14, 2],[11, 16, 3],[11, 15, 2],[10, 16, 1],[11, 18, 0],[11, 17, 3],[7, 17, 2],[7, 19, 1],[10, 19, 0],[10, 13, 1],[14, 13, 0],[14, 8, 3],[13, 9, 1],[13, 8, 2],[16, 9, 3],[12, 6, 0],[12, 4, 3],[10, 4, 2],[10, 5, 3],[8, 5, 0],[8, 4, 3],[0, 4, 2],[0, 8, 1],[0, 7, 2],[10, 8, 3],[0, 15, 0],[0, 9, 1],[1, 9, 0],[1, 2, 3],[0, 2, 0],[0, 0, 1],[4, 0, 2],[3, 0, 1],[4, 1, 0],[6, 0, 3],[5, 0, 2],[5, 5, 3],[3, 2, 2],[0, 5, 1],[3, 5, 0],[14, 9, 2],[14, 13, 3],[10, 13, 2],[8, 17, 2],[10, 19, 3],[8, 19, 0],[9, 19, 3],[1, 19, 0],[1, 15, 3],[0, 15, 0],[0, 9, 1],[1, 9, 0],[1, 2, 1],[2, 2, 2]]);
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>