-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
93 lines (86 loc) · 2.79 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,
initial-scale=1.0">
<link href="_web/favicon.ico" rel="icon" type="image/x-icon" />
<link href="_web/favicon.ico" rel="shortcut icon" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="_web/styles.css">
<title>2048</title>
</head>
<body style="font-family: Clearsans;">
<div id="header">
<h1>2048</h1>
<ul id="stats">
<li>
<div class="statLabel">Score</div>
<div class="statContent" id="score"></div>
</li>
<li>
<label class="statLabel">Mode</label>
<div class="statContent" id="mode">Regular</div>
</li>
</ul>
</div>
<div id="2048"; style="font-family: Clearsans, Open Sans;"> </div>
<script type="text/javascript" src="_build/main.d.js" defer></script>
<script type='text/javascript'>
window.addEventListener("keydown", function(e) {
// space and arrow keys - prevents scrolling up
if([32, 37, 38, 39, 40].indexOf(e.keyCode) > -1) {
e.preventDefault();
}
}, false);
</script>
<div class="howToPlay">
<h3>How to play:</h3>
<table>
<tr>
<td>
<kbd class="light">←</kbd>
/
<kbd class="light">→</kbd>
/
<kbd class="light">↑</kbd>
/
<kbd class="light">↓</kbd>
</td>
<td>Move left/right/up/down</td>
</tr>
<tr>
<td>
<kbd class="light">R</kbd>
/
<kbd class="light">E</kbd>
</td>
<td>Toggle between Regular and Evil Mode</td>
</tr>
<tr>
<td>
<kbd class="light">G</kbd>
</td>
<td>Next Greedy AI Move <span class="msg"><i>(press and hold for auto-run)</i></span></td>
</tr>
<tr>
<td>
<kbd class="light">C</kbd>
</td>
<td>Next Corner AI Move <span class="msg"><i>(press and hold for auto-run)</i></span></td>
</tr>
<tr>
<td>
<kbd class="light">M</kbd>
</td>
<td>Next Random AI Move <span class="msg"><i>(press and hold for auto-run)</i></span></td>
</tr>
<tr>
<td>
<kbd class="light">N</kbd>
</td>
<td>New game</td>
</tr>
</table>
</div>
</body>
</html>