-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnakeGame.html
269 lines (268 loc) · 9.47 KB
/
snakeGame.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
<html>
<head>
<link href="css\snake.css" rel="stylesheet">
<title>Classic Snake Game</title>
</head>
<body>
<table>
<tr>
<td id = "0-0" class = "cell"></td>
<td id = "0-1" class = "cell"></td>
<td id = "0-2" class = "cell"></td>
<td id = "0-3" class = "cell"></td>
<td id = "0-4" class = "cell"></td>
<td id = "0-5" class = "cell"></td>
<td id = "0-6" class = "cell"></td>
<td id = "0-7" class = "cell"></td>
<td id = "0-8" class = "cell"></td>
<td id = "0-9" class = "cell"></td>
<td id = "0-10" class = "cell"></td>
</tr>
<tr>
<td id = "1-0" class = "cell"></td>
<td id = "1-1" class = "cell"></td>
<td id = "1-2" class = "cell"></td>
<td id = "1-3" class = "cell"></td>
<td id = "1-4" class = "cell"></td>
<td id = "1-5" class = "cell"></td>
<td id = "1-6" class = "cell"></td>
<td id = "1-7" class = "cell"></td>
<td id = "1-8" class = "cell"></td>
<td id = "1-9" class = "cell"></td>
<td id = "1-10" class = "cell"></td>
</tr>
<tr>
<td id = "2-0" class = "cell"></td>
<td id = "2-1" class = "cell"></td>
<td id = "2-2" class = "cell"></td>
<td id = "2-3" class = "cell"></td>
<td id = "2-4" class = "cell"></td>
<td id = "2-5" class = "cell"></td>
<td id = "2-6" class = "cell"></td>
<td id = "2-7" class = "cell"></td>
<td id = "2-8" class = "cell"></td>
<td id = "2-9" class = "cell"></td>
<td id = "2-10" class = "cell"></td>
</tr>
<tr>
<td id = "3-0" class = "cell"></td>
<td id = "3-1" class = "cell"></td>
<td id = "3-2" class = "cell"></td>
<td id = "3-3" class = "cell"></td>
<td id = "3-4" class = "cell"></td>
<td id = "3-5" class = "cell"></td>
<td id = "3-6" class = "cell"></td>
<td id = "3-7" class = "cell"></td>
<td id = "3-8" class = "cell"></td>
<td id = "3-9" class = "cell"></td>
<td id = "3-10" class = "cell"></td>
</tr>
<tr>
<td id = "4-0" class = "cell"></td>
<td id = "4-1" class = "cell"></td>
<td id = "4-2" class = "cell"></td>
<td id = "4-3" class = "cell"></td>
<td id = "4-4" class = "cell"></td>
<td id = "4-5" class = "cell"></td>
<td id = "4-6" class = "cell"></td>
<td id = "4-7" class = "cell"></td>
<td id = "4-8" class = "cell"></td>
<td id = "4-9" class = "cell"></td>
<td id = "4-10" class = "cell"></td>
</tr>
<tr>
<td id = "5-0" class = "cell"></td>
<td id = "5-1" class = "cell"></td>
<td id = "5-2" class = "cell"></td>
<td id = "5-3" class = "cell"></td>
<td id = "5-4" class = "cell"></td>
<td id = "5-5" class = "cell"></td>
<td id = "5-6" class = "cell"></td>
<td id = "5-7" class = "cell"></td>
<td id = "5-8" class = "cell"></td>
<td id = "5-9" class = "cell"></td>
<td id = "5-10" class = "cell"></td>
</tr>
<tr>
<td id = "6-0" class = "cell"></td>
<td id = "6-1" class = "cell"></td>
<td id = "6-2" class = "cell"></td>
<td id = "6-3" class = "cell"></td>
<td id = "6-4" class = "cell"></td>
<td id = "6-5" class = "cell"></td>
<td id = "6-6" class = "cell"></td>
<td id = "6-7" class = "cell"></td>
<td id = "6-8" class = "cell"></td>
<td id = "6-9" class = "cell"></td>
<td id = "6-10" class = "cell"></td>
</tr>
<tr>
<td id = "7-0" class = "cell"></td>
<td id = "7-1" class = "cell"></td>
<td id = "7-2" class = "cell"></td>
<td id = "7-3" class = "cell"></td>
<td id = "7-4" class = "cell"></td>
<td id = "7-5" class = "cell"></td>
<td id = "7-6" class = "cell"></td>
<td id = "7-7" class = "cell"></td>
<td id = "7-8" class = "cell"></td>
<td id = "7-9" class = "cell"></td>
<td id = "7-10" class = "cell"></td>
</tr>
<tr>
<td id = "8-0" class = "cell"></td>
<td id = "8-1" class = "cell"></td>
<td id = "8-2" class = "cell"></td>
<td id = "8-3" class = "cell"></td>
<td id = "8-4" class = "cell"></td>
<td id = "8-5" class = "cell"></td>
<td id = "8-6" class = "cell"></td>
<td id = "8-7" class = "cell"></td>
<td id = "8-8" class = "cell"></td>
<td id = "8-9" class = "cell"></td>
<td id = "8-10" class = "cell"></td>
</tr>
<tr>
<td id = "9-0" class = "cell"></td>
<td id = "9-1" class = "cell"></td>
<td id = "9-2" class = "cell"></td>
<td id = "9-3" class = "cell"></td>
<td id = "9-4" class = "cell"></td>
<td id = "9-5" class = "cell"></td>
<td id = "9-6" class = "cell"></td>
<td id = "9-7" class = "cell"></td>
<td id = "9-8" class = "cell"></td>
<td id = "9-9" class = "cell"></td>
<td id = "9-10" class = "cell"></td>
</tr>
<tr>
<td id = "10-0" class = "cell"></td>
<td id = "10-1" class = "cell"></td>
<td id = "10-2" class = "cell"></td>
<td id = "10-3" class = "cell"></td>
<td id = "10-4" class = "cell"></td>
<td id = "10-5" class = "cell"></td>
<td id = "10-6" class = "cell"></td>
<td id = "10-7" class = "cell"></td>
<td id = "10-8" class = "cell"></td>
<td id = "10-9" class = "cell"></td>
<td id = "10-10" class = "cell"></td>
</tr>
<tr>
<td id = "11-0" class = "cell"></td>
<td id = "11-1" class = "cell"></td>
<td id = "11-2" class = "cell"></td>
<td id = "11-3" class = "cell"></td>
<td id = "11-4" class = "cell"></td>
<td id = "11-5" class = "cell"></td>
<td id = "11-6" class = "cell"></td>
<td id = "11-7" class = "cell"></td>
<td id = "11-8" class = "cell"></td>
<td id = "11-9" class = "cell"></td>
<td id = "11-10" class = "cell"></td>
</tr>
<tr>
<td id = "12-0" class = "cell"></td>
<td id = "12-1" class = "cell"></td>
<td id = "12-2" class = "cell"></td>
<td id = "12-3" class = "cell"></td>
<td id = "12-4" class = "cell"></td>
<td id = "12-5" class = "cell"></td>
<td id = "12-6" class = "cell"></td>
<td id = "12-7" class = "cell"></td>
<td id = "12-8" class = "cell"></td>
<td id = "12-9" class = "cell"></td>
<td id = "12-10" class = "cell"></td>
</tr>
<tr>
<td id = "13-0" class = "cell"></td>
<td id = "13-1" class = "cell"></td>
<td id = "13-2" class = "cell"></td>
<td id = "13-3" class = "cell"></td>
<td id = "13-4" class = "cell"></td>
<td id = "13-5" class = "cell"></td>
<td id = "13-6" class = "cell"></td>
<td id = "13-7" class = "cell"></td>
<td id = "13-8" class = "cell"></td>
<td id = "13-9" class = "cell"></td>
<td id = "13-10" class = "cell"></td>
</tr>
<tr>
<td id = "14-0" class = "cell"></td>
<td id = "14-1" class = "cell"></td>
<td id = "14-2" class = "cell"></td>
<td id = "14-3" class = "cell"></td>
<td id = "14-4" class = "cell"></td>
<td id = "14-5" class = "cell"></td>
<td id = "14-6" class = "cell"></td>
<td id = "14-7" class = "cell"></td>
<td id = "14-8" class = "cell"></td>
<td id = "14-9" class = "cell"></td>
<td id = "14-10" class = "cell"></td>
</tr>
<tr>
<td id = "15-0" class = "cell"></td>
<td id = "15-1" class = "cell"></td>
<td id = "15-2" class = "cell"></td>
<td id = "15-3" class = "cell"></td>
<td id = "15-4" class = "cell"></td>
<td id = "15-5" class = "cell"></td>
<td id = "15-6" class = "cell"></td>
<td id = "15-7" class = "cell"></td>
<td id = "15-8" class = "cell"></td>
<td id = "15-9" class = "cell"></td>
<td id = "15-10" class = "cell"></td>
</tr>
<tr>
<td id = "16-0" class = "cell"></td>
<td id = "16-1" class = "cell"></td>
<td id = "16-2" class = "cell"></td>
<td id = "16-3" class = "cell"></td>
<td id = "16-4" class = "cell"></td>
<td id = "16-5" class = "cell"></td>
<td id = "16-6" class = "cell"></td>
<td id = "16-7" class = "cell"></td>
<td id = "16-8" class = "cell"></td>
<td id = "16-9" class = "cell"></td>
<td id = "16-10" class = "cell"></td>
</tr>
<tr>
<td id = "17-0" class = "cell"></td>
<td id = "17-1" class = "cell"></td>
<td id = "17-2" class = "cell"></td>
<td id = "17-3" class = "cell"></td>
<td id = "17-4" class = "cell"></td>
<td id = "17-5" class = "cell"></td>
<td id = "17-6" class = "cell"></td>
<td id = "17-7" class = "cell"></td>
<td id = "17-8" class = "cell"></td>
<td id = "17-9" class = "cell"></td>
<td id = "17-10" class = "cell"></td>
</tr>
<tr>
<td id = "18-0" class = "cell"></td>
<td id = "18-1" class = "cell"></td>
<td id = "18-2" class = "cell"></td>
<td id = "18-3" class = "cell"></td>
<td id = "18-4" class = "cell"></td>
<td id = "18-5" class = "cell"></td>
<td id = "18-6" class = "cell"></td>
<td id = "18-7" class = "cell"></td>
<td id = "18-8" class = "cell"></td>
<td id = "18-9" class = "cell"></td>
<td id = "18-10" class = "cell"></td>
</tr>
</table>
<table>
<tr>
<td><button id="left">Left</button></td>
<td><button id="right">Right</button></td>
</tr>
<tr>
<td><button id="up">Up</button></td>
<td><button id="down">Down</button></td>
</tr>
</table>
<script src = "build\main.js"></script>
</body>
</html>