-
Notifications
You must be signed in to change notification settings - Fork 0
/
Index.html
936 lines (752 loc) · 46.8 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
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
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Keegan Lenz and Spencer Folsom's Board Game Poject</title>
</head>
<body>
<!-- instructions -->
<h1>Stratego by Spencer Folsom and Keegan Lenz</h1>
<h3>Objective: Capture the openents flag</h3>
<h3>Layout: The player can move on all green tiles, but cannot move on blue tiles with the exception of the Captain unit.</h3>
<h3>Players will take turns moving pieces. Red always goes first.</h3>
<h3>Each Player will start out with 30 pieces that occupy three rows on the board. The pieces can be arranged however the players want within the first 3 rows of the board.</h3>
<!-- not functional in code -->
<h3>Each unit has a number value that determines strength; lower # = higher power </h3>
<h3>The (x) signifies the number of pieces, while the number after the semi-colon determines the attack power.</h3>
<p>Marshal; 1 (1x) <img id="marshall" src="marshall3.png" width="100" height="100"></div></p>
<p>General; 2 (1x) <img id="general" src="general.png" width="100" height="100"></div></p>
<p>Colonel; 3 (2x) <img id="colonel" src="Colonel 3.png" width="100" height="100"></div></p>
<p>Major; 4 (2x) <img id="major" src="Major.png" width="100" height="100"></div></p>
<p>Captain; 5 (Has a boat that crosses water) (4x) <img id="captain" src="wheel.png" width="100" height="100"></div></p>
<!-- not functional in code -->
<p>Lieutenant; 6 (Can move 2 spaces and attack on same turn) (4x) <img id="lieutenant" src="spear4.png" width="200" height="200"></div></p>
<!-- not functional in code -->
<p>Sergeant; 7 (Decreases the level of Marshal by 1 on attack. This porcess can only be done once.) (4x) <img id="sergeant" src="sergeant2.png" width="100" height="100"></div></p>
<p>Miner; 8 (5x) <img id="miner" src="miner2.png" width="150" height="125"></div></p>
<p>Scout; 9 (Can move as much as they want) (6x) <img id="scout" src="scout3.png" width="200" height="100"></div></p>
<p>Flag: the target of the game; completely stationary and can’t perform actions. (1x)</p>
<!-- not functional in code -->
<h3>Encounters can be triggered by a unit attacking another. The lower number between the units wins. If their numbers are equal, both units die. You cannot attack and move in the same turn. If your unit dies, place the unit in the large box according to your color.</h3>
<h6>
<!-- all blue pieces and piece information -->
<img id="blueMarshal" src="marshall3.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80"
combat-append="redMarshall" combat-append2="redGeneral" combat-boxtype-blue1="blueMarshall"></div>
<img id="blueGeneral" src="general.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80"
combat-append="redGeneral" combat-boxtype-blue2="blueGeneral"></div>
<img id="blueColonel" src="Colonel 3.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueColonel2" src="Colonel 3.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueMajor" src="Major.png" draggable="false" ondragstart="drag(event)" width="80" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" height="80" ></div>
<img id="blueMajor2" src="Major.png" draggable="false" ondragstart="drag(event)" width="80" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" height="80" ></div>
<img id="blueCaptain" src="wheel.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto3="water" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueCaptain2" src="wheel.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto3="water" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueCaptain3" src="wheel.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto3="water" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueCaptain4" src="wheel.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto3="water" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueLieutenant" src="spear4.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueLieutenant2" src="spear4.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueLieutenant3" src="spear4.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueLieutenant4" src="spear4.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueSergeant" src="sergeant2.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-boxtype="bluePiece" data-appendto4="redPiece" data-appendto5="redFlag" width="80" height="80" ></div>
<img id="blueSergeant2" src="sergeant2.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-boxtype="bluePiece" data-appendto4="redPiece" data-appendto5="redFlag" width="80" height="80" ></div>
<img id="blueSergeant3" src="sergeant2.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-boxtype="bluePiece" data-appendto4="redPiece" data-appendto5="redFlag" width="80" height="80" ></div>
<img id="blueSergeant4" src="sergeant2.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-boxtype="bluePiece" data-appendto4="redPiece" data-appendto5="redFlag" width="80" height="80" ></div>
<img id="blueMiner" src="miner2.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueMiner2" src="miner2.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueMiner3" src="miner2.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueMiner4" src="miner2.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueMiner5" src="miner2.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueScout" src="scout3.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueScout2" src="scout3.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueScout3" src="scout3.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueScout4" src="scout3.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueScout5" src="scout3.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
<img id="blueScout6" src="scout3.png" draggable="false" ondragstart="drag(event)" data-appendto="land" data-appendto2="blueLand" data-appendto4="redPiece" data-appendto5="redFlag" data-boxtype="bluePiece" width="80" height="80" ></div>
</h6>
<div id="peices" ondrop="drop(event)" ondragover="allowDrop(event)">
</div>
<br>
<!-- the entire board -->
<div class="chessboard">
<!-- row 1 -->
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="blueFlag"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="blueFlag">BLUE FLAG</div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<!-- row 2 -->
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<!-- row 3 -->
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<!-- row 4 -->
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<!-- row 5 -->
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="darkBlue"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="water"></div>
<div class="lightBlue"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="water"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="darkBlue"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="water"></div>
<div class="lightBlue"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="water"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<!-- row 6 -->
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="lightBlue"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="water"></div>
<div class="darkBlue"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="water"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="lightBlue"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="water"></div>
<div class="darkBlue"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="water"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<!-- row 7 -->
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<!-- row 8 -->
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<!-- row 9 -->
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<!-- row 10 -->
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="redFlag"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="redFlag">RED FLAG</div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="white"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
<div class="black"ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="land"></div>
</div>
</div>
<h4>
<!-- all red pieces and piece information -->
<img id="redMarshall" src="marshall3.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80"
combat-append="blueMarshall" combat-append2="blueGeneral" combat-boxtype-red1="redMarshall"></div>
<img id="redGeneral" src="general.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80"
combat-append="blueGeneral" combat-boxtype-red2="redGeneral"></div>
<img id="redColonel" src="Colonel 3.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80"></div>
<img id="redColonel2" src="Colonel 3.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80"></div>
<img id="redMajor" src="Major.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80"></div>
<img id="redMajor2" src="Major.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80"></div>
<img id="redWheel" src="wheel.png" draggable="true" ondragstart="drag(event)" data-boxtype="redPiece" data-appendto="land" data-appendto2="redLand" data-appendto3="water" data-appendto4="bluePiece" data-appendto6="blueFlag" width="80" height="80"></div>
<img id="redWheel2" src="wheel.png" draggable="true" ondragstart="drag(event)" data-boxtype="redPiece" data-appendto="land" data-appendto2="redLand" data-appendto3="water" data-appendto4="bluePiece" data-appendto6="blueFlag" width="80" height="80"></div>
<img id="redWheel3" src="wheel.png" draggable="true" ondragstart="drag(event)" data-boxtype="redPiece" data-appendto="land" data-appendto2="redLand" data-appendto3="water" data-appendto4="bluePiece" data-appendto6="blueFlag" width="80" height="80"></div>
<img id="redWheel4" src="wheel.png" draggable="true" ondragstart="drag(event)" data-boxtype="redPiece" data-appendto="land" data-appendto2="redLand" data-appendto3="water" data-appendto4="bluePiece" data-appendto6="blueFlag" width="80" height="80"></div>
<img id="redSpear" src="spear4.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80" ></div>
<img id="redSpear2" src="spear4.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80" ></div>
<img id="redSpear3" src="spear4.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80" ></div>
<img id="redSpear4" src="spear4.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80" ></div>
<img id="redSergeant" src="sergeant2.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80" ></div>
<img id="redSergeant2" src="sergeant2.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80" ></div>
<img id="redSergeant3" src="sergeant2.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80" ></div>
<img id="redSergeant4" src="sergeant2.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80" ></div>
<img id="redMiner" src="miner2.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80" ></div>
<img id="redMiner2" src="miner2.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80" ></div>
<img id="redMiner3" src="miner2.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80"></div>
<img id="redMiner4" src="miner2.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80"></div>
<img id="redMiner5" src="miner2.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80"></div>
<img id="redScout" src="scout3.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80"></div>
<img id="redScout2" src="scout3.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80"></div>
<img id="redScout3" src="scout3.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80"></div>
<img id="redScout4" src="scout3.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80"></div>
<img id="redScout5" src="scout3.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80"></div>
<img id="redScout6" src="scout3.png" draggable="true" ondragstart="drag(event)" data-appendto="land" data-appendto2="redLand" data-appendto4="bluePiece" data-appendto6="blueFlag" data-boxtype="redPiece" width="80" height="80"></div>
</h4>
<!-- the box that indicates whose turn it's -->
<div class="turn">
<img id="turnButton" src="pic_red.png" width="150" height="150">
<h5>Color Of Square = Player's Turn</h5>
</div>
<!-- graveyards -->
<div class="deadBlue" ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="blueLand"></div>
<div class="deadRed" ondrop="drop(event)" ondragover="allowDrop(event)" data-boxtype="redLand"></div>
<!-- testing for the removal of pieces -->
<!-- <button onclick="removeBlueMarshall()">click here</button> -->
<script>
// testing for the removal of pieces
// function removeBlueMarshall(){
// blueMarshall.remove();
// }
// zooms chrome out since the board is big
document.body.style.zoom = .7
var scale = 'scale(1)';
document.body.style.webkitTransform = scale;
//prevents dragging of the instructional images
document.getElementById('marshall').setAttribute('draggable', false);
document.getElementById('general').setAttribute('draggable', false);
document.getElementById('colonel').setAttribute('draggable', false);
document.getElementById('major').setAttribute('draggable', false);
document.getElementById('captain').setAttribute('draggable', false);
document.getElementById('lieutenant').setAttribute('draggable', false);
document.getElementById('sergeant').setAttribute('draggable', false);
document.getElementById('miner').setAttribute('draggable', false);
document.getElementById('scout').setAttribute('draggable', false);
// definition of all pieces
// would be used for combat system, and other functions
var blueMarshall = document.getElementById('blueMarshal')
var blueGeneral = document.getElementById('blueGeneral')
var blueColonel = document.getElementById('blueColonel')
var blueColonel = document.getElementById('blueColonel2')
var blueMajor = document.getElementById('blueMajor')
var blueMajor2 = document.getElementById('blueMajor2')
var blueCaptain = document.getElementById('blueCaptain')
var blueCaptain2 = document.getElementById('blueCaptain2')
var blueCaptain3 = document.getElementById('blueCaptain3')
var blueCaptain4 = document.getElementById('blueCaptain4')
var blueLieutenant = document.getElementById('blueLieutenant')
var blueLieutenant2 = document.getElementById('blueLieutenant2')
var blueLieutenant3 = document.getElementById('blueLieutenant3')
var blueLieutenant4 = document.getElementById('blueLieutenant4')
var blueSergeant = document.getElementById('blueSergeant')
var blueSergeant2 = document.getElementById('blueSergeant2')
var blueSergeant3 = document.getElementById('blueSergeant3')
var blueSergeant4 = document.getElementById('blueSergeant4')
var blueMiner = document.getElementById('blueMiner')
var blueMiner2 = document.getElementById('blueMiner2')
var blueMiner3 = document.getElementById('blueMiner3')
var blueMiner4 = document.getElementById('blueMiner4')
var blueMiner5 = document.getElementById('blueMiner5')
var blueScout = document.getElementById('blueScout')
var blueScout2 = document.getElementById('blueScout2')
var blueScout3 = document.getElementById('blueScout3')
var blueScout4 = document.getElementById('blueScout4')
var blueScout5 = document.getElementById('blueScout5')
var blueScout6 = document.getElementById('blueScout6')
var redMarshall = document.getElementById('redMarshall')
var redGeneral = document.getElementById('redGeneral')
var redColonel = document.getElementById('redColonel')
var redColonel2 = document.getElementById('redColonel2')
var redMajor = document.getElementById('redMajor')
var redMajor2 = document.getElementById('redMajor2')
var redCaptain = document.getElementById('redWheel')
var redCaptain2 = document.getElementById('redWheel2')
var redCaptain3 = document.getElementById('redWheel3')
var redCaptain4 = document.getElementById('redWheel4')
var redLieutenant = document.getElementById('redSpear')
var redLieutenant2 = document.getElementById('redSpear2')
var redLieutenant3 = document.getElementById('redSpear3')
var redLieutenant4 = document.getElementById('redSpear4')
var redSergeant = document.getElementById('redSergeant')
var redSergeant2 = document.getElementById('redSergeant2')
var redSergeant3 = document.getElementById('redSergeant3')
var redSergeant4 = document.getElementById('redSergeant4')
var redMiner = document.getElementById('redMiner')
var redMiner2 = document.getElementById('redMiner2')
var redMiner3 = document.getElementById('redMiner3')
var redMiner4 = document.getElementById('redMiner4')
var redMiner5 = document.getElementById('redMiner5')
var redScout = document.getElementById('redScout')
var redScout2 = document.getElementById('redScout2')
var redScout3 = document.getElementById('redScout3')
var redScout4 = document.getElementById('redScout4')
var redScout5 = document.getElementById('redScout5')
var redScout6 = document.getElementById('redScout6')
// shows that you can drop and allows drop event
function allowDrop(ev) {
ev.preventDefault();
}
// this function will allow you to drag the pieces
function drag(ev) {
ev.dataTransfer.setData("Text", ev.target.id);
}
// this function will move the pieces, and it also filters certain drop areas for certain pieces
function drop(ev) {
ev.preventDefault();
var data = ev.dataTransfer.getData("text");
if(ev.target.getAttribute('data-boxtype') == document.getElementById(data).getAttribute('data-appendto')){
ev.target.appendChild(document.getElementById(data));
changeTurn();
}
if ( ev.target.getAttribute('data-boxtype') == document.getElementById(data).getAttribute('data-appendto2')) {
ev.target.appendChild(document.getElementById(data));
}
if ( ev.target.getAttribute('data-boxtype') == document.getElementById(data).getAttribute('data-appendto3')) {
ev.target.appendChild(document.getElementById(data));
changeTurn();
}
if ( ev.target.getAttribute('data-boxtype') == document.getElementById(data).getAttribute('data-appendto4')) {
changeTurn();
}
// if red piece is dropped on blue flag, then blue looses
if ( ev.target.getAttribute('data-boxtype') == document.getElementById(data).getAttribute('data-appendto5')){
alert("Blue Wins!\nCLICK 'OK' TO START A NEW GAME");
location.reload();
}
// if blue piece is dropped on red flag, then red looses
if ( ev.target.getAttribute('data-boxtype') == document.getElementById(data).getAttribute('data-appendto6')){
alert("Red Wins!\nCLICK 'OK' TO START A NEW GAME");
location.reload();
}
//first attempts at combat system
// if ( ev.target.getAttribute('combat-boxtype-blue1') == document.getElementById(data).getAttribute('combat-append')) {
// blueMarshall.remove();
// }
// if ( ev.target.getAttribute('combat-boxtype-red1') == document.getElementById(data).getAttribute('combat-append')) {
// redMarshall.remove();
// }
// if ( ev.target.getAttribute('combat-boxtype-blue2') == document.getElementById(data).getAttribute('combat-append2')) {
// blueGeneral.remove();
// }
// if ( ev.target.getAttribute('combat-boxtype-red2') == document.getElementById(data).getAttribute('combat-append2')) {
// redGeneral.remove();
// }
}
// function that changes turns
function changeTurn() {
// this is essentially a binary on and off switch for all piece's dragability
var image = document.getElementById('turnButton');
if (image.src.match("blue")) {
image.src = "pic_red.png";
document.getElementById('blueMarshal').setAttribute('draggable',false);
document.getElementById('blueGeneral').setAttribute('draggable',false);
document.getElementById('blueColonel').setAttribute('draggable',false);
document.getElementById('blueColonel2').setAttribute('draggable',false);
document.getElementById('blueMajor').setAttribute('draggable',false);
document.getElementById('blueMajor2').setAttribute('draggable',false);
document.getElementById('blueCaptain').setAttribute('draggable',false);
document.getElementById('blueCaptain2').setAttribute('draggable',false);
document.getElementById('blueCaptain3').setAttribute('draggable',false);
document.getElementById('blueCaptain4').setAttribute('draggable',false);
document.getElementById('blueLieutenant').setAttribute('draggable',false);
document.getElementById('blueLieutenant2').setAttribute('draggable',false);
document.getElementById('blueLieutenant3').setAttribute('draggable',false);
document.getElementById('blueLieutenant4').setAttribute('draggable',false);
document.getElementById('blueSergeant').setAttribute('draggable',false);
document.getElementById('blueSergeant2').setAttribute('draggable',false);
document.getElementById('blueSergeant3').setAttribute('draggable',false);
document.getElementById('blueSergeant4').setAttribute('draggable',false);
document.getElementById('blueMiner').setAttribute('draggable',false);
document.getElementById('blueMiner2').setAttribute('draggable',false);
document.getElementById('blueMiner3').setAttribute('draggable',false);
document.getElementById('blueMiner4').setAttribute('draggable',false);
document.getElementById('blueMiner5').setAttribute('draggable',false);
document.getElementById('blueScout').setAttribute('draggable',false);
document.getElementById('blueScout2').setAttribute('draggable',false);
document.getElementById('blueScout3').setAttribute('draggable',false);
document.getElementById('blueScout4').setAttribute('draggable',false);
document.getElementById('blueScout5').setAttribute('draggable',false);
document.getElementById('blueScout6').setAttribute('draggable',false);
document.getElementById('redMarshall').setAttribute('draggable',true);
document.getElementById('redGeneral').setAttribute('draggable',true);
document.getElementById('redColonel').setAttribute('draggable',true);
document.getElementById('redColonel2').setAttribute('draggable',true);
document.getElementById('redMajor').setAttribute('draggable',true);
document.getElementById('redMajor2').setAttribute('draggable',true);
document.getElementById('redWheel').setAttribute('draggable',true);
document.getElementById('redWheel2').setAttribute('draggable',true);
document.getElementById('redWheel3').setAttribute('draggable',true);
document.getElementById('redWheel4').setAttribute('draggable',true);
document.getElementById('redSpear').setAttribute('draggable',true);
document.getElementById('redSpear2').setAttribute('draggable',true);
document.getElementById('redSpear3').setAttribute('draggable',true);
document.getElementById('redSpear4').setAttribute('draggable',true);
document.getElementById('redSergeant').setAttribute('draggable',true);
document.getElementById('redSergeant2').setAttribute('draggable',true);
document.getElementById('redSergeant3').setAttribute('draggable',true);
document.getElementById('redSergeant4').setAttribute('draggable',true);
document.getElementById('redMiner').setAttribute('draggable',true);
document.getElementById('redMiner2').setAttribute('draggable',true);
document.getElementById('redMiner3').setAttribute('draggable',true);
document.getElementById('redMiner4').setAttribute('draggable',true);
document.getElementById('redMiner5').setAttribute('draggable',true);
document.getElementById('redScout').setAttribute('draggable',true);
document.getElementById('redScout2').setAttribute('draggable',true);
document.getElementById('redScout3').setAttribute('draggable',true);
document.getElementById('redScout4').setAttribute('draggable',true);
document.getElementById('redScout5').setAttribute('draggable',true);
document.getElementById('redScout6').setAttribute('draggable',true);
} else {
image.src = "pic_blue.png";
document.getElementById('redMarshall').setAttribute('draggable',false);
document.getElementById('redGeneral').setAttribute('draggable',false);
document.getElementById('redColonel').setAttribute('draggable',false);
document.getElementById('redColonel2').setAttribute('draggable',false);
document.getElementById('redMajor').setAttribute('draggable',false);
document.getElementById('redMajor2').setAttribute('draggable',false);
document.getElementById('redWheel').setAttribute('draggable',false);
document.getElementById('redWheel2').setAttribute('draggable',false);
document.getElementById('redWheel3').setAttribute('draggable',false);
document.getElementById('redWheel4').setAttribute('draggable',false);
document.getElementById('redSpear').setAttribute('draggable',false);
document.getElementById('redSpear2').setAttribute('draggable',false);
document.getElementById('redSpear3').setAttribute('draggable',false);
document.getElementById('redSpear4').setAttribute('draggable',false);
document.getElementById('redSergeant').setAttribute('draggable',false);
document.getElementById('redSergeant2').setAttribute('draggable',false);
document.getElementById('redSergeant3').setAttribute('draggable',false);
document.getElementById('redSergeant4').setAttribute('draggable',false);
document.getElementById('redMiner').setAttribute('draggable',false);
document.getElementById('redMiner2').setAttribute('draggable',false);
document.getElementById('redMiner3').setAttribute('draggable',false);
document.getElementById('redMiner4').setAttribute('draggable',false);
document.getElementById('redMiner5').setAttribute('draggable',false);
document.getElementById('redScout').setAttribute('draggable',false);
document.getElementById('redScout2').setAttribute('draggable',false);
document.getElementById('redScout3').setAttribute('draggable',false);
document.getElementById('redScout4').setAttribute('draggable',false);
document.getElementById('redScout5').setAttribute('draggable',false);
document.getElementById('redScout6').setAttribute('draggable',false);
document.getElementById('blueMarshal').setAttribute('draggable',true);
document.getElementById('blueGeneral').setAttribute('draggable',true);
document.getElementById('blueColonel').setAttribute('draggable',true);
document.getElementById('blueColonel2').setAttribute('draggable',true);
document.getElementById('blueMajor').setAttribute('draggable',true);
document.getElementById('blueMajor2').setAttribute('draggable',true);
document.getElementById('blueCaptain').setAttribute('draggable',true);
document.getElementById('blueCaptain2').setAttribute('draggable',true);
document.getElementById('blueCaptain3').setAttribute('draggable',true);
document.getElementById('blueCaptain4').setAttribute('draggable',true);
document.getElementById('blueLieutenant').setAttribute('draggable',true);
document.getElementById('blueLieutenant2').setAttribute('draggable',true);
document.getElementById('blueLieutenant3').setAttribute('draggable',true);
document.getElementById('blueLieutenant4').setAttribute('draggable',true);
document.getElementById('blueSergeant').setAttribute('draggable',true);
document.getElementById('blueSergeant2').setAttribute('draggable',true);
document.getElementById('blueSergeant3').setAttribute('draggable',true);
document.getElementById('blueSergeant4').setAttribute('draggable',true);
document.getElementById('blueMiner').setAttribute('draggable',true);
document.getElementById('blueMiner2').setAttribute('draggable',true);
document.getElementById('blueMiner3').setAttribute('draggable',true);
document.getElementById('blueMiner4').setAttribute('draggable',true);
document.getElementById('blueMiner5').setAttribute('draggable',true);
document.getElementById('blueScout').setAttribute('draggable',true);
document.getElementById('blueScout2').setAttribute('draggable',true);
document.getElementById('blueScout3').setAttribute('draggable',true);
document.getElementById('blueScout4').setAttribute('draggable',true);
document.getElementById('blueScout5').setAttribute('draggable',true);
document.getElementById('blueScout6').setAttribute('draggable',true);
}
}
</script>
<style>
body {
font-size: 20px;
font-family: 'Work Sans', Georgia, 'Times New Roman', Times, serif;
color: #333;
font-weight: 300;
text-align: left;
background-color: rgb(200,200,200);
user-select: none;
}
h1 {
font-weight: 300;
margin: 0px;
padding: 20px;
font-size: 50px;
background-color: rgb(100,100,100);
color: rgb(225,225,225);
user-select: none;
}
h2 {
font-weight: 300;
margin: 0px;
padding: 50px;
font-size: 25px;
background-color: #444;
color: rgb(225,225,225);
user-select: none;
}
h6 {
background-color: rgb(100,100,255);
font-size: 25px;
}
h4 {
background-color: rgb(255,100,100);
font-size: 25px;
}
h5 {
font-weight: 300;
margin: 0px;
font-size: 25px;
color: rgb(50,50,50);
}
p {
font-weight: 300;
margin: 0px;
padding: 20px;
font-size: 25px;
background-color: rgb(100,100,100);
color: rgb(225,225,225);
}
.chessboard {
width: 1000px;
height: 1000px;
top: 50px;
}
.white {
text-align: center;
float: left;
width: 100px;
height: 100px;
background-color: rgb(50,100,50);
}
.blueFlag {
text-align: center;
font-size: 35px;
color: rgb(255,255,255);
float: left;
width: 100px;
height: 100px;
background-color: rgb(50,50,200);
}
.redFlag {
text-align: center;
font-size: 35px;
color: rgb(255,255,255);
float: left;
width: 100px;
height: 100px;
background-color: rgb(200,50,50);
}
.black {
text-align: center;
float: left;
width: 100px;
height: 100px;
background-color: rgb(100,200,100);
}
.lightBlue {
text-align: center;
float: left;
width: 100px;
height: 100px;
background-color: rgb(50,50,100);
}
.darkBlue {
text-align: center;
float: left;
width: 100px;
height: 100px;
background-color: rgb(100,100,200);
}
.deadRed {
width: 1100px;
height: 300px;
padding: 10px;
border: 3px solid #aaaaaa;
position: absolute;
background-color: lightcoral;
top: 2975px;
left: 1100px;
}
.deadBlue {
width: 1100px;
height: 300px;
padding: 10px;
border: 3px solid #aaaaaa;
position: absolute;
background-color: lightblue;
top: 2350px;
left: 1100px;
}
.turn {
position: absolute;
text-align: center;
color: rgb(225,225,225);
top: 2700px;
left: 1100px;
}
#blueMarshal,
#blueGeneral,
#blueColonel,
#blueColonel2,
#blueMajor,
#blueMajor2,
#blueCaptain,
#blueCaptain2,
#blueCaptain3,
#blueCaptain4,
#blueLieutenant,
#blueLieutenant2,
#blueLieutenant3,
#blueLieutenant4,
#blueSergeant,
#blueSergeant2,
#blueSergeant3,
#blueSergeant4,
#blueMiner,
#blueMiner2,
#blueMiner3,
#blueMiner4,
#blueMiner5,
#blueScout,
#blueScout2,
#blueScout3,
#blueScout4,
#blueScout5,
#blueScout6
{
background-color: rgb(50,50,200);
cursor: pointer;
transition: transform .1s;
background-clip: content-box;
margin-top: 0px;
margin-left: 1px;
padding: 10px;
}
#blueMarshal:hover,
#blueGeneral:hover,
#blueColonel:hover,
#blueColonel2:hover,
#blueMajor:hover,
#blueMajor2:hover,
#blueCaptain:hover,
#blueCaptain2:hover,
#blueCaptain3:hover,
#blueCaptain4:hover,
#blueLieutenant:hover,
#blueLieutenant2:hover,
#blueLieutenant3:hover,
#blueLieutenant4:hover,
#blueSergeant:hover,
#blueSergeant2:hover,
#blueSergeant3:hover,
#blueSergeant4:hover,
#blueMiner:hover,
#blueMiner2:hover,
#blueMiner3:hover,
#blueMiner4:hover,
#blueMiner5:hover,
#blueScout:hover,
#blueScout2:hover,
#blueScout3:hover,
#blueScout4:hover,
#blueScout5:hover,
#blueScout6:hover {
background-color: rgb(50,50,255);
transform: scale(1.25);
}
#redMarshall,
#redGeneral,
#redColonel,
#redColonel2,
#redMajor,
#redMajor2,
#redWheel,
#redWheel2,
#redWheel3,
#redWheel4,
#redSpear,
#redSpear2,
#redSpear3,
#redSpear4,
#redSergeant,
#redSergeant2,
#redSergeant3,
#redSergeant4,
#redMiner,
#redMiner2,
#redMiner3,
#redMiner4,
#redMiner5,
#redScout,
#redScout2,
#redScout3,
#redScout4,
#redScout5,
#redScout6 {
background-color: rgb(200,50,50);
cursor: pointer;
transition: transform .1s;
background-clip: content-box;
margin-top: 0px;
margin-left: 1px;
padding: 10px;
}
#redMarshall:hover,
#redGeneral:hover,
#redColonel:hover,
#redColonel2:hover,
#redMajor:hover,
#redMajor2:hover,
#redWheel:hover,
#redWheel2:hover,
#redWheel3:hover,
#redWheel4:hover,
#redSpear:hover,
#redSpear2:hover,
#redSpear3:hover,
#redSpear4:hover,
#redSergeant:hover,
#redSergeant2:hover,
#redSergeant3:hover,
#redSergeant4:hover,
#redMiner:hover,
#redMiner2:hover,
#redMiner3:hover,
#redMiner4:hover,
#redMiner5:hover,
#redScout:hover,
#redScout2:hover,
#redScout3:hover,
#redScout4:hover,
#redScout5:hover,
#redScout6:hover {
background-color: rgb(255,50,50);
transform: scale(1.25);
}
</style>
</body>
</html>