-
Notifications
You must be signed in to change notification settings - Fork 0
/
risky.html
857 lines (806 loc) · 34.4 KB
/
risky.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
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
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset = "UTF-8">
<meta name = "viewport" content = "width = device-width">
<!-- Use the title from a page's frontmatter if it has one -->
<title>Risky Conquest 1.1</title>
<link rel = "stylesheet" href = "stylesheets/styles.css">
<link rel = "stylesheet" href = "stylesheets/highlighting.css">
<link rel = "stylesheet" href = "stylesheets/risky.css">
<script src = "javascripts/risky.js"></script>
</head>
<body>
<div class = "page">
<header class = "back">
<nav>
<ul>
<li>
<p><a href = "index.html">Index</a></p>
</li>
</ul>
</nav>
</header>
<h1 class = "center title" id = "title">
Risky Conquest
</h1>
<div id = "flex-wrapper">
<div id = "armies">
<div>
<p id = "turn-player-remaining-gold">Remaining Gold: </p>
</div>
<div id = "armies-all">
<h2>Available</h2>
<ol id = "territory-armies-all"></ol>
</div>
<div id = "armies-selected">
<h2>Selected</h2>
<ol id = "territory-armies-selected"></ol>
</div>
<div id = "armies-attack"></div>
<div id = "attacks">
<h2>Orders</h2>
<ol id = "territory-attacks"></ol>
</div>
<div id = "choose-start">
<button id="aggressive-start" title="Start with extra units and gain 1000 gold at the end of phase 3 to expand quicker than your opponents">Aggressive</button>
<button id="defensive-start" title="Build defensive walls on all your territories at the end of phase 3 to dig in and hold your ground">Defensive</button>
<button id="scientific-start" title="Control the strongest units in the game by starting with level 2 archers and spawning level 5 neutral units at the end of phase 3">Scientific</button>
</div>
</div>
<div id = "map">
<div id = "territories">
<div id = "section0" class="section">
<div class="container">
<ol class="even nothing-up face-to-face-down">
<li class='hex base' id='base1'>
<div class="content info">
<p class='id'>1</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd face-to-face-up point-to-point-down">
<li class='hex' id='outer1'>
<div class="content info">
<p class='id'>1</p>
</div>
<div class="content units"></div>
</li>
<li class='hex' id='outer2'>
<div class="content info">
<p class='id'>2</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up face-to-face-down">
<li class='hex' id='middle1'>
<div class="content info">
<p class='id'>1</p>
</div>
<div class="content units"></div>
</li>
<li class='hex' id='middle2'>
<div class="content info">
<p class='id'>2</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="even face-to-face-up point-to-point-down">
<li class='hex inner' id='inner1'>
<div class="content info">
<p class='id'>1</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="even point-to-point-up nothing-down">
<li class='hex blank'></li>
</ol>
</div>
</div>
<div id = "section1" class="section">
<div class="container">
<ol class="odd nothing-up point-to-point-down">
<li class='hex water', id='water1'>
<div class="content info">
<p class='id'>1</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up point-to-point-down">
<li class='hex blank half'></li>
</ol>
<ol class="odd point-to-point-up point-to-point-down">
<li class='hex' id='middle3'>
<div class="content info">
<p class='id'>3</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up point-to-point-down">
<li class='hex inner' id='inner2'>
<div class="content info">
<p class='id'>2</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up nothing-down">
<li class='hex blank half'></li>
</ol>
</div>
</div>
<div id = "section2" class="section">
<div class="container">
<ol class="even nothing-up face-to-face-down">
<li class='hex base' id='base2'>
<div class="content info">
<p class='id'>2</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd face-to-face-up point-to-point-down">
<li class='hex' id='outer3'>
<div class="content info">
<p class='id'>3</p>
</div>
<div class="content units"></div>
</li>
<li class='hex' id='outer4'>
<div class="content info">
<p class='id'>4</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up face-to-face-down">
<li class='hex' id='middle4'>
<div class="content info">
<p class='id'>4</p>
</div>
<div class="content units"></div>
</li>
<li class='hex' id='middle5'>
<div class="content info">
<p class='id'>5</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="even face-to-face-up point-to-point-down">
<li class='hex inner' id='inner3'>
<div class="content info">
<p class='id'>3</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="even point-to-point-up nothing-down">
<li class='hex blank'></li>
</ol>
</div>
</div>
<div id = "section3" class="section">
<div class="container">
<ol class="odd nothing-up point-to-point-down">
<li class='hex water', id='water2'>
<div class="content info">
<p class='id'>2</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up point-to-point-down">
<li class='hex blank half'></li>
</ol>
<ol class="odd point-to-point-up point-to-point-down">
<li class='hex' id='middle6'>
<div class="content info">
<p class='id'>6</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up point-to-point-down">
<li class='hex inner' id='inner4'>
<div class="content info">
<p class='id'>4</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up nothing-down">
<li class='hex blank half'></li>
</ol>
</div>
</div>
<div id = "section4" class="section">
<div class="container">
<ol class="even nothing-up face-to-face-down">
<li class='hex base' id='base3'>
<div class="content info">
<p class='id'>3</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd face-to-face-up point-to-point-down">
<li class='hex' id='outer5'>
<div class="content info">
<p class='id'>5</p>
</div>
<div class="content units"></div>
</li>
<li class='hex' id='outer6'>
<div class="content info">
<p class='id'>6</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up face-to-face-down">
<li class='hex' id='middle7'>
<div class="content info">
<p class='id'>7</p>
</div>
<div class="content units"></div>
</li>
<li class='hex' id='middle8'>
<div class="content info">
<p class='id'>8</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="even face-to-face-up point-to-point-down">
<li class='hex inner' id='inner5'>
<div class="content info">
<p class='id'>5</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="even point-to-point-up nothing-down">
<li class='hex blank'></li>
</ol>
</div>
</div>
<div id = "section5" class="section">
<div class="container">
<ol class="odd nothing-up point-to-point-down">
<li class='hex water', id='water3'>
<div class="content info">
<p class='id'>3</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up point-to-point-down">
<li class='hex blank half'></li>
</ol>
<ol class="odd point-to-point-up point-to-point-down">
<li class='hex' id='middle9'>
<div class="content info">
<p class='id'>9</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up point-to-point-down">
<li class='hex inner' id='inner6'>
<div class="content info">
<p class='id'>6</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up nothing-down">
<li class='hex blank half'></li>
</ol>
</div>
</div>
<div id = "section6" class="section">
<div class="container">
<ol class="even nothing-up face-to-face-down">
<li class='hex base' id='base4'>
<div class="content info">
<p class='id'>4</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd face-to-face-up point-to-point-down">
<li class='hex' id='outer7'>
<div class="content info">
<p class='id'>7</p>
</div>
<div class="content units"></div>
</li>
<li class='hex' id='outer8'>
<div class="content info">
<p class='id'>8</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up face-to-face-down">
<li class='hex' id='middle10'>
<div class="content info">
<p class='id'>10</p>
</div>
<div class="content units"></div>
</li>
<li class='hex' id='middle11'>
<div class="content info">
<p class='id'>11</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="even face-to-face-up point-to-point-down">
<li class='hex inner' id='inner7'>
<div class="content info">
<p class='id'>7</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="even point-to-point-up nothing-down">
<li class='hex blank'></li>
</ol>
</div>
</div>
<div id = "section7" class="section">
<div class="container">
<ol class="odd nothing-up point-to-point-down">
<li class='hex water', id='water4'>
<div class="content info">
<p class='id'>4</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up point-to-point-down">
<li class='hex blank half'></li>
</ol>
<ol class="odd point-to-point-up point-to-point-down">
<li class='hex' id='middle12'>
<div class="content info">
<p class='id'>12</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up point-to-point-down">
<li class='hex inner' id='inner8'>
<div class="content info">
<p class='id'>8</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up nothing-down">
<li class='hex blank half'></li>
</ol>
</div>
</div>
<div id = "section8" class="section">
<div class="container">
<ol class="even nothing-up face-to-face-down">
<li class='hex base' id='base5'>
<div class="content info">
<p class='id'>5</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd face-to-face-up point-to-point-down">
<li class='hex' id='outer9'>
<div class="content info">
<p class='id'>9</p>
</div>
<div class="content units"></div>
</li>
<li class='hex' id='outer10'>
<div class="content info">
<p class='id'>10</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up face-to-face-down">
<li class='hex' id='middle13'>
<div class="content info">
<p class='id'>13</p>
</div>
<div class="content units"></div>
</li>
<li class='hex' id='middle14'>
<div class="content info">
<p class='id'>14</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="even face-to-face-up point-to-point-down">
<li class='hex inner' id='inner9'>
<div class="content info">
<p class='id'>9</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="even point-to-point-up nothing-down">
<li class='hex blank'></li>
</ol>
</div>
</div>
<div id = "section9" class="section">
<div class="container">
<ol class="odd nothing-up point-to-point-down">
<li class='hex water', id='water5'>
<div class="content info">
<p class='id'>5</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up point-to-point-down">
<li class='hex blank half'></li>
</ol>
<ol class="odd point-to-point-up point-to-point-down">
<li class='hex' id='middle15'>
<div class="content info">
<p class='id'>15</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up point-to-point-down">
<li class='hex inner' id='inner10'>
<div class="content info">
<p class='id'>10</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up nothing-down">
<li class='hex blank half'></li>
</ol>
</div>
</div>
<div id = "section10" class="section">
<div class="container">
<ol class="even nothing-up face-to-face-down">
<li class='hex base' id='base6'>
<div class="content info">
<p class='id'>6</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd face-to-face-up point-to-point-down">
<li class='hex' id='outer11'>
<div class="content info">
<p class='id'>11</p>
</div>
<div class="content units"></div>
</li>
<li class='hex' id='outer12'>
<div class="content info">
<p class='id'>12</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up face-to-face-down">
<li class='hex' id='middle16'>
<div class="content info">
<p class='id'>16</p>
</div>
<div class="content units"></div>
</li>
<li class='hex' id='middle17'>
<div class="content info">
<p class='id'>17</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="even face-to-face-up point-to-point-down">
<li class='hex inner' id='inner11'>
<div class="content info">
<p class='id'>11</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="even point-to-point-up nothing-down">
<li class='hex blank'></li>
</ol>
</div>
</div>
<div id = "section11" class="section">
<div class="container">
<ol class="odd nothing-up point-to-point-down">
<li class='hex water', id='water6'>
<div class="content info">
<p class='id'>6</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up point-to-point-down">
<li class='hex blank half'></li>
</ol>
<ol class="odd point-to-point-up point-to-point-down">
<li class='hex' id='middle18'>
<div class="content info">
<p class='id'>18</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up point-to-point-down">
<li class='hex inner' id='inner12'>
<div class="content info">
<p class='id'>12</p>
</div>
<div class="content units"></div>
</li>
</ol>
<ol class="odd point-to-point-up nothing-down">
<li class='hex blank half'></li>
</ol>
</div>
</div>
<div id="section12" class="center section">
<div class="container">
<ol class="center odd nothing-up nothing-down">
<li class="center hex" id='$'>
<div class="content info">
<p class='id mid'>$</p>
</div>
<div class="content units"></div>
</li>
</ol>
</div>
</div>
</div>
<svg id="paths"></svg>
<svg id="walls"></svg>
<svg id="mines"></svg>
<svg id="castles"></svg>
</div>
<div id = "info">
<h2 id = "territory-name"></h2>
<h3>Control</h3>
<p id = "territory-controller"></p>
<h3>Structures</h3>
<p id = "territory-mines" title="Mines increase gold income"></p>
<p id = "territory-wall" title="Walls double the strength of defending units"></p>
<p id = "territory-castle" title="Castles can spawn units"></p>
<h3>Gold Income</h3>
<p id = "territory-gold-income" title="The gold this territory gives per turn"></p>
<div id="info-build-units">
<h3>Buy Units</h3>
<h4>20 Gold</h4>
<div class="buy">
<label for="archers" title="Weak to Calvary">Archers</label>
<input type="number" id="archers"></input>
</div>
<div class="buy">
<label for="calvary" title="Weak to Infantry">Calvary</label>
<input type="number" id="calvary"></input>
</div>
<div class="buy">
<label for="infantry" title="Weak to Archers">Infantry</label>
<input type="number" id="infantry"></input>
</div>
<h4>1500 Gold</h4>
<div class="buy">
<label for="rams" title="Negate Wall bonuses and destroy Walls in multiples (consumed on use)">Battering Ram</label>
<input type="number" id="rams"></input>
</div>
</div>
<div id="info-buttons">
<h4>Territory Upgrades</h4>
<div class="buy">
<label for="build-mines" id="build-mines-label" title="Gain more Gold from this territory">Mines +1: 200</label>
<input type="number" id="build-mines"></input>
</div>
<button id="build-wall" title="Doubles the strength of your defending units">Build Wall (1500)</button>
<button id="build-castle" title="Spawn units">Build Castle (2000)</button>
<button id="raze-down" title="Remove all Mines, Walls and Castles (no refund)">Raze Down</button>
</div>
</div>
<div id = "players">
<ul>
<li id = "p1-player-info" class="p1 player-info">
<h2>Player 1</h2>
<p id = "p1-gold"></p>
<p id = "p1-archers-level"></p>
<p id = "p1-calvary-level"></p>
<p id = "p1-infantry-level"></p>
<div id = "turn-player-unit-upgrades">
<button id = "turn-player-upgrade-archers" title="Double the strength of newly spawned Archers">Upgrade Archers</button>
<button id = "turn-player-upgrade-calvary" title="Double the strength of newly spawned Calvary">Upgrade Calvary</button>
<button id = "turn-player-upgrade-infantry" title="Double the strength of newly spawned Infantry">Upgrade Infantry</button>
</div>
<button id="end-turn">End Turn</button>
</li>
<li id = "p2-player-info" class="p2 player-info">
<h2>Player 2</h2>
<p id = "p2-gold"></p>
<p id = "p2-archers-level"></p>
<p id = "p2-calvary-level"></p>
<p id = "p2-infantry-level"></p>
</li>
<li id = "p3-player-info" class="p3 player-info">
<h2>Player 3</h2>
<p id = "p3-gold"></p>
<p id = "p3-archers-level"></p>
<p id = "p3-calvary-level"></p>
<p id = "p3-infantry-level"></p>
</li>
<li id = "p4-player-info" class="p4 player-info">
<h2>Player 4</h2>
<p id = "p4-gold"></p>
<p id = "p4-archers-level"></p>
<p id = "p4-calvary-level"></p>
<p id = "p4-infantry-level"></p>
</li>
<li id = "p5-player-info" class="p5 player-info">
<h2>Player 5</h2>
<p id = "p5-gold"></p>
<p id = "p5-archers-level"></p>
<p id = "p5-calvary-level"></p>
<p id = "p5-infantry-level"></p>
</li>
<li id = "p6-player-info" class="p6 player-info">
<h2>Player 6</h2>
<p id = "p6-gold"></p>
<p id = "p6-archers-level"></p>
<p id = "p6-calvary-level"></p>
<p id = "p6-infantry-level"></p>
</li>
</ul>
</div>
</div>
<div id = "mine-gold-income">
<h2>Mine gold income levels</h2>
<ol id = "mine-gold-income-list"></ol>
</div>
<div id = "tutorial">
<article>
<h1>Preamble</h1>
<h2>Risky Business [Forum Game]</h2>
<p>This is no longer a forum game, has slight tweaks and nothing to do with Business. Therefore this shall be known as:</p>
<h2>Risky Conquest 1.1</h2>
<p>This game is mostly an automation of the aforementioned forum game ran by Devour on Stickpage forums. The game ran there never finished, but it was both very simple and had lots of strategy so it seemed like a good target to code up. Perhaps on a rerun I might come further than 4th.</p>
<p><a href="risky2.html">An updated version of this game is available</a>.</p>
<h1>Tutorial</h1>
<p>There are 6 players positioned equally on a hexagonal map. In the centre is a territory with 50 neutral units that must be defeated to take. When a player takes control of it they gain 2000 gold immediately, and still 600 gold each turn after. The game ends when one player has become unstoppable, probably by permanent control of the centre. Detecting this automatically is left as an excerise to the reader.</p>
<p>Each player commits their actions for the turn. When player 6 ends their turn the next phase is started and all player’s actions take place at once.</p>
<h2>Starts</h2>
<p>There are 3 starts you can choose on your first turn. If you do not choose you will get Defensive.</p>
<ul>
<li>Defensive: At the end of phase 3 walls are built on every territory you own. You can get 4** walls from this which is worth 6000 Gold.</li>
<li>Aggressive: You get 20 extra starting units and 1000 gold immediately which helps you expand further and faster than the other players. Starting units will always be a turn ahead of everything else.</li>
<li>Scientific: You start with level 2 archers (worth 1500 Gold). At the end of phase 3 you get 1 level 5 neutral unit on every territory you own. This gives you up to 5** of the strongest units in the game. Each of these is worth 16 normal units so in trades you can save up to 1600 Gold in units.</li>
</ul>
<h2>Units</h2>
<p>Territories are fought over with units which are bought on castles. Castles are indicated by a black dot, and player control by the territory colour. There are 4* types of units, the neutral starting ones and Archers, Calvary and Infantry. Neutral units trade 1 for 1 in battle before dying. A battle of 11 against 10 will leave the former winning with 1 unit left. Each of the otheres are strong against or weak against the other in a rock-paper-scissors system. 1 Archer is worth 2 Infantry, 1 Calvary is worth 2 Archers and 1 Infantry is worth 2 Calvary. Units can also be upgraded which doubles their strength for each level. 1 level 4 Archer is worth 8 neutral units, 4 calvary or 16 infantry. All units start at level 1, and neutral units cannot be purchased or upgraded.</p>
<blockquote>
<p>“But Devour, what if my country has 25 archers and 25 cavalry verse 50 infantry?” I hear you ask. Well my man, when you have multiple different units on a territory, they have to take their turns. Think of it like having some units in the front while others wait in the back line. People will have to tell me if they want their Archers in Line 1 and their Cavalry on Line 2. Infantry on Line 3 if they have that too. In this setup, the Cavalry won’t fight until all the Archers are dead. I know it’s kind of gimmicky but hey, it’s the price we pay for simplicity.</p>
</blockquote>
<p>Unit upgrades do not apply to the units you already have, you have to spawn new ones.</p>
<h2>Gold</h2>
<p>Each unit costs 20 gold. This spawns one new unit on a Castle after all battles take place, if you retain control of that territory. All failed purchases like this refund in full.</p>
<h3>Mines</h3>
<p>Mine costs and levels are listed above this article. Mines produce extra gold from a territory. The extra gold per turn diminishes sharply with further levels. Mines are indicated by 0-6 gold dots.</p>
<h3>Territory Gold</h3>
<p>Water territories give no gold. Normal territories give 150 gold per turn. The centre gives 2000 gold on taking and 600 gold after. Each player’s starting territory is a Capital which gives 400 gold per turn. Capitals cannot be created, but can be taken from other players.</p>
<h3>Walls</h3>
<p>A wall costs 1500 gold to build, and is built after all battles. On all future battles the defending units inside gain 1 level of strength. Walls are indicated by grey outlines.</p>
<h3>* Battering Rams</h3>
<p>A Battering Ram is a special unit that does not fight. Each unit costs 1500 gold. 1 Battering Ram negates wall defensive bonuses and multiple destroy the attacked wall entirely, in both cases being consumed upon use. Battering Rams can be intercepted or attacked so should always be deployed behind a protective army to keep them alive on their journey to seige the opponent.</p>
<h3>Castles.</h3>
<p>A castle costs 2000 gold to build, and is build after all battles. Castles under your control are the only territory you can spawn units on. No castles, no new units! Castles are indicated by black dots.</p>
<h2>Razing down</h2>
<p>You can attempt to raze down a territory removing all mines, walls and castles on it. This is useful if you took opponent’s territory and don’t expect to hold it for long. A razed down Capital never comes back!</p>
<h1>Number of players</h1>
<h2>I have no friends</h2>
<p>Play with the bots instead ☺️<br>
Good luck! (And no they do not cheat)</p>
<h2>I have some friends</h2>
<p>2+ players: toggle off the <a href="#bot-controls">bots</a> below before starting</p>
<ul>
<li>2 players: Form 2 teams each
<ul>
<li>p1,p2,p3 vs p4,p5,p6</li>
<li>p1,p3,p5 vs p2,p4,p6 (probably more interesting)</li>
</ul></li>
<li>3 players: Form 2 teams each
<ul>
<li>p1,p2 vs p3,p4 vs p5,p6</li>
<li>p1, p4 vs p2,p5 vs p3,p6 (probably more interesting)</li>
</ul></li>
<li>4 players: rotate control of two opposite non player players (so everyone has 1 as a neighbour)
<ul>
<li>p2 vs p3 vs p5 vs p6 vs p1[rotating control through p2,p3,p5,p6] vs p4[rotating p5,p6,p2,p3]</li>
</ul></li>
<li>5 players: rotate control of last non player player
<ul>
<li>p1 vs p2 vs p3 vs p4 vs p5 vs p6[rotating p5,p1,p2,p3,p4]</li>
</ul></li>
<li>6 players: ☺️ Full game</li>
</ul>
<p>You could also toggle the bots on for the otherwise rotating players above but the bots are unlikely to seem fair mixed with humans. They will attack only one of their neighbours when they have an arbitary choice.</p>
<h1>Notes</h1>
<p>Player colours chosen using <a href="http://tools.medialab.sciences-po.fr/iwanthue/">I want hue</a> for optimally distinct colors considering colourblindness.</p>
<p>The original <a href="http://forums.stickpage.com/showthread.php?100762-Risky-Business-Forum-Game">forum game</a></p>
<h2>Differences to original</h2>
<ul>
<li>Battering Rams can destroy walls when multiple are present.</li>
<li>Units can only be upgraded at most one level per turn.</li>
<li>Water territories are 800 Neutral units instead of 2000.</li>
<li>Multiple army battles may not be the same algorithm as in the original. The original never had a scenario when 3+ armies fought at once.</li>
<li>You cannot order your units without deploying them to another territory (lack of UI, bots do not do this either to be fair, not intended to remain unavailable)</li>
<li>The order of resolving battles/purchases/upgrades may be different to the original. It was never explicitly stated.</li>
<li>Agressive start gets Gold worth half a Castle instead of a discounted Castle.</li>
<li>Scientific is buffed to also gain up to 5** level 5 neutral units which still leaves it gaining half in Gold of Defensive and less expansion power than Aggressive. The unit upgrade was mostly arbitary so is fixed to Archers. Scientific now has significant attacking power to make up for the advantages of the other two.</li>
<li>Terminology changes: province -> territory, turn -> phase, messaging actions to Devour -> turn.</li>
</ul>
<p>** Turns out you can get 6 territories by the end of phase 3 instead of 5. One variant of an aggressive start bot does this.</p>
<h2>Single Player Challenges</h2>
<ul>
<li>Win with Defensive</li>
<li>Win with Scientific</li>
<li>Win with Aggressive</li>
<li>Win without buying Infantry</li>
<li>Skip your first two turns (except start choice) and still win</li>
</ul>
</article>
</div>
<div id = "bot-controls">
<h2 id>Bots</h2>
<div>
<label for = "automate-player-2">Player 2</label>
<input type = "checkbox" id = "automate-player-2" checked></input>
</div>
<div>
<label for = "automate-player-3">Player 3</label>
<input type = "checkbox" id = "automate-player-3" checked></input>
</div>
<div>
<label for = "automate-player-4">Player 4</label>
<input type = "checkbox" id = "automate-player-4" checked></input>
</div>
<div>
<label for = "automate-player-5">Player 5</label>
<input type = "checkbox" id = "automate-player-5" checked></input>
</div>
<div>
<label for = "automate-player-6">Player 6</label>
<input type = "checkbox" id = "automate-player-6" checked></input>
</div>
</div>
<script>
window.onbeforeunload = () => { return 'Are you sure you want to quit this game?' }
</script>
</div>
<footer>
<div class = "footer">
<p>My content on this site is licensed under Creative Commons By Attribution <a href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</a></p>
<p>This site's source code is licensed under the MIT license <a href="https://github.com/Skeletonxf/Skeletonxf.github.io/tree/code">https://github.com/Skeletonxf/Skeletonxf.github.io/tree/code</a></p>
</div>
</footer>
</body>
</html>