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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
|
"use strict"
const CARDS = {
1: { name: "Apollo", event: "Apollo", image: "apollo" },
2: { name: "Jupiter", event: "Jupiter", image: "jupiter" },
3: { name: "Mars", event: "Mars", image: "mars" },
4: { name: "Mercury", event: "Mercury", image: "mercury" },
5: { name: "Neptune", event: "Neptune", image: "neptune" },
6: { name: "Pluto", event: "Pluto", image: "pluto" },
7: { name: "Vulcan", event: "Vulcan", image: "vulcan" },
8: { name: "4/1", move: 4, levy: 1, image: "41" },
9: { name: "3/2", move: 3, levy: 2, image: "32" },
10: { name: "3/2", move: 3, levy: 2, image: "32" },
11: { name: "3/1", move: 3, levy: 1, image: "31" },
12: { name: "3/1", move: 3, levy: 1, image: "31" },
13: { name: "3/1", move: 3, levy: 1, image: "31" },
14: { name: "2/3", move: 2, levy: 3, image: "23" },
15: { name: "2/3", move: 2, levy: 3, image: "23" },
16: { name: "2/3", move: 2, levy: 3, image: "23" },
17: { name: "2/3", move: 2, levy: 3, image: "23" },
18: { name: "2/2", move: 2, levy: 2, image: "22" },
19: { name: "2/2", move: 2, levy: 2, image: "22" },
20: { name: "2/2", move: 2, levy: 2, image: "22" },
21: { name: "2/2", move: 2, levy: 2, image: "22" },
22: { name: "2/1", move: 2, levy: 1, image: "21" },
23: { name: "2/1", move: 2, levy: 1, image: "21" },
24: { name: "2/1", move: 2, levy: 1, image: "21" },
25: { name: "1/3", move: 1, levy: 3, image: "13" },
26: { name: "1/2", move: 1, levy: 2, image: "12" },
27: { name: "1/2", move: 1, levy: 2, image: "12" },
}
const BLOCKS = []
const SPACES = []
const EDGES = {}
function init_data() {
function space(name, type, value, axis, major, minor, wrap, x, y) {
major = (1 - major) / 2
minor = (1 - minor) / 2
SPACES.push({name, type, value, exits: [], layout: { axis, major, minor, wrap, x, y }})
}
space("Dead", "pool", 0, "X", 0, 0, 3, 300, 236)
space("Levy", "pool", 0, "X", 0, 0, 18, 767, 1191)
space("Aenos", "port", 0, "Y", -1, 0, 3, 1872, 463)
space("Aleria", "port", 0, "X", 0, 0, 3, 1000, 470)
space("Alexandria", "major-port", 2, "X", 0, -1, 3, 2045, 1083)
space("Ambracia", "port", 0, "X", 0, 0, 3, 1582, 600)
space("Ancyra", "city", 0, "X", 1, 0, 3, 2195, 488)
space("Antiochia", "port", 1, "Y", 0, 1, 4, 2360, 700)
space("Appia", "city", 0, "X", 1, 0, 3, 2043, 553)
space("Aquileia", "port", 0, "X", 1, 0, 3, 1215, 206)
space("Asculum", "city", 0, "Y", 0, 1, 3, 1233, 394)
space("Asturica", "city", 0, "Y", -1, 0, 3, 232, 565)
space("Athenae", "major-port", 1, "Y", 0, 0, 4, 1739, 663)
space("Badias", "city", 0, "X", -1, 1, 3, 902, 977)
space("Bilbilis", "city", 0, "X", -1, 0, 3, 459, 585)
space("Brundisium", "port", 0, "Y", 1, 0, 3, 1441, 525)
space("Burdigala", "port", 0, "Y", 1, -1, 3, 495, 320)
space("Byzantium", "port", 1, "Y", -1, 0, 4, 1990, 417)
space("Caralis", "port", 0, "Y", -1, 0, 3, 990, 665)
space("Carthago Nova", "major-port", 1, "X", 1, 0, 4, 479, 818)
space("Catabathmus", "port", 0, "X", -1, 1, 3, 1890, 1080)
space("Cenabum", "city", 0, "X", -1, 0, 3, 653, 133)
space("Corduba", "city", 0, "X", 0, 0, 3, 317, 837)
space("Creta", "major-port", 0, "X", 0, 0, 3, 1794, 842)
space("Cyrene", "port", 0, "X", 0, 1, 3, 1584, 1044)
space("Damascus", "city", 0, "X", -1, 0, 3, 2415, 870)
space("Dyrrachium", "port", 0, "Y", -1, 0, 3, 1522, 472)
space("Emerita", "city", 0, "Y", -1, 0, 3, 200, 765)
space("Ephesus", "major-port", 1, "X", 1, 0, 4, 1905, 635)
space("Eusebia", "city", 0, "X", 1, 0, 3, 2310, 556)
space("Gades", "port", 0, "X", 0, 0, 3, 232, 922)
space("Genua", "port", 0, "Y", -1, -1, 3, 995, 313)
space("Iomnium", "port", 0, "X", 0, 1, 3, 763, 860)
space("Jerusalem", "city", 0, "X", 0, 0, 3, 2324, 994)
space("Lilybaeum", "port", 0, "Y", 1, 0, 3, 1172, 731)
space("Lugdunum", "city", 0, "X", 0, -1, 3, 790, 235)
space("Massilia", "major-port", 1, "Y", 0, 1, 4, 795, 405)
space("Memphis", "city", 0, "X", 0, 1, 3, 2105, 1167)
space("Messana", "port", 0, "Y", -1, 0, 3, 1290, 708)
space("Narbo", "port", 0, "X", -1, 0, 3, 695, 455)
space("Neapolis", "major-port", 0, "X", 0, 1, 3, 1298, 535)
space("Nicomedia", "port", 0, "X", 1, 0, 3, 2056, 424)
space("Olisipo", "port", 0, "Y", 1, 0, 3, 92, 810)
space("Pelusium", "port", 0, "X", 1, 0, 3, 2178, 1069)
space("Perga", "port", 0, "Y", 1, -1, 3, 2085, 700)
space("Pergamum", "city", 0, "X", 0, 0, 3, 1913, 535)
space("Portus", "port", 0, "Y", 0, 0, 3, 100, 630)
space("Pylos", "port", 0, "X", -1, 0, 3, 1633, 733)
space("Ravenna", "major-port", 0, "Y", -1, -1, 3, 1144, 286)
space("Rhegium", "port", 0, "X", 1, 0, 3, 1357, 698)
space("Roma", "port", 2, "Y", 0, -1, 4, 1160, 450)
space("Sala", "port", 0, "X", 1, 1, 3, 205, 1089)
space("Salamis", "major-port", 0, "X", 0, 0, 3, 2240, 800)
space("Salona", "port", 0, "X", 1, 0, 3, 1336, 319)
space("Serdica", "city", 0, "X", 0, 0, 3, 1689, 354)
space("Siga", "port", 0, "X", 0, 1, 3, 472, 987)
space("Sinope", "port", 0, "X", 0, 0, 3, 2303, 339)
space("Sipontum", "port", 0, "X", 1, 0, 3, 1325, 455)
space("Sirmium", "city", 0, "X", 1, -1, 3, 1460, 208)
space("Syracusae", "major-port", 1, "Y", 1, 0, 4, 1302, 778)
space("Tacape", "port", 0, "X", 0, 1, 3, 1059, 1019)
space("Tarraco", "port", 1, "X", 1, 0, 4, 564, 599)
space("Tarsus", "port", 0, "X", -1, 0, 3, 2285, 675)
space("Thessalonica", "port", 0, "X", 0, 0, 3, 1689, 484)
space("Thubactus", "port", 0, "X", 0, 0, 3, 1276, 1084)
space("Tingis", "port", 0, "X", 0, 0, 3, 257, 1000)
space("Toletum", "city", 0, "X", 0, 0, 3, 359, 712)
space("Treviri", "city", 0, "X", 1, 1, 3, 860, 68)
space("Utica", "major-port", 1, "X", -1, 0, 4, 1045, 795)
space("Mare Aegaeum", "sea", 0, "Y", 0, 0, 5, 1830, 670)
space("Mare Aegypticum", "sea", 0, "X", 0, 0, 5, 2020, 905)
space("Mare Hadriaticum", "sea", 0, "X", 0, 0, 5, 1360, 390)
space("Mare Hispanum", "sea", 0, "Y", 0, 0, 5, 835, 650)
space("Mare Internum", "sea", 0, "X", 0, 0, 5, 1485, 870)
space("Mare Tyrrhenum", "sea", 0, "X", 0, 0, 5, 1140, 640)
space("Oceanus Atlanticus", "sea", 0, "Y", 0, 0, 5, 118, 1014)
space("Pontus Euxinus", "sea", 0, "X", 0, 0, 5, 2147, 271)
space("Propontis", "sea", 0, "X", 0, 0, 5, 1945, 468)
function edge(a, b, type) {
a = SPACES.findIndex(s=>s.name===a)
b = SPACES.findIndex(s=>s.name===b)
let AB = (a > b) ? b * 100 + a : a * 100 + b
EDGES[AB] = type
SPACES[a].exits.push(b)
SPACES[b].exits.push(a)
}
function major(a,b) { edge(a,b, "major"); }
function minor(a,b) { edge(a,b, "minor"); }
function strait(a,b) { edge(a,b, "strait"); }
function sea(a,b) { edge(a,b, "sea"); }
major("Alexandria", "Catabathmus")
major("Alexandria", "Memphis")
major("Antiochia", "Damascus")
major("Antiochia", "Tarsus")
major("Athenae", "Thessalonica")
major("Aenos", "Byzantium")
major("Aenos", "Thessalonica")
major("Ancyra", "Appia")
major("Ancyra", "Eusebia")
major("Ancyra", "Nicomedia")
major("Appia", "Ephesus")
major("Aquileia", "Ravenna")
major("Aquileia", "Salona")
major("Aquileia", "Sirmium")
major("Asculum", "Ravenna")
major("Badias", "Utica")
major("Bilbilis", "Burdigala")
major("Bilbilis", "Toletum")
major("Brundisium", "Neapolis")
major("Burdigala", "Narbo")
major("Carthago Nova", "Corduba")
major("Carthago Nova", "Tarraco")
major("Catabathmus", "Cyrene")
major("Cenabum", "Lugdunum")
major("Corduba", "Gades")
major("Corduba", "Toletum")
major("Damascus", "Jerusalem")
major("Dyrrachium", "Thessalonica")
major("Eusebia", "Tarsus")
major("Genua", "Massilia")
major("Genua", "Roma")
major("Genua", "Ravenna")
major("Iomnium", "Utica")
major("Jerusalem", "Pelusium")
major("Lugdunum", "Massilia")
major("Massilia", "Narbo")
major("Memphis", "Pelusium")
major("Narbo", "Tarraco")
major("Neapolis", "Roma")
major("Neapolis", "Rhegium")
major("Serdica", "Sirmium")
major("Serdica", "Thessalonica")
major("Tacape", "Utica")
minor("Alexandria", "Pelusium")
minor("Athenae", "Ambracia")
minor("Athenae", "Pylos")
minor("Aenos", "Serdica")
minor("Ambracia", "Dyrrachium")
minor("Ancyra", "Sinope")
minor("Appia", "Nicomedia")
minor("Appia", "Perga")
minor("Asculum", "Roma")
minor("Asculum", "Sipontum")
minor("Asturica", "Bilbilis")
minor("Asturica", "Emerita")
minor("Asturica", "Portus")
minor("Asturica", "Toletum")
minor("Badias", "Iomnium")
minor("Badias", "Tacape")
minor("Bilbilis", "Tarraco")
minor("Brundisium", "Sipontum")
minor("Burdigala", "Cenabum")
minor("Carthago Nova", "Gades")
minor("Carthago Nova", "Toletum")
minor("Cenabum", "Treviri")
minor("Cyrene", "Thubactus")
minor("Dyrrachium", "Salona")
minor("Ephesus", "Perga")
minor("Ephesus", "Pergamum")
minor("Emerita", "Gades")
minor("Emerita", "Olisipo")
minor("Eusebia", "Sinope")
minor("Gades", "Olisipo")
minor("Genua", "Lugdunum")
minor("Iomnium", "Siga")
minor("Lilybaeum", "Messana")
minor("Lilybaeum", "Syracusae")
minor("Lugdunum", "Treviri")
minor("Messana", "Syracusae")
minor("Neapolis", "Sipontum")
minor("Nicomedia", "Pergamum")
minor("Nicomedia", "Sinope")
minor("Olisipo", "Portus")
minor("Perga", "Tarsus")
minor("Roma", "Ravenna")
minor("Sala", "Siga")
minor("Sala", "Tingis")
minor("Salona", "Sirmium")
minor("Siga", "Tingis")
minor("Tacape", "Thubactus")
strait("Aenos", "Pergamum")
strait("Byzantium", "Nicomedia")
strait("Gades", "Tingis")
strait("Messana", "Rhegium")
sea("Alexandria", "Mare Aegypticum")
sea("Antiochia", "Mare Aegypticum")
sea("Athenae", "Mare Aegaeum")
sea("Aenos", "Mare Aegaeum")
sea("Aleria", "Mare Tyrrhenum")
sea("Ambracia", "Mare Internum")
sea("Aquileia", "Mare Hadriaticum")
sea("Byzantium", "Pontus Euxinus")
sea("Byzantium", "Propontis")
sea("Brundisium", "Mare Hadriaticum")
sea("Brundisium", "Mare Internum")
sea("Burdigala", "Oceanus Atlanticus")
sea("Carthago Nova", "Mare Hispanum")
sea("Caralis", "Mare Hispanum")
sea("Caralis", "Mare Tyrrhenum")
sea("Catabathmus", "Mare Aegypticum")
sea("Creta", "Mare Aegaeum")
sea("Creta", "Mare Aegypticum")
sea("Creta", "Mare Internum")
sea("Cyrene", "Mare Internum")
sea("Dyrrachium", "Mare Hadriaticum")
sea("Ephesus", "Mare Aegaeum")
sea("Gades", "Oceanus Atlanticus")
sea("Genua", "Mare Hispanum")
sea("Genua", "Mare Tyrrhenum")
sea("Iomnium", "Mare Hispanum")
sea("Lilybaeum", "Mare Internum")
sea("Lilybaeum", "Mare Tyrrhenum")
sea("Massilia", "Mare Hispanum")
sea("Mare Aegaeum", "Mare Aegypticum")
sea("Mare Aegaeum", "Mare Internum")
sea("Mare Aegaeum", "Propontis")
sea("Mare Aegaeum", "Thessalonica")
sea("Mare Aegypticum", "Mare Internum")
sea("Mare Aegypticum", "Pelusium")
sea("Mare Aegypticum", "Perga")
sea("Mare Aegypticum", "Salamis")
sea("Mare Aegypticum", "Tarsus")
sea("Mare Hadriaticum", "Mare Internum")
sea("Mare Hadriaticum", "Ravenna")
sea("Mare Hadriaticum", "Salona")
sea("Mare Hadriaticum", "Sipontum")
sea("Mare Hispanum", "Mare Tyrrhenum")
sea("Mare Hispanum", "Narbo")
sea("Mare Hispanum", "Oceanus Atlanticus")
sea("Mare Hispanum", "Siga")
sea("Mare Hispanum", "Tarraco")
sea("Mare Hispanum", "Tingis")
sea("Mare Hispanum", "Utica")
sea("Mare Internum", "Mare Tyrrhenum")
sea("Mare Internum", "Messana")
sea("Mare Internum", "Pylos")
sea("Mare Internum", "Rhegium")
sea("Mare Internum", "Syracusae")
sea("Mare Internum", "Tacape")
sea("Mare Internum", "Thubactus")
sea("Mare Internum", "Utica")
sea("Mare Tyrrhenum", "Messana")
sea("Mare Tyrrhenum", "Neapolis")
sea("Mare Tyrrhenum", "Roma")
sea("Mare Tyrrhenum", "Rhegium")
sea("Mare Tyrrhenum", "Utica")
sea("Nicomedia", "Propontis")
sea("Oceanus Atlanticus", "Olisipo")
sea("Oceanus Atlanticus", "Portus")
sea("Oceanus Atlanticus", "Sala")
sea("Oceanus Atlanticus", "Tingis")
sea("Pontus Euxinus", "Propontis")
sea("Pontus Euxinus", "Sinope")
function block(row, col, name, type, steps, initiative, firepower, levy = 0) {
if (levy)
levy = SPACES.findIndex(s=>s.name===levy)
BLOCKS.push({ name, type, steps, initiative, firepower, levy, row, col })
}
block(5,5, "Caesar", "leader", 3, "A", 3)
block(5,6, "Antonius", "leader", 2, "A", 2)
block(6,1, "Octavian", "leader", 3, "A", 2)
block(1,1, "Legio 7", "legio", 3, "C", 2, "Tarraco")
block(1,2, "Legio 8", "legio", 3, "C", 3, "Tarraco")
block(1,3, "Legio 9", "legio", 3, "C", 2, "Carthago Nova")
block(1,4, "Legio 10", "legio", 3, "C", 4, "Corduba")
block(1,5, "Legio 11", "legio", 3, "C", 3, "Genua")
block(1,6, "Legio 12", "legio", 3, "C", 3, "Genua")
block(2,1, "Legio 13", "legio", 3, "C", 3, "Ravenna")
block(2,2, "Legio 14", "legio", 3, "C", 3, "Ravenna")
block(2,3, "Legio 16", "legio", 3, "C", 2, "Aquileia")
block(2,4, "Legio 17", "legio", 4, "C", 2, "Roma")
block(2,5, "Legio 18", "legio", 4, "C", 2, "Neapolis")
block(2,6, "Legio 19", "legio", 4, "C", 2, "Syracusae")
block(3,1, "Legio 20", "legio", 4, "C", 2, "Athenae")
block(3,2, "Legio 21", "legio", 4, "C", 3, "Ancyra")
block(3,3, "Equitatus 1", "equitatus", 3, "B", 2, "Lugdunum")
block(3,4, "Equitatus 2", "equitatus", 2, "B", 2, "Toletum")
block(3,5, "Equitatus 3", "equitatus", 2, "B", 3, "Byzantium")
block(4,4, "Equitatus 4", "equitatus", 3, "B", 3, "Antiochia")
block(3,6, "Auxilia 1", "auxilia-b", 4, "B", 1)
block(4,1, "Auxilia 2", "auxilia-b", 4, "B", 1)
block(4,2, "Auxilia 3", "auxilia-a", 3, "A", 1)
block(4,3, "Auxilia 4", "auxilia-a", 3, "A", 1)
block(5,4, "Ballista", "ballista", 2, "X", 4)
block(4,5, "Navis 1", "navis", 2, "D", 2)
block(4,6, "Navis 2", "navis", 2, "D", 2)
block(5,1, "Navis 3", "navis", 2, "D", 2)
block(5,2, "Navis 4", "navis", 2, "D", 3)
block(5,3, "Navis 5", "navis", 2, "D", 3)
block(1,1, "Cleopatra", "cleopatra", 4, "C", 1)
block(1,1, "Pompeius", "leader", 3, "B", 3)
block(1,2, "Scipio", "leader", 3, "A", 2)
block(1,3, "Brutus", "leader", 2, "A", 2)
block(3,6, "Legio 1", "legio", 4, "C", 2, "Roma")
block(4,1, "Legio 2", "legio", 4, "C", 2, "Carthago Nova")
block(4,2, "Legio 3", "legio", 3, "C", 3, "Ravenna")
block(4,3, "Legio 4", "legio", 3, "C", 2, "Carthago Nova")
block(4,4, "Legio 5", "legio", 3, "C", 2, "Tarraco")
block(4,5, "Legio 6", "legio", 3, "C", 2, "Tarraco")
block(4,6, "Legio 32", "legio", 3, "C", 2, "Athenae")
block(5,1, "Legio 33", "legio", 3, "C", 3, "Creta")
block(5,2, "Legio 34", "legio", 3, "C", 3, "Antiochia")
block(5,3, "Legio 35", "legio", 3, "C", 2, "Byzantium")
block(5,4, "Legio 36", "legio", 4, "C", 2, "Ephesus")
block(5,5, "Legio 37", "legio", 3, "C", 2, "Syracusae")
block(5,6, "Legio 38", "legio", 4, "C", 2, "Alexandria")
block(6,1, "Legio 39", "legio", 3, "C", 2, "Utica")
block(2,5, "Equitatus 1", "equitatus", 2, "B", 3, "Toletum")
block(2,6, "Equitatus 2", "equitatus", 4, "B", 2, "Badias")
block(3,1, "Equitatus 3", "equitatus", 3, "B", 2, "Antiochia")
block(2,4, "Elephant", "elephant", 2, "B", 3, "Utica")
block(3,2, "Auxilia 1", "auxilia-b", 4, "B", 1)
block(3,3, "Auxilia 2", "auxilia-b", 4, "B", 1)
block(3,4, "Auxilia 3", "auxilia-a", 3, "A", 1)
block(3,5, "Auxilia 4", "auxilia-a", 3, "A", 1)
block(2,3, "Ballista", "ballista", 2, "X", 4)
block(1,4, "Navis 1", "navis", 2, "D", 3)
block(1,5, "Navis 2", "navis", 2, "D", 3)
block(1,6, "Navis 3", "navis", 2, "D", 2)
block(2,1, "Navis 4", "navis", 2, "D", 2)
block(2,2, "Navis 5", "navis", 2, "D", 2)
}
init_data()
if (typeof module !== 'undefined')
module.exports = { CARDS, BLOCKS, SPACES, EDGES }
|