forked from sir-buckyball/boxcars_payoff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
709 lines (665 loc) · 57.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
<html ng-app="app">
<head>
<title>Boxcars - Payoff Chart - USA</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body{
text-align: center;
}
div {
margin: 0.5em 0;
}
.roller {
margin: 2em;
}
.payoff {
margin-top: 2em;
}
.settings {
bottom: 0.5em;
font-size: smaller;
position: absolute;
width: 100%;
}
.warnings {
color: #CC0000;
font-weight: 700;
}
.region-selector button {
margin: 0.5em;
}
.region-selector p {
color: #007F00;
}
.centered {
margin: 0% 10%;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
<script>
maps = {
"US": {
"cities":[
"Albany",
"Atlanta",
"Baltimore",
"Billings",
"Birmingham",
"Boston",
"Buffalo",
"Butte",
"Casper",
"Charleston",
"Charlotte",
"Chattanooga",
"Chicago",
"Cincinnati",
"Cleveland",
"Columbus",
"Dallas",
"Denver",
"Des Moines",
"Detroit",
"El Paso",
"Fargo",
"Fort Worth",
"Houston",
"Indianapolis",
"Jacksonville",
"Kansas City",
"Knoxville",
"Las Vegas",
"Little Rock",
"Los Angeles",
"Louisville",
"Memphis",
"Miami",
"Milwaukee",
"Minneapolis",
"Mobile",
"Nashville",
"New Orleans",
"New York",
"Norfolk",
"Oakland",
"Oklahoma City",
"Omaha",
"Philadelphia",
"Phoenix",
"Pittsburgh",
"Pocatello",
"Portland ME",
"Portland OR",
"Pueblo",
"Rapid City",
"Reno",
"Richmond",
"Sacramento",
"Salt Lake City",
"San Antonio",
"San Diego",
"San Francisco",
"Seattle",
"Shreveport",
"Spokane",
"St. Louis",
"St. Paul",
"Tampa",
"Tucumcari",
"Washington",
],
"regions": [
"North Central",
"Northeast",
"Northwest",
"Plains",
"South Central",
"Southeast",
"Southwest",
],
"city_regions":[1,5,1,2,4,1,1,2,2,5,5,5,0,0,0,0,4,3,3,0,6,3,4,4,0,5,3,5,6,4,6,4,4,5,0,3,5,4,4,1,5,6,3,3,1,6,1,2,1,2,3,2,6,5,6,2,4,6,6,2,4,2,0,3,5,6,1],
"region_rollchart":[[6,4,4,4,6,6,3,2,2,3,2],[3,5,5,5,0,0,1,1,1,5,1]],
"city_rollchart":[
[[13,12,13,13,15,12,12,62,62,62,12],[14,14,14,14,19,19,24,34,34,12,34]],
[[39,66,46,46,44,66,44,2,2,2,39],[39,39,39,0,5,6,5,48,39,39,39]],
[[61,55,55,55,49,49,49,47,7,7,49],[61,61,59,59,59,59,51,8,3,3,61]],
[[42,63,35,63,35,42,18,43,43,21,21],[26,26,17,17,17,26,26,26,50,50,42]],
[[60,60,16,38,16,56,23,23,22,22,22],[32,32,32,29,38,4,31,37,37,31,32]],
[[40,40,40,9,33,25,33,64,64,36,40],[10,10,11,1,1,1,53,27,36,27,36]],
[[30,41,41,41,30,30,30,58,58,58,58],[57,57,52,57,54,28,45,20,65,45,45]]],
"payoff":[
[0,10,3.5,21,11,2,3,23.5,18,9.5,7.5,10,8,7,5,6,17,18.5,12,5.5,22,14.5,17,18.5,7.5,11,12.5,8.5,28,13.5,30.5,8.5,12.5,15,9,12,13.5,10.5,15,1.5,6,31,15.5,13,2.5,27.5,5.5,23.5,3,30,18.5,17,25.5,5,17,23.5,19.5,32,31,29.5,16,26.5,10,12,13.5,18.5,3.5],
[10,0,7,19,1.5,11,9.5,21.5,15.5,3,2.5,1.5,7.5,5,7.5,6,8,15.5,9.5,7.5,14.5,13.5,8,8.5,6,3.5,9,2,23,5.5,23,4.5,4,7,8,11.5,3.5,3,5,8.5,5.5,27,9,10,7.5,19,8,21,12,28,15,16,26,6,17,20.5,10.5,24.5,27,28,6.5,28,6,11.5,5.5,13,6.5],
[3.5,7,0,21,8,4,4,23,18,5.5,4,6.5,8,6,4.5,5,14.5,18,11.5,6.5,21,14.5,14.5,15,7,8,12,5.5,27.5,11,29,7,9.5,11.5,8,12,10.5,7.5,11.5,2,2.5,30.5,14.5,13,1,27,3.5,23.5,5.5,30.5,18,17,28.5,1.5,30,23,17,30.5,30.5,29.5,12.5,26.5,9,12,10,18.5,0.5],
[21,19,21,0,18,23,18,2.5,3.5,22.5,21,18,13,15.5,16,16,15,6.5,10.5,15.5,14,6.5,15,17.5,14.5,22.5,10.5,18.5,11,15.5,14.5,16,15.5,26,12,9,19,16.5,19,22,22,14,14,9,21,19,17.5,5,24,9.5,7.5,5,12,21.5,13.5,6.5,17.5,16,14,9,16,6,13,9,24,11,20.5],
[11,1.5,8,18,0,12,9,20,14,5,4,1.5,6.5,5,7.5,6,6.5,13.5,8,7.5,13,13,6.5,7,5,4.5,7.5,2.5,23.5,4,21,4,2.5,8,7.5,10.5,3,2,3.5,10,7,25.5,7.5,9,9,17.5,8,20.5,13.5,26.5,13.5,14.5,23,7.5,24,19,9.5,22.5,25.5,27,4.5,24,5,10.5,6,11.5,7.5],
[2,11,4,23,12,0,5,25.5,20,9.5,8.5,11.5,10,9.5,7,8,18.5,20.5,14,7.5,24,16.5,19.5,19.5,9.5,12,14.5,9.5,30,15,32.5,10.5,14,16,11,14,14.5,12,15.5,2.5,7,33,17.5,15,3,29.5,6.5,25.5,1,32,21,20.5,30.5,5.5,32,25.5,21,34,33,31.5,16.5,28.5,12,14,14,21,4.5],
[3,9.5,4,18,9,5,0,20.5,15,9.5,8,8,5,4.5,2,3,14,15.5,9,2.5,19,11.5,14,15.5,4.5,12,9.5,7.5,25,10.5,27.5,5.5,9.5,15.5,6,9,12,7.5,13,4,6.5,28,12.5,10,4,24.5,2.5,20.5,6,27,15.5,14,25.5,5.5,27,20.5,16.5,29,28,26.5,14,23.5,7,9,14,16.5,4.5],
[23.5,21.5,23,2.5,20,25.5,20.5,0,5.5,26,17.5,14,15,18,18.5,18.5,17.5,9,14,18,16,9,17.5,20,17,24.5,13,21,9,18,12,18,17.5,28.5,14.5,11,21,18.5,21.5,24,25,12,16.5,11.5,23.5,16.5,20,2.5,26.5,7,10,7.5,9.5,23.5,11,4.5,19.5,13.5,12,6.5,18.5,3.5,15.5,11,26.5,13.5,22.5],
[18,15.5,18,3.5,14,20,15,5.5,0,19,17.5,14,10,12.5,13.5,13,11.5,3.5,6.5,12.5,9.5,7.5,11.5,14.5,11.5,18.5,7,14.5,12,11.5,15,12,12,22,10,8,15.5,12.5,15.5,19,19,15,10.5,5,18,14,14.5,7.5,21.5,13,4.5,3,12.5,18.5,14,7.5,14,16.5,15,12.5,12.5,9,10,8,20,8,17.5],
[9.5,3,5.5,22.5,5,9.5,9.5,26,19,0,2.5,4.5,10,7,9.5,8.5,11.5,18.5,13,10,19,16.5,11.5,11.5,8,2.5,12,4,26.5,8.5,26,7,7.5,6,11,14,6,6,7.5,7.5,4.5,30.5,12,13.5,8,22.5,8,24,11,31,18.5,19,29.5,4,31,23.5,13.5,27.5,30.5,31.5,9.5,28,9,14,4.5,16,5],
[7.5,2.5,4,21,4,8.5,8,17.5,17.5,2.5,0,4,8.5,5.5,6.5,6,11,18,11.5,8,17.5,15,11,11,6.5,4,11,2.5,26,8.5,25.5,5.5,7,7.5,9.5,12.5,6,5,7.5,6,4,30,11.5,12.5,5,24,6,23,9.5,30.5,18,18,27.5,3.5,29,22.5,13.5,27,30,30,9,27,8,12.5,6,15.5,4],
[10,1.5,6.5,18,1.5,11.5,8,14,14,4.5,4,0,6,3.5,6,4.5,9,14,8,6,15.5,12.5,9,8.5,4.5,5,7.5,1,24,5.5,23.5,3,4,8.5,7,10,5,1.5,6.5,8.5,6.5,27,9,9,7.5,19,7,21.5,12,26.5,14,14.5,24.5,6,26,20.5,10.5,25,27,27,7,18.5,4.5,10,6.5,13,6],
[8,7.5,8,13,6.5,10,5,15,10,10,8.5,6,0,3,3.5,3.5,9.5,10.5,3.5,2.5,14,6.5,9.5,12,2,11,4.5,5.5,19.5,6.5,22.5,3,5.5,14.5,1,4,8.5,4.5,9,9,9.5,22.5,8,5,8,19.5,4.5,15.5,11.5,22,10.5,9,20,8.5,22,15,12,24,22.5,21.5,8.5,18.5,3,4,12.5,11,7.5],
[7,5,6,15.5,5,9.5,4.5,18,12.5,7,5.5,3.5,3,0,2.5,1,9.5,12.5,6.5,2.5,15.5,9,9.5,11,1,8.5,6,3,22.5,6.5,23.5,1,5,12,3.5,7,7.5,3,8.5,7.5,7,25.5,9,7.5,6.5,21,3,18,10.5,24.5,12.5,12,23,6,24.5,18,12.5,25,25.5,24,8.5,21,3.5,7,10,12.5,5.5],
[5,7.5,4.5,16,7.5,7,2,18.5,13.5,9.5,6.5,6,3.5,2.5,0,1.5,12.5,13.5,7,1.5,17.5,10,12.5,13.5,3,11,8,5.5,23,9,25.5,3.5,7.5,14.5,4,7.5,10,5.5,11,5.5,6.5,26,10.5,8.5,5,22.5,1.5,19,8,25.5,13.5,12.5,23.5,5.5,25,18.5,14.5,27,26,25,11,21.5,5,7.5,12.5,14.5,4.5],
[6,6,5,16,6,8,3,18.5,13,8.5,6,4.5,3.5,1,1.5,0,11,13,7,2,17,9.5,11,12,1.5,9.5,6.5,4,22.5,6.5,24,2.5,6,13,4,7.5,8,4,9.5,6.5,7,26.5,10,8,5.5,21.5,2,18.5,9.5,25.5,13,13.5,23.5,5.5,25,18,13.5,25.5,26.5,25,11.5,21.5,4,7.5,11.5,14,5],
[17,8,14.5,15,6.5,18.5,14,17.5,11.5,11.5,11,9,9.5,9.5,12.5,11,0,8.5,7.5,12,6.5,12.5,0.5,2.5,9.5,11,5,9,16,3.5,14.5,8.5,9,14.5,10.5,10,6,7,5,16,14,19.5,2.5,7,15.5,11,13,15,19.5,22.5,7.5,12.5,19,14,19.5,13.5,2.5,16,19.5,24,2,21,7,10,12.5,5,14],
[18.5,15.5,18,6.5,13.5,20.5,15.5,9,3.5,18.5,18,14,10.5,12.5,13.5,13,8.5,0,7,13,7.5,11.5,8.5,11,11.5,18,6.5,14.5,10,11,13.5,12,11,22,10.5,9,15,12.5,13.5,19.5,19,13.5,7.5,5.5,18.5,10.5,15,6,21.5,13.5,1,5.5,11.5,18.5,13,5.5,11,15,13.5,15.5,10,12.5,9,9,20,4.5,18],
[12,9.5,11.5,10.5,8,14,9,14,6.5,13,11.5,8,3.5,6.5,7,7,7.5,7,0,6.5,11.5,5,7.5,10,5.5,13,2,9,16,7,19.5,6,6.5,16.5,3.5,2.5,10,6.5,10.5,12.5,13,19,5.5,1.5,11.5,17,8.5,12,15,19,7,7,17,12,18,11.5,10,21,19,19.5,8,16.5,3.5,2.5,14.5,9,11],
[5.5,7.5,6.5,15.5,7.5,7.5,2.5,18,12.5,10,8,6,2.5,2.5,1.5,2,12,13,6.5,0,16.5,9,12,13.5,3,11,7,5,22.5,9,25,3.5,7.5,14.5,3.5,6.5,10,5.5,11,6.5,8,25.5,10.5,7.5,6.5,22,3,18,8,25,13,13,23,7,24.5,18,14,26,25.5,24,10.8,21,5,6.5,12.5,14,6],
[22,14.5,21,14,13,24,19,16,9.5,19,17.5,15.5,14,15.5,17.5,17,6.5,7.5,11.5,16.5,0,16.5,6.5,8.5,15,17.5,9.5,15.5,13,10,8,15,11.5,21.5,14.5,14,13,13.5,11.5,23,21,13,7,11.5,22,4.5,18.5,13.5,25.5,20,6,13,10.5,20.5,12,12.5,6,9.5,13,22,8.5,20,12,14,19.5,3.5,20.5],
[14.5,13.5,14.5,6.5,13,16.5,11.5,9,7.5,16.5,15,12.5,6.5,9,10,9.5,12.5,11.5,5,9,16.5,0,12.5,15,8,17,7,12,17.5,12,21,9.5,11,21,5.5,2.5,14.5,11,15,15.5,16,20.5,10.5,6,14.5,22,11,13.5,17.5,16,12.5,4.5,18,15,20,13,15,22.5,20.5,15,13,12,8,2.5,19,14,14],
[17,8,14.5,15,6.5,19.5,14,17.5,11.5,11.5,11,9,9.5,9.5,12.5,11,0.5,8.5,7.5,12,6.5,12.5,0,2.5,9.5,11,5,9,16,4,14.5,8.5,9,14.5,10.5,10,6,7,5,16.5,14,19.5,2.5,7,15.5,11,13,15,20.5,22.5,7.5,12.5,19,14,19.5,13.5,2.5,16,19.5,24,2,21,7,10,12.5,5,14],
[18.5,8.5,15,17.5,7,19.5,15.5,20,14.5,11.5,11,8.5,12,11,13.5,12,2.5,11,10,13.5,8.5,15,2.5,0,11,9.5,8,9.5,17,4.5,16.5,10,6,13.5,11,12.5,5,8.5,3.5,17,14.5,21,5,9.5,16,13,14.5,17.5,20.5,25,10,15.5,22,14.5,21,16,2,18,21,26.5,2.5,23.5,9,12.5,11.5,8,15],
[7.5,6,7,14.5,5,9.5,4.5,17,11.5,8,6.5,4.5,2,1,3,1.5,9.5,11.5,5.5,3,15,8,9.5,11,0,9.5,5,4,21.5,5,22.5,1,5,13,2.5,6,8,3,8.5,8,8,24.5,7.5,6.5,7,20,0,17,10.5,24.5,11.5,11,22,7,23.5,17,11.5,24,24.5,23,9,20,2.5,6,11,11.5,6.5],
[11,3.5,8,22.5,4.5,12,12,24.5,18.5,2.5,4,5,11,8.5,11,9.5,11,18,13,11,17.5,17,11,9.5,9.5,0,11.5,5.5,26,8,26,8,7,3.5,11.5,15,4,6.5,6,10,6,30,12,13.5,9,22,10.5,23.5,13,31.5,18,19,27.5,6.5,29,23.5,12,27.5,30,31.5,9,28,9,15,2,16,7.5],
[12.5,9,12,10.5,7.5,14.5,9.5,13,7,12,11,7.5,4.5,6,8,6.5,5,6.5,2,7,9.5,7,5,8,5,11.5,0,8,16.5,5,17.5,5.5,5,15.5,5.5,5,8.5,6,8.5,13.5,13,19.5,3.5,2,12,15,9,12.5,16,19.5,6,7.5,17.5,12,19,12,8,19,19.5,19.5,5.5,16.5,3,5,13.5,6.5,11.5],
[8.5,2,5.5,18.5,2.5,9.5,7.5,21,14.5,4,2.5,1,5.5,3,5.5,4,9,14.5,9,5,15.5,12,9,9.5,4,5.5,8,0,24.5,5.5,23.5,3,4,9,6.5,9.5,5.5,2,6,7.5,5.5,27,9,9.5,6.5,21.5,6,20.5,10.5,27.5,14.5,15,25,5,26.5,20,11.5,25,27,27,8,24,5.5,9.5,7,13,5],
[28,23,27.5,11,23.5,30,25,9,12,26.5,26,24,19.5,22.5,23,22.5,16,10,16,22.5,13,17.5,16,17,21.5,26,16.5,24.5,0,19,3,21.5,21,30,19.5,18,21.5,22,20,28.5,29,6.5,15.5,15,28,7.5,24.5,6,26,13.5,11,14,8,28,6.5,4.5,14.5,4.5,6.5,15,17,17,19,18,28.5,9.5,27.5],
[13.5,5.5,11,15.5,4,15,10.5,18,11.5,8.5,8.5,5.5,6.5,6.5,9,6.5,3.5,11,7,9,10,12,4,4.5,5,8,5,5.5,19,0,18.5,5,1.5,11.5,7.5,9.5,5,3.5,4.5,13,11,21.5,3.5,7,12,16,9.5,16,18,24.5,10,12.5,21.5,10.5,21.5,16,6,20,21.5,26.5,2,23,3.5,9.5,9.5,7.5,10.5],
[30.5,23,29,14.5,21,32.5,27.5,12,15,26,25.5,23.5,22.5,23.5,25.5,24,14.5,13.5,19.5,25,8,21,14.5,16.5,22.5,26,17.5,23.5,3,18.5,0,23,19.5,29.5,22.5,21.5,21,22,19.5,31,29.5,4.5,15,18,30,4.5,26.5,9,33.5,12,13.5,17.5,6,28.5,5,8,14.5,1.5,4.5,13.5,16.5,15.5,20.5,21.5,27.5,11.5,29],
[8.5,4.5,7,16,4,10.5,5.5,18,12,7,5.5,3,3,1,3.5,2.5,8.5,12,6,3.5,15,9.5,8.5,10,1,8,5.5,3,21.5,5,23,0,4,12,4,7,5.5,2,7.5,8.5,8,24.5,8.5,7,8,22.5,4.5,17.5,11.5,24.5,12,12.5,22.5,7,24,17,11.5,24.5,24.5,25,8,22,2.5,7,10,12,6.5],
[12.5,4,9.5,15.5,2.5,14,9.5,17.5,12,7.5,7,4,5.5,5,7.5,6,9,11,6.5,7.5,11.5,11,9,6,5,7,5,4,21,1.5,19.5,4,0,10.5,6,9,3.5,2.5,4,11.5,9.5,23,5,6.5,10.5,17.5,8,17,15,25,11,12.5,20.5,9,22,16.5,7.5,21,23,24.5,4,21.5,3,9,8.5,8.5,9.5],
[15,7,11.5,26,8,16,15.5,28.5,22,6,7.5,8.5,14.5,12,14.5,13,14.5,22,16.5,14.5,21.5,21,14.5,13.5,13,3.5,15.5,9,30,11.5,29.5,12,10.5,0,15.5,18.5,8.5,10,10,13.5,9.5,33.5,15.5,17,12.5,26,14,27.5,17,35,21.5,22.5,33,10,33.5,27,15.5,31,33.5,35,12.5,32,13,18.5,2,19.5,11],
[9,8,8,12,7.5,11,6,14.5,10,11,9.5,7,1,3.5,4,4,10.5,10.5,3.5,3.5,14.5,5.5,10.5,11,2.5,11.5,5.5,6.5,19.5,7.5,22.5,4,6,15.5,0,3.5,9,5.5,10,10,10.5,22.5,8.5,5,9,19.5,5.5,15.5,12,21.5,11.5,9,20.5,9.5,22,15,13,24,22.5,21,8.5,18,3.5,3.5,13.5,11,8.5],
[12,11.5,12,9,10.5,14,9,11,8,14,12.5,10,4,7,7.5,7.5,10,9,2.5,6.5,14,2.5,10,12.5,6,15,5,9.5,18,9.5,21.5,7,9,18.5,3.5,0,12.5,8.5,12.5,13,13.5,21,8,3.5,12,19.5,8.5,13.5,15.5,18,9.5,5,19,12.5,20.5,13.5,12.5,23,21,17.5,10.5,14.5,5.5,0,16.5,11.5,11.5],
[13.5,3.5,10.5,19,3,14.5,12,21,15.5,6,6,5,8.5,7.5,10,8,6,15,10,10,13,14.5,6,5,8,4,8.5,5.5,21.5,5,21,5.5,3.5,8.5,9,12.5,0,5,1.5,12,9.5,26,8,10.5,11,17.5,10.5,22.5,14.5,28.5,14,16,25,9.5,26,19.5,7,22.5,26,28,4.5,25,6.5,12.5,6.5,11.5,10],
[10.5,3,7.5,16.5,2,12,7.5,18.5,12.5,6,5,1.5,4.5,3,5.5,4,7,12.5,6.5,5.5,13.5,11,7,8.5,3,6.5,6,2,22,3.5,22,2,2.5,10,5.5,8.5,5,0,5.5,9.5,8,25.5,7.5,7.5,8.5,19.5,6,19,13,25,12.5,13,23,7,24.5,19,10,23.5,25.5,25.5,6.5,22.5,3,8.5,8,11,7],
[15,5,11.5,19,3.5,15.5,13,21.5,15.5,7.5,7.5,6.5,9,8.5,11,9.5,5,13.5,10.5,11,11.5,15,5,3.5,8.5,6,8.5,6,20,4.5,19.5,7.5,4,10,10,12.5,1.5,5.5,0,13.5,10,24.5,7.5,10.5,12.5,16,11.5,18.5,16.5,27.5,13.5,15.5,22,10.5,23.5,18.5,5.5,21,24.5,29,3,26,7,12.5,8,10,11],
[1.5,8.5,2,22,10,2.5,4,24,19,7.5,6,8.5,9,7.5,5.5,6.5,16,19.5,12.5,6.5,23,15.5,16.5,17,8,10,13.5,7.5,28.5,13,31,8.5,11.5,13.5,10,13,12,9.5,13.5,0,4.5,31.5,16,14,1,28,4.5,24.5,3.5,31,19.5,18,29.5,3.5,31,24,19,32.5,31.5,30.5,15.5,27.5,10.5,13,12,20,2],
[6,5.5,2.5,22,7,7,6.5,25,19,4.5,4,6.5,9.5,7,6.5,7,14,19,13,8,21,16,14,14.5,8,6,13,5.5,29,11,29.5,8,9.5,9.5,10.5,13.5,9.5,8,10,4.5,0,32,15,14,3.5,26.5,5,24.5,8,32,19,19.5,28.5,1,31,24.5,16,31,32,31,12,28,10,13.5,8,18.5,2.5],
[31,27,30.5,14,25.5,33,28,12,15,30.5,30,27,22.5,25.5,26,26.5,19.5,13.5,19,25.5,13,20.5,19.5,21,24.5,30,19.5,27,6.5,21.5,4.5,24.5,23,33.5,22.5,21,26,25.5,24.5,31.5,32,0,18,17.5,31,9,27.5,9,34,7,14,17.5,2.5,31,1,8,19,6,0,9,21.5,11,22,21,31.5,14.5,30.5],
[15.5,9,14.5,14,7.5,17.5,12.5,16.5,10.5,12,11.5,9,8,9,10.5,10,2.5,7.5,5.5,10.5,7,10.5,2.5,5,7.5,12,3.5,9,15.5,3.5,15,8.5,5,15.5,8.5,8,8,7.5,7.5,16,15,18,0,5.5,15,12.5,11.5,12.5,18.5,21.5,7,9,16,14,17.5,12.5,5,16.5,18,23,4,20,5.5,8,13.5,4,14],
[13,10,13,9,9,15,10,11.5,5,13.5,12.5,9,5,7.5,8.5,8,7,5.5,1.5,7.5,11.5,6,7,9.5,6.5,13.5,2,9.5,15,7,18,7,6.5,17,5,3.5,10.5,7.5,10.5,14,14,17.5,5.5,0,13,16,9.5,10.5,16,17.5,5.5,5.5,15.5,13.5,17,10.5,10,19.5,17.5,18,7.5,15,4,3.5,15,8.5,12.5],
[2.5,7.5,1,21,9,3,4,23.5,18,8,5,7.5,8,6.5,5,5.5,15.5,18.5,11.5,6.5,22,14.5,15.5,16,7,9,12,6.5,28,12,30,8,10.5,12.5,9,12,11,8.5,12.5,1,3.5,31,15,13,0,27,3.5,23.5,4.5,30,18.5,17,28.5,2.5,30,23.5,18,31.5,31,29.5,13.5,26.5,9.5,12,11,19,1.5],
[27.5,19,27,19,17.5,29.5,24.5,16.5,14,22.5,24,19,19.5,21,22.5,21.5,11,10.5,17,22,4.5,22,11,13,20,22,15,21.5,7.5,16,4.5,22.5,17.5,26,19.5,19.5,17.5,19.5,16,28,26.5,9,12.5,16,27,0,23.5,14,30.5,16,9.5,16,10.5,26.5,9,12,10.5,6,9,18,13,20,18,19.5,24,8.5,26.5],
[5.5,8,3.5,17.5,8,6.5,2.5,20,14.5,8,6,7,4.5,3,1.5,2,13,15,8.5,3,18.5,11,13,14.5,0,10.5,9,6,24.5,9.5,26.5,4.5,8,14,5.5,8.5,10.5,6,11.5,4.5,5,27.5,11.5,9.5,3.5,23.5,0,20,8,26.5,15,13.5,25,4,26.5,20,15.5,28,27.5,26,12,23,6,8.5,12.5,15.5,3],
[23.5,21,23.5,5,20.5,25.5,20.5,2.5,7.5,24,23,21.5,15.5,18,19,18.5,15,6,12,18,13.5,13.5,15,17.5,17,23.5,12.5,20.5,6,16,9,17.5,17,27.5,15.5,13.5,22.5,19,18.5,24.5,24.5,9,12.5,10.5,23.5,14,20,0,27,7,7.5,10,7,24,8.5,1.5,17.5,10.5,9,9,15.5,6,14.5,13.5,25.5,11,23],
[3,12,5.5,24,13.5,1,6,26.5,21.5,11,9.5,12,11.5,10.5,8,9.5,19.5,21.5,15,8,25.5,17.5,20.5,20.5,10.5,13,16,10.5,26,18,33.5,11.5,15,17,12,15.5,14.5,13,16.5,3.5,8,34,18.5,16,4.5,30.5,8,27,0,33.5,22,21.5,31.5,7,33.5,26.5,22.5,35,34,32.5,18,29.5,13,15.5,15,22,5.5],
[30,28,30.5,9.5,26.5,32,27,7,13,31,30.5,26.5,22,24.5,25.5,25.5,22.5,13.5,19,25,20,16,22.5,25,24.5,31.5,19.5,27.5,13.5,24.5,12,24.5,25,35,21.5,18,28.5,25,27.5,31,32,7,21.5,17.5,30,16,26.5,7,33.5,0,14.5,14.5,7.5,31,6.5,9,25,13.5,7,2,24,3.5,22,18,33,18.5,30],
[18.5,15,18,7.5,13.5,21,15.5,10,4.5,18.5,18,14,10.5,12.5,13.5,13,7.5,1,7,13,6,12.5,7.5,10,11.5,18,6,14.5,11,10,13.5,12,11,21.5,11.5,9.5,14,12.5,13.5,19.5,19,14,7,5.5,18.5,9.5,15,7.5,22,14.5,0,6.5,12,18.5,13.5,6.5,9.5,13.5,14,16,10,13,9,9.5,20,3.5,18],
[17,16,17,5,14.5,20.5,14,7.5,3,19,18,14.5,9,12,12.5,13.5,12.5,5.5,7,13,13,4.5,12.5,15.5,11,19,7.5,15,14,12.5,17.5,12.5,12.5,22.5,9,5,16,13,15.5,18,19.5,17.5,9,5.5,17,16,13.5,10,21.5,14.5,6.5,0,15.5,19,17,9.5,15,19,17.5,14,13,11,9.5,5,20.5,10,18],
[25.5,26,28.5,12,23,30.5,25.5,9.5,12.5,29.5,27.5,24.5,20,23,23.5,23.5,19,11.5,17,23,10.5,18,19,22,22,27.5,17.5,25,8,21.5,6,22.5,20.5,33,20.5,19,25,23,22,29.5,28.5,2.5,16,15.5,28.5,10.5,25,7,31.5,7.5,12,15.5,0,28,1.5,5.5,20,8.5,2.5,9.5,21,11,20.5,19,31,15.5,28],
[5,6,1.5,21.5,7.5,5.5,5.5,23.5,18.5,4,3.5,6,8.5,6,5.5,5.5,14,18.5,12,7,20.5,15,14,14.5,7,6.5,12,5,28,10.5,28.5,7,9,10,9.5,12.5,9.5,7,10.5,3.5,1,31,14,13.5,2.5,26.5,4,24,7,31,18.5,19,28,0,30.5,23.5,16.5,30,31,30,12,27,9,12.5,8.5,18,1],
[17,17,30,13.5,24,32,27,11,14,31,29,26,22,24.5,25,25,19.5,13,18,24.5,12,20,19.5,21,23.5,29,19,26.5,6.5,21.5,5,24,22,33.5,22,20.5,26,24.5,23.5,31,31,1,17.5,17,30,9,26.5,8.5,33.5,6.5,13.5,17,1.5,30.5,0,7,19,6.5,1,8.5,21.5,10,21,20.5,31.5,14.5,29.5],
[23.5,20.5,23,6.5,19,25.5,20.5,4.5,7.5,23.5,22.5,20.5,15,18,18.5,18,13.5,5.5,11.5,18,12.5,13,13.5,16,17,23.5,12,20,4.5,16,8,17,16.5,27,15,13.5,19.5,19,18.5,24,24.5,8,12.5,10.5,23.5,12,20,1.5,26.5,9,6.5,9.5,5.5,23.5,7,0,16,9.5,8,10.5,15,8,14.5,13.5,25,9.5,23],
[19.5,10.5,17,17.5,9.5,21,16.5,19.5,14,13.5,13.5,10.5,12,12.5,14.5,13.5,2.5,11,10,14,6,15,2.5,2,11.5,12,8,11.5,14.5,6,14.5,11.5,7.5,15.5,13,12.5,7,10,5.5,19,16,19,5,10,18,10.5,15.5,17.5,22.5,25,9.5,15,20,16.5,19,16,0,16,19,26.5,5,23.5,9,12.5,13.5,7,17],
[32,24.5,30.5,16,22.5,34,29,13.5,16.5,27.5,27,25,24,25,27,25.5,16,15,21,26,9.5,22.5,16,18,24,27.5,19,25,4.5,20,1.5,24.5,21,31,24,23,22.5,23.5,21,32.5,31,6,16.5,19.5,31.5,6,28,10.5,35,13.5,13.5,19,8.5,30,6.5,9.5,16,0,6,15,18,17,22,23,29,12,30.5],
[31,27,30.5,14,25.5,33,28,12,15,30.5,30,27,22.5,25.5,26,26.5,19.5,13.5,19,25.5,13,20.5,19.5,21,24.5,30,19.5,27,6.5,21.5,4.5,24.5,23,33.5,22.5,21,26,25.5,24.5,31.5,32,0,18,17.5,31,9,27.5,9,34,7,14,17.5,2.5,31,1,8,19,6,0,9,21.5,11,22,21,31.5,14.5,30.5],
[29.5,28,29.5,9,27,31.5,26.5,6.5,12.5,31.5,30,27,21.5,24,25,25,24,15.5,19.5,24,22,15,24,26.5,23,31.5,19.5,27,15,26.5,13.5,25,24.5,35,21,17.5,28,25.5,29,30.5,31,9,23,18,29.5,18,26,9,32.5,2,16,14,9.5,30,8.5,10.5,26.5,15,9,0,26,3,22,17.5,33,20.5,29],
[16,6.5,12.5,16,4.5,16.5,14,18.5,12.5,9.5,9,7,8.5,8.5,11,11.5,2,10,8,10.8,8.5,13,2,2.5,9,9,5.5,8,17,2,16.5,8,4,12.5,8.5,10.5,4.5,6.5,3,15.5,12,21.5,4,7.5,13.5,13,12,15.5,18,24,10,13,21,12,21.5,15,5,18,21.5,26,0,22.5,8.5,10.5,11,6.5,12],
[26.5,28,26.5,6,24,28.5,23.5,3.5,9,28,27,18.5,18.5,21,21.5,21.5,21,12.5,16.5,21,20,12,21,23.5,20,28,16.5,24,17,23,15.5,22,21.5,32,18,14.5,25,22.5,26,27.5,28,11,20,15,26.5,20,23,6,29.5,3.5,13,11,11,27,10,8,23.5,17,11,3,22.5,0,19,14.5,30,17.5,26],
[10,6,9,13,5,12,7,15.5,10,9,8,4.5,3,3.5,5,4,7,9,3.5,5,12,8,7,9,2.5,9,3,5.5,19,3.5,20.5,2.5,3,13,3.5,5.5,6.5,3,7,10.5,10,22,5.5,4,9.5,18,6,14.5,13,22,9,9.5,20.5,9,21,14.5,9,22,22,22,8.5,19,0,5.5,11,9.5,9],
[12,11.5,12,9,10.5,14,9,11,8,14,12.5,10,4,7,7.5,7.5,10,9,2.5,6.5,14,2.5,10,12.5,6,15,5,9.5,18,9.5,21.5,7,9,18.5,3.5,0,12.5,8.5,12.5,13,13.5,21,8,3.5,12,19.5,8.5,13.5,15.5,18,9.5,5,19,12.5,20.5,13.5,12.5,23,21,17.5,10.5,14.5,5.5,0,16.5,11,11.5],
[13.5,5.5,10,24,6,14,14,26.5,20,4.5,6,6.5,12.5,10,12.5,11.5,12.5,20,14.5,12.5,19.5,19,12.5,11.5,11,2,13.5,7,28.5,9.5,27.5,10,8.5,2,13.5,16.5,6.5,8,8,12,8,31.5,13.5,15,11,24,12.5,25.5,15,33,20,20.5,31,8.5,31.5,25,13.5,29,31.5,33,11,30,11,16.5,0,17.5,9.5],
[18.5,13,18.5,11,11.5,21,16.5,13.5,8,16,15.5,13,11,12.5,14.5,14,5,4.5,9,14,3.5,14,5,8,11.5,16,6.5,13,9.5,7.5,11.5,12,8.5,19.5,11,11.5,11.5,11,10,20,18.5,14.5,4,8.5,19,8.5,15.5,11,22,18.5,3.5,10,15.5,18,14.5,9.5,7,12,14.5,20.5,6.5,17.5,9.5,11,17.5,0,18],
[3.5,6.5,0.5,20.5,7.5,4.5,4.5,22.5,17.5,5,4,6,7.5,5.5,4.5,5,14,18,11,6,20.5,14,14,15,6.5,7.5,11.5,5,27.5,10.5,29,6.5,9.5,11,8.5,11.5,10,7,11,2,2.5,30.5,14,12.5,1.5,26.5,3,23,5.5,30,18,18,28,1,29.5,23,17,30.5,30.5,29,12,26,9,11.5,9.5,18,0]
]},
"GB": {
"cities":[
"Aberdeen",
"Aberystwyth",
"Banbury",
"Bangor",
"Barnstaple",
"Barrow-in-Furness",
"Bedford",
"Berwick",
"Birmingham",
"Blackburn",
"Blaneau Festiniog",
"Boat of Garten",
"Boston",
"Bournemouth",
"Brecon",
"Bridgwater",
"Brighton",
"Bristol",
"Carmarthen",
"Cambridge",
"Canterbury",
"Cardiff",
"Carlisle",
"Chatham",
"Colchester",
"Craven Arms",
"Crewe",
"Crianlarich",
"Darlington",
"Derby",
"Doncaster",
"Dover",
"Dumfries",
"Dundee",
"Edinburgh",
"Exeter",
"Fort William",
"Fraserburgh",
"Glasgow",
"Gloucester",
"Grimsby",
"Guildford",
"Hamilton",
"Hastings",
"Hereford",
"Hertford",
"Hull",
"Inverness",
"Ipswich",
"Keith",
"Kilmarnock",
"King's Lynn",
"Kyle of Lochalsh",
"Lancaster",
"Leeds",
"Leicester",
"Lincoln",
"Liverpool",
"Llanidloes",
"LONDON",
"Mallaig",
"Manchester",
"Montrose",
"Newcastle",
"Neyland",
"Norwich",
"Nottingham",
"Oban",
"Oxford",
"Padstow",
"Peebles",
"Penzance",
"Perth",
"Peterborough",
"Plymouth",
"Portsmouth",
"Reading",
"Rugby",
"Salisbury",
"Scarborough",
"Sheffield",
"Schrewsbury",
"Southampton",
"Southend-on-Sea",
"Stafford",
"Stirling",
"Stranraer",
"Stratford-on-Avon",
"Swansea",
"Swindon",
"Tebay",
"Tunbridge Wells",
"Weymouth",
"Whitehaven",
"Wick",
"Winchester",
"Worcester",
"Wrexham",
"Yarmouth",
"York"],
"regions": [
"East Anglia",
"Home Counties",
"London",
"Midlands",
"Red Rose Country",
"Scottish Highlands",
"Scottish Lowlands",
"Wales",
"West Country",
"White Rose Country",
],
"city_regions":[5,7,1,7,8,4,0,9,3,4,7,5,3,8,7,8,1,8,7,0,1,7,4,1,0,3,4,5,9,3,9,1,6,5,6,8,5,5,6,8,9,1,6,1,3,0,9,5,0,5,6,0,5,4,9,3,3,4,7,2,5,4,5,9,7,0,3,5,1,8,6,8,6,0,8,1,1,3,8,9,9,3,1,0,3,6,6,3,7,8,4,1,8,4,5,1,3,7,0,9],
"region_rollchart":[[8,8,1,8,0,1,7,2,5,5,5],[9,9,6,6,9,3,4,3,4,0,7]],
"city_rollchart":[
[[83,83,73,45,73,45,65,51,51,65,65],[98,98,98,19,19,6,6,48,24,48,24]],
[[41,95,95,41,68,82,75,76,91,75,76],[2,31,20,31,2,16,23,23,43,43,20]],
[[59,59,59,59,59,59,59,59,59,59,59],[59,59,59,59,59,59,59,59,59,59,59]],
[[25,25,44,44,84,55,96,55,96,81,81],[66,77,66,77,8,8,12,56,29,29,87]],
[[22,22,22,5,93,53,61,61,61,5,93],[90,90,57,57,57,53,26,9,26,9,9]],
[[94,52,49,49,37,33,33,27,27,11,60],[94,67,67,47,47,62,0,0,36,36,60]],
[[32,34,34,34,34,50,85,85,86,32,86],[42,72,72,72,42,38,38,38,42,70,70]],
[[14,14,14,21,21,21,3,10,3,10,58],[58,58,1,1,18,88,88,97,97,64,64]],
[[69,69,89,13,13,39,39,78,35,35,78],[15,92,15,92,17,17,74,4,74,71,71]],
[[79,79,54,54,54,99,99,99,28,28,46],[7,40,7,80,80,63,46,40,30,30,46]],
],
"payoff":[
[0,26,25,23,35,16,25,10,23,18,24,5,24,34,27,31,30,29,28,25,30,28,12,29,29,24,20,8,12,21,19,31,11,4,7,34,11,2,9,26,22,28,9,30,27,26,19,6,28,3,10,24,10,16,17,22,21,19,24,27,13,20,2,13,30,27,21,10,26,39,9,40,5,24,37,31,27,24,29,18,19,22,30,29,22,7,12,24,29,27,14,29,34,14,14,29,25,21,28,0],
[26,0,9,5,14,12,10,20,7,9,3,24,15,13,6,10,15,8,3,12,16,7,14,15,16,6,6,22,12,9,11,17,16,22,19,13,25,28,20,9,14,12,20,16,6,12,13,25,15,26,19,15,29,10,10,10,12,7,3,13,27,8,24,17,18,10,24,17,9,18,19,13,21,14,16,14,11,8,12,14,10,5,13,15,8,21,19,8,4,9,12,15,13,14,33,12,8,5,19,0],
[25,9,0,9,11,11,2,15,2,8,8,23,6,7,8,7,5,5,9,4,7,6,13,6,7,5,5,21,10,3,6,8,15,21,18,9,24,27,19,4,7,3,19,7,6,4,8,24,7,25,18,6,28,9,7,2,5,7,7,4,26,6,23,12,11,8,3,23,1,13,17,15,20,4,12,6,2,1,5,10,5,4,5,6,3,20,17,2,8,3,11,6,8,13,32,4,4,6,9,0],
[23,5,9,0,19,9,10,17,7,6,2,21,13,16,9,13,15,11,8,12,15,10,11,14,15,6,4,19,12,7,9,16,13,19,16,16,22,25,17,10,12,12,17,16,8,12,11,22,15,23,16,13,26,7,8,8,10,4,6,12,24,6,21,14,10,16,8,21,10,20,15,22,18,11,19,15,11,8,13,12,8,5,14,14,6,18,16,8,9,11,9,14,16,11,30,13,8,3,17,0],
[35,14,11,19,0,20,13,25,11,17,16,33,17,7,10,4,10,6,11,15,14,8,22,13,14,11,14,30,20,13,16,15,24,30,27,2,33,37,28,8,18,10,28,12,9,12,18,33,15,34,27,17,37,18,17,13,16,16,12,11,35,15,32,22,13,19,14,32,10,5,26,7,29,15,4,8,10,12,6,20,15,12,7,13,12,29,27,10,10,8,20,13,5,22,41,8,11,14,20,0],
[16,12,11,9,20,0,12,11,9,4,10,14,11,19,13,16,17,14,14,12,17,14,4,16,16,10,6,12,6,8,6,18,6,12,9,19,15,18,10,12,9,14,10,17,12,13,8,15,15,16,9,11,19,2,4,9,8,5,10,14,17,6,14,7,16,14,8,14,12,23,8,25,11,11,22,17,13,10,15,8,6,8,16,16,8,11,9,10,15,13,3,16,19,2,23,15,10,7,15,0],
[25,10,2,10,13,12,0,16,3,11,9,23,4,9,9,7,5,7,12,2,5,8,13,4,5,6,6,15,11,4,7,6,15,12,18,12,18,27,19,5,6,4,19,5,7,2,9,24,5,25,18,4,28,11,8,3,5,8,8,2,20,7,23,13,14,6,4,23,3,16,17,18,20,2,14,6,4,2,7,11,6,5,7,4,4,20,18,3,10,5,12,4,11,14,32,6,5,7,7,0],
[10,20,15,17,25,11,16,0,14,10,17,8,14,22,20,21,21,19,21,15,21,20,6,20,19,15,13,7,5,12,9,22,7,6,3,24,10,12,5,17,12,19,5,21,18,17,9,9,18,10,6,14,13,10,9,13,11,12,17,18,12,11,8,3,23,17,12,9,16,28,5,30,5,14,27,21,17,14,20,8,10,15,20,20,14,5,10,15,22,18,8,20,24,8,17,19,16,14,18,0],
[23,7,2,7,11,9,3,14,0,6,6,21,8,9,6,7,8,5,8,5,8,6,11,7,8,3,3,19,9,2,5,9,13,19,16,10,22,25,17,3,8,5,17,8,4,5,7,22,8,23,16,7,16,7,6,2,5,5,5,5,24,4,21,11,10,9,3,21,3,14,15,16,18,5,13,8,4,1,6,9,4,2,7,7,1,18,16,1,8,4,9,7,9,11,30,6,2,4,10,0],
[18,9,8,6,17,4,11,10,6,0,7,16,9,15,10,13,14,11,11,10,14,11,5,13,14,6,3,13,5,5,4,15,7,13,10,16,15,20,11,9,7,11,11,14,8,12,6,16,13,17,10,9,20,2,2,6,6,2,7,11,18,2,15,7,13,12,6,15,8,20,9,22,12,9,19,14,10,7,12,6,4,5,13,13,5,12,10,7,11,10,4,13,16,6,24,12,8,4,13,0],
[24,3,8,2,16,10,9,17,6,7,0,22,14,15,7,12,14,11,6,11,14,8,12,13,14,5,5,20,12,8,10,15,14,20,17,15,13,26,18,9,13,11,18,14,7,11,12,23,14,24,17,13,27,8,9,8,12,5,4,11,25,7,22,14,8,15,9,22,9,19,16,21,19,11,18,14,10,7,12,13,9,4,13,13,7,19,17,7,7,10,10,13,15,10,31,12,7,3,16,0],
[5,24,23,21,33,14,23,8,21,16,22,0,22,32,25,29,28,27,26,23,28,26,10,27,27,22,18,6,13,19,17,29,9,4,5,32,9,6,7,24,20,26,7,28,25,24,17,2,26,2,8,22,6,14,15,20,19,17,22,25,11,18,6,11,28,25,19,8,24,36,7,38,3,22,35,29,25,22,27,16,17,20,28,27,20,5,10,22,27,25,12,27,32,12,10,27,23,19,26,0],
[24,15,6,13,17,11,4,14,8,9,14,22,0,13,13,13,9,11,14,3,9,12,12,8,7,10,9,20,9,6,5,10,14,20,17,15,23,26,18,9,2,8,18,9,10,5,4,23,6,24,17,2,27,10,7,5,3,10,12,6,25,8,22,11,16,5,5,22,7,20,16,22,19,2,19,10,8,6,11,9,6,9,11,8,8,19,17,7,13,9,10,8,14,13,31,10,9,11,6,0],
[34,13,7,16,7,19,9,22,9,15,15,32,13,0,9,4,5,5,10,10,10,7,20,9,10,10,12,28,17,10,13,10,22,28,25,3,31,36,26,7,14,5,26,7,8,8,15,31,11,32,25,12,35,26,14,9,12,14,11,7,33,13,30,19,12,13,10,30,6,9,24,11,27,11,8,3,6,8,2,17,12,10,2,9,9,27,25,8,7,4,18,7,2,20,39,3,9,12,14,0],
[27,6,8,9,10,13,9,20,6,10,7,25,13,9,0,6,11,4,3,11,12,2,25,11,12,4,7,23,15,8,11,13,17,23,20,9,26,29,21,5,13,8,21,12,2,10,13,26,13,27,20,13,30,11,11,8,11,8,3,9,28,9,25,17,5,15,9,25,7,13,19,15,22,11,12,9,7,7,7,15,10,5,8,11,7,22,20,6,2,5,13,11,9,15,34,8,4,6,16,0],
[31,10,7,13,4,16,7,21,7,13,12,29,13,4,6,0,7,2,7,11,11,4,18,10,11,7,10,26,16,9,12,12,20,26,23,3,28,33,24,4,14,7,24,9,5,9,14,29,12,30,23,13,33,14,13,9,12,12,8,8,30,11,28,18,9,14,10,28,7,7,22,9,25,11,6,5,6,8,3,16,11,8,4,10,8,25,23,6,6,4,16,10,3,18,37,5,7,10,15,0],
[30,15,5,15,10,17,5,21,8,14,14,28,9,5,11,7,0,8,12,6,5,10,18,4,6,11,11,26,16,9,12,5,20,26,23,8,29,32,24,8,11,3,24,2,11,4,14,29,7,30,23,8,33,15,14,8,10,13,13,3,31,12,28,18,15,9,9,28,5,12,22,14,25,7,11,2,4,7,4,16,11,10,3,5,9,25,23,8,12,6,16,2,7,19,37,4,10,12,10,0],
[29,8,5,11,6,14,7,19,5,11,11,27,11,5,4,2,8,0,5,9,9,2,17,8,9,5,8,25,14,7,10,10,19,25,22,5,28,31,23,2,12,5,23,9,3,7,14,28,10,29,22,11,32,13,11,7,10,10,6,6,30,9,27,16,7,13,8,27,4,9,21,11,24,9,8,6,4,6,3,14,9,6,5,8,6,24,22,4,4,2,15,8,5,17,36,5,5,8,14,0],
[28,3,9,8,11,14,12,21,8,11,6,26,14,10,3,7,12,5,0,13,13,3,16,12,13,5,8,24,16,10,13,14,18,24,21,10,27,30,22,6,16,9,22,13,5,11,15,27,14,28,21,15,31,12,12,11,13,9,4,10,29,10,26,18,2,16,11,26,8,14,20,16,23,13,13,10,8,9,8,16,12,6,9,12,10,23,21,9,1,6,14,12,10,16,35,9,9,7,17,0],
[25,12,4,12,15,12,2,15,5,10,11,23,3,10,11,11,6,9,13,0,6,10,13,5,4,8,8,21,10,6,6,7,15,20,18,12,24,27,19,7,5,5,19,6,9,2,8,24,3,25,18,2,28,11,8,5,4,11,10,3,26,9,22,12,15,4,6,23,5,16,17,18,20,2,15,7,5,4,8,10,7,7,8,5,6,20,18,5,12,7,11,5,11,14,32,7,7,9,5,0],
[30,16,7,15,14,17,5,21,8,14,14,28,9,10,12,11,5,9,13,6,0,10,18,1,6,11,11,26,16,9,12,1,20,26,23,12,29,32,24,10,11,5,24,4,11,4,14,29,7,30,23,8,33,15,14,8,10,13,13,3,31,12,28,18,15,9,9,28,6,16,22,18,25,7,15,7,5,7,8,16,11,10,8,5,9,25,23,8,12,7,16,3,11,19,37,7,10,12,10,0],
[28,7,6,10,8,14,8,20,6,11,8,26,12,7,2,4,10,2,3,10,10,0,15,9,10,4,7,23,15,8,11,11,17,23,20,7,26,30,21,3,13,6,21,10,2,8,13,27,11,28,20,12,31,11,12,8,11,9,4,7,28,9,25,17,5,13,9,25,5,11,19,13,22,10,14,8,5,7,5,15,10,5,7,9,7,22,20,5,2,3,13,9,6,15,34,6,4,7,14,0],
[12,14,13,11,22,4,13,6,11,5,12,10,12,20,25,18,18,17,16,13,18,15,0,17,17,11,8,8,4,9,7,19,2,8,5,21,10,14,6,14,10,17,6,18,13,15,8,11,16,12,5,12,15,4,5,10,9,7,12,15,12,7,10,3,18,15,9,10,14,25,4,27,7,12,24,19,15,12,17,7,7,10,18,17,10,7,5,12,17,15,2,17,21,2,19,17,13,9,16,0],
[29,15,6,14,13,16,4,20,7,13,13,27,8,9,11,10,4,8,12,5,1,9,17,0,5,10,10,25,15,8,11,2,19,25,22,11,28,31,23,9,10,4,23,4,10,3,13,28,6,29,22,7,32,14,13,7,9,12,12,2,30,11,27,17,14,7,8,27,5,15,21,17,24,6,14,6,4,6,7,15,10,9,7,4,8,24,22,7,11,6,15,3,10,18,36,6,9,11,9,0],
[29,16,7,15,14,16,5,19,8,14,14,27,7,10,12,11,6,9,13,4,6,10,17,5,0,11,11,26,14,9,10,7,20,26,23,12,29,31,24,9,9,5,24,6,12,4,12,28,1,29,23,6,32,15,12,9,8,13,14,3,31,12,28,16,15,3,9,28,6,16,22,18,25,6,15,7,5,7,8,14,11,10,8,3,9,25,23,8,12,7,16,5,11,19,37,7,10,12,4,0],
[24,6,5,6,11,10,6,15,3,6,5,22,10,10,4,7,11,5,5,8,11,4,11,10,11,0,3,19,11,5,8,12,13,19,16,10,22,26,17,6,10,9,17,13,2,8,10,23,11,24,16,10,27,7,7,5,8,5,3,8,24,5,21,13,7,12,6,21,6,14,15,16,18,8,13,11,7,4,8,11,7,1,10,10,4,18,16,4,6,5,9,11,10,11,30,9,4,3,13,0],
[20,6,5,4,14,6,6,13,3,3,5,18,9,12,7,10,11,8,8,8,11,7,8,10,11,3,0,16,8,3,5,12,10,16,13,13,19,22,14,6,0,8,14,11,5,9,7,19,11,20,13,9,23,4,4,4,6,2,4,8,21,2,18,10,10,12,4,18,6,17,12,19,15,7,16,10,7,4,9,8,4,2,10,10,2,15,13,4,9,7,6,10,13,8,27,9,5,2,13,0],
[8,22,21,19,30,12,15,7,19,13,20,6,20,28,23,26,26,25,24,21,26,23,8,25,26,19,16,0,12,17,16,27,6,4,4,29,3,10,2,22,18,24,3,26,21,23,16,7,24,8,3,20,11,12,13,18,17,15,20,23,5,16,6,10,26,23,17,2,22,33,5,35,3,20,32,26,23,19,25,15,15,18,26,25,17,2,7,19,25,23,10,25,29,10,15,25,20,17,24,0],
[12,12,10,12,20,6,11,5,9,5,12,13,9,17,15,16,16,14,16,10,16,15,4,15,14,11,8,12,0,7,4,17,6,11,8,19,15,17,10,12,7,13,10,16,13,12,4,14,13,15,9,9,18,5,4,8,6,7,12,13,17,6,13,2,18,12,7,14,11,23,8,25,10,9,22,15,12,9,16,5,5,10,15,15,9,10,9,10,17,13,3,15,19,6,22,14,11,9,13,0],
[21,9,3,7,13,8,4,12,2,5,8,19,6,10,8,9,9,7,10,6,9,8,9,8,9,5,3,17,7,0,3,10,11,14,15,12,20,23,15,5,5,6,15,9,6,6,5,20,9,21,14,6,24,7,4,1,3,5,7,6,22,3,16,9,12,9,1,19,2,16,13,18,16,4,15,8,5,2,8,7,2,4,8,8,3,16,14,3,8,6,7,8,12,10,28,7,4,5,10,0],
[19,11,6,9,16,6,7,9,5,4,10,17,5,13,11,12,12,10,13,6,12,11,7,11,10,8,5,16,4,3,0,13,9,15,12,15,18,21,13,8,3,9,13,12,9,8,2,18,9,19,12,5,22,5,2,4,2,5,9,9,20,3,17,6,15,8,3,17,7,19,11,21,14,5,18,11,8,5,11,4,1,7,11,11,6,14,12,6,13,9,6,11,15,8,26,10,7,7,9,0],
[31,17,8,16,15,18,6,22,9,15,15,29,10,10,13,12,5,10,14,7,1,11,19,2,7,12,12,27,17,10,13,0,21,27,26,13,30,33,25,11,12,6,25,4,12,5,15,30,8,31,24,9,34,16,15,9,11,14,14,4,32,13,29,19,16,10,10,29,7,17,23,19,26,8,16,8,6,8,9,17,12,11,9,6,10,26,24,9,13,8,17,3,12,20,38,8,11,13,11,0],
[11,16,15,13,24,6,15,7,13,7,14,9,14,22,17,20,20,19,18,15,20,17,2,19,20,13,10,6,6,11,9,21,0,7,4,23,9,13,4,16,12,18,5,20,15,17,10,10,18,11,3,14,14,6,7,12,11,9,14,17,11,9,9,5,20,17,11,8,15,27,3,29,3,14,26,20,17,13,19,9,9,12,20,19,12,6,3,13,19,17,4,19,24,4,18,19,14,11,18,0],
[4,22,21,19,30,12,12,6,19,13,20,4,20,28,23,26,26,25,24,20,26,23,8,25,26,19,16,4,11,14,15,27,7,0,3,29,7,6,4,22,18,23,4,26,21,23,23,5,24,6,5,20,9,12,13,18,17,15,21,23,9,16,2,9,26,23,17,6,22,33,5,35,1,20,32,25,23,20,25,14,15,18,25,25,18,3,9,20,25,23,10,25,29,10,13,25,21,17,24,0],
[7,19,18,16,27,9,18,3,16,10,17,5,17,25,20,23,23,22,21,18,23,20,5,22,23,16,13,4,8,15,12,26,4,3,0,32,7,9,2,19,15,20,2,23,18,20,20,6,21,7,3,17,10,9,10,15,14,12,18,20,9,13,5,6,23,20,14,6,19,30,2,32,2,17,29,22,20,17,22,11,12,15,22,22,15,2,6,17,22,20,7,22,26,7,10,22,18,14,21,0],
[34,13,9,16,2,19,12,24,10,16,15,32,15,3,9,3,8,5,10,12,12,7,21,11,12,10,13,29,19,12,15,13,23,29,32,0,32,36,27,7,18,8,27,9,8,10,17,33,13,34,26,14,37,17,16,12,15,15,11,9,34,15,31,21,12,15,13,31,8,4,25,6,28,13,3,6,8,10,4,19,14,11,5,11,9,28,26,9,9,6,19,11,3,21,40,6,10,13,16,0],
[11,25,24,22,33,15,18,10,22,15,13,9,23,31,26,28,29,28,27,24,29,26,10,28,29,22,19,3,15,20,18,30,9,7,7,32,0,13,5,25,21,27,6,29,24,26,19,10,27,11,6,23,14,15,16,21,20,18,23,26,8,19,9,13,29,26,20,5,25,26,8,38,6,23,35,29,26,22,28,18,18,21,29,28,20,5,10,22,28,26,13,28,32,13,18,28,23,20,27,0],
[2,28,27,25,37,18,27,12,25,20,26,6,26,36,29,33,32,31,30,27,32,30,14,31,31,26,22,10,17,23,21,33,13,6,9,36,13,0,11,28,24,30,11,32,29,28,21,7,30,4,12,26,11,18,19,24,23,21,26,29,15,22,4,15,32,29,23,12,28,40,11,42,7,26,39,33,29,26,31,20,21,24,32,31,24,9,14,26,31,29,16,31,36,16,15,31,27,23,30,0],
[9,20,19,17,28,10,19,5,17,11,18,7,18,26,21,24,24,23,22,19,24,21,6,23,24,17,14,2,10,15,13,25,4,4,2,27,5,11,0,20,16,21,1,24,19,21,21,8,22,9,1,18,12,10,11,16,15,13,19,21,7,14,6,8,24,21,15,4,20,31,3,33,3,18,30,23,21,18,23,12,13,16,23,23,16,2,5,18,23,21,8,23,27,8,16,23,19,15,22,0],
[26,9,4,10,8,12,5,17,3,9,9,24,9,7,5,4,8,2,6,7,10,3,14,9,9,6,6,22,12,5,8,11,16,22,19,7,25,28,20,0,10,5,20,9,4,7,10,25,10,26,19,9,29,10,9,5,8,8,7,7,27,7,24,14,8,11,6,24,4,11,18,13,21,7,10,7,4,4,4,12,7,5,6,9,4,21,19,2,5,2,12,8,7,14,33,5,3,7,12,0],
[22,14,7,12,18,9,6,12,8,7,13,20,2,14,13,14,11,12,16,5,11,13,10,10,9,10,0,18,7,5,3,12,12,18,15,18,21,24,16,10,0,10,16,11,11,7,4,21,8,22,15,4,25,8,5,5,2,8,11,8,23,6,20,9,18,7,4,20,8,22,14,24,17,4,21,12,10,6,13,7,4,9,13,10,8,17,15,8,15,11,9,10,17,11,29,13,9,10,8,0],
[28,12,3,12,10,14,4,19,5,11,11,26,8,5,8,7,3,5,9,5,5,6,17,4,5,9,8,24,13,6,9,6,18,23,20,8,27,30,21,5,10,0,21,4,7,3,11,27,6,28,21,7,31,12,10,5,8,10,10,2,29,9,25,14,11,8,6,26,2,12,19,14,22,6,11,2,1,4,4,12,8,7,3,4,6,22,21,5,8,3,14,3,7,16,34,3,7,9,9,0],
[9,20,19,17,28,10,19,5,17,11,18,7,18,26,21,24,24,23,22,19,24,21,6,23,24,17,14,3,10,15,13,25,5,4,2,27,6,11,1,20,16,21,0,24,19,21,21,8,22,9,2,18,12,10,11,16,15,13,19,21,8,14,6,8,24,21,15,5,20,31,3,33,3,18,30,23,21,18,23,12,13,16,23,23,16,2,6,18,23,21,8,23,27,8,16,23,19,15,22,0],
[30,16,7,16,12,17,5,21,8,14,14,28,9,7,12,9,2,9,13,6,4,10,18,4,6,13,11,26,16,9,12,4,20,26,23,9,29,32,24,9,11,4,24,0,11,4,14,29,7,30,23,8,33,15,13,8,10,13,14,3,31,13,28,18,15,9,9,28,6,13,22,15,25,7,12,4,5,7,6,16,11,10,5,5,9,25,23,8,12,7,17,1,9,19,37,6,11,12,10,0],
[27,6,6,8,9,12,7,18,4,8,7,25,10,8,2,5,11,3,5,9,11,2,13,10,12,2,5,21,13,6,9,12,15,21,18,8,24,29,19,4,11,7,19,11,0,9,11,26,12,27,18,11,30,9,9,6,9,7,3,8,26,7,23,15,7,13,7,23,6,12,17,14,20,9,11,8,6,5,6,13,8,3,7,10,5,20,18,4,4,4,11,10,4,4,11,10,8,13,32,0],
[26,12,4,12,12,13,2,17,5,12,11,24,5,8,10,9,4,7,11,2,4,8,15,3,4,8,9,23,12,6,8,5,17,23,20,10,26,28,21,7,7,3,21,4,9,0,10,25,5,26,20,4,29,12,10,5,6,10,10,1,28,9,25,14,13,6,6,25,4,14,19,16,22,3,13,5,3,4,6,12,8,7,6,3,6,22,20,5,10,5,14,3,10,5,14,3,9,16,34,0],
[19,13,8,11,18,8,9,9,7,6,12,17,4,15,13,14,14,14,15,8,14,13,8,13,12,10,7,16,4,5,2,15,10,23,20,17,19,21,21,10,4,11,21,14,11,10,0,18,11,19,20,7,22,7,4,6,4,7,11,11,21,6,25,6,17,10,10,18,9,21,19,23,22,7,20,14,10,7,13,4,3,9,13,13,8,22,20,8,15,11,7,13,15,11,7,13,16,10,34,0],
[6,25,24,22,33,15,24,9,22,16,23,2,23,31,26,29,29,28,27,24,29,27,11,28,28,23,19,7,14,20,18,30,10,5,6,33,10,7,8,25,21,27,8,29,26,25,18,0,27,3,9,23,4,15,16,21,20,18,23,26,12,19,7,12,29,26,20,9,25,37,8,39,4,23,36,30,26,23,28,17,18,21,29,28,21,6,11,23,28,26,13,28,28,26,13,28,33,13,8,0],
[28,15,7,15,15,15,5,18,8,13,14,26,6,11,13,12,7,10,14,3,7,11,16,6,1,11,11,24,13,9,9,8,18,24,21,13,27,30,22,10,8,6,22,7,12,5,11,27,0,28,21,5,31,14,11,8,7,13,13,4,29,12,26,15,16,2,9,26,7,17,20,19,23,5,16,8,6,7,9,13,11,10,9,4,9,23,21,8,13,8,15,6,12,17,35,8,10,12,3,0],
[3,26,25,23,34,16,25,10,23,17,24,2,24,32,27,30,30,29,28,25,30,28,12,29,29,24,20,8,15,21,19,31,11,6,7,34,11,4,9,26,22,28,9,30,27,26,19,3,28,0,10,24,7,16,17,22,21,19,24,27,13,20,5,13,30,27,21,10,26,38,9,40,5,24,37,31,27,24,29,18,19,22,30,29,22,7,12,24,29,27,14,29,34,14,11,29,25,21,28,0],
[10,19,18,16,27,9,18,6,16,10,17,8,17,25,20,23,23,22,21,18,23,20,5,22,23,16,13,3,9,14,12,24,3,5,3,26,6,12,1,19,15,21,2,23,18,20,20,9,21,10,0,17,13,9,10,15,14,12,18,20,8,13,7,8,24,20,14,5,19,30,4,32,4,17,29,22,20,17,22,11,12,15,22,22,15,3,4,17,22,20,7,22,26,7,17,22,18,14,21,0],
[24,15,6,13,17,11,4,14,7,9,13,22,2,12,13,13,8,11,15,2,8,12,12,7,6,10,9,20,9,6,5,9,14,20,17,14,23,26,18,9,4,7,18,8,11,4,7,23,5,24,17,0,27,10,7,5,3,10,12,5,25,8,22,11,17,3,5,22,7,18,16,20,19,2,17,9,7,6,10,9,6,9,10,7,8,19,17,7,14,9,11,7,13,13,31,9,9,11,4,0],
[10,29,28,26,37,19,28,13,16,20,27,6,27,35,30,33,33,32,31,28,33,31,15,32,32,27,23,11,18,24,22,34,14,9,10,37,14,11,12,29,25,31,12,33,30,29,22,4,31,7,13,27,0,19,20,25,24,22,27,30,16,23,11,16,33,30,24,13,29,41,12,43,8,27,40,34,30,27,32,21,22,25,33,32,25,10,15,27,32,30,17,32,37,17,10,32,28,24,31,0],
[16,10,9,7,18,2,11,10,7,2,8,14,10,26,11,14,15,13,12,11,15,11,4,14,15,7,4,12,5,7,5,16,6,12,9,17,15,18,10,10,8,12,10,15,9,12,7,15,14,16,9,10,19,0,3,8,7,3,8,12,17,4,14,7,14,13,7,14,10,21,8,23,11,10,20,15,11,8,13,7,5,6,14,14,6,11,9,8,13,11,2,14,17,4,23,13,9,5,14,0],
[17,10,7,8,17,4,8,9,6,2,9,15,7,14,11,13,14,11,12,8,14,12,5,13,12,7,4,13,4,4,2,15,7,13,10,16,16,19,11,9,5,10,11,13,9,10,4,16,11,17,10,7,20,3,0,5,4,4,8,10,18,2,15,6,14,10,4,15,8,20,9,22,12,7,19,13,9,7,12,4,2,6,12,12,5,12,10,7,13,10,4,12,16,6,24,11,8,6,11,0],
[22,10,2,8,13,9,3,13,2,6,8,20,5,9,8,9,8,7,11,5,8,8,10,7,9,5,4,18,8,1,4,9,12,18,15,12,21,24,16,5,5,5,16,8,6,5,6,21,8,22,15,5,25,8,5,0,3,6,7,5,23,4,20,10,13,8,1,20,3,16,14,18,17,3,15,8,4,1,7,8,3,4,7,7,3,17,15,3,10,5,9,7,10,11,29,6,4,6,9,0],
[21,12,5,10,16,8,5,11,5,6,12,19,3,12,11,12,10,10,13,4,10,11,9,9,8,8,6,17,6,3,2,11,11,17,14,15,20,23,15,8,2,8,15,10,9,6,4,20,7,21,14,3,24,7,4,3,0,7,10,7,22,5,19,8,15,6,2,19,6,19,13,21,16,3,18,11,7,4,10,6,3,8,10,9,6,16,14,6,13,8,8,9,15,10,28,9,7,8,7,0],
[19,7,7,4,16,5,8,12,5,2,5,17,10,14,8,12,13,10,9,11,13,9,7,12,13,5,2,15,7,5,5,14,9,15,12,15,18,21,13,8,8,10,13,13,7,10,7,18,13,19,12,10,22,3,4,6,7,0,5,10,20,2,17,9,11,13,6,17,8,19,11,21,14,9,18,13,9,6,11,9,4,4,12,12,4,14,12,7,9,9,5,12,15,7,26,11,7,2,14,0],
[24,3,7,6,12,10,8,17,5,7,4,22,12,11,3,8,13,6,4,10,13,4,12,12,14,3,4,20,12,7,9,14,14,21,18,11,23,26,19,7,11,10,19,14,3,10,11,23,13,24,18,12,27,8,8,7,10,5,0,10,25,6,23,14,6,15,8,22,8,15,17,17,20,10,14,12,9,6,9,12,8,3,11,12,6,20,18,6,5,7,10,13,11,12,32,10,5,3,16,0],
[27,13,4,12,11,14,2,18,5,11,11,25,6,7,9,8,3,6,10,3,3,7,15,2,3,8,8,23,13,6,9,4,17,23,20,9,26,29,21,7,8,2,21,3,8,1,11,26,4,27,20,5,30,12,10,5,7,10,10,0,28,9,25,15,12,6,6,25,3,13,19,15,22,4,12,4,2,4,5,13,8,7,5,2,6,22,20,5,9,4,14,2,8,16,34,4,7,9,7,0],
[13,27,26,24,35,17,20,12,24,18,25,11,25,33,28,30,31,30,29,26,31,28,12,30,31,24,21,5,17,22,20,32,11,9,9,34,8,15,7,27,23,29,8,31,26,28,21,12,29,13,8,25,16,17,18,23,22,20,25,28,0,21,11,15,31,28,22,7,27,38,10,40,8,25,37,31,28,24,30,20,20,23,31,30,22,7,12,24,30,28,15,30,34,15,20,30,25,22,29,0],
[20,8,6,6,15,6,7,11,4,2,7,18,8,13,9,11,12,9,10,9,12,9,7,11,12,5,2,16,6,3,3,13,9,16,13,15,19,22,14,7,6,9,14,13,7,9,6,19,12,20,13,8,23,4,2,4,5,2,6,9,21,0,18,8,12,11,4,18,7,19,12,21,15,7,18,12,8,5,10,6,2,4,11,11,3,15,13,5,11,8,6,12,14,8,27,10,6,4,12,0],
[2,24,23,21,32,14,23,8,21,15,22,6,22,30,25,28,28,27,26,22,28,25,10,27,28,21,18,6,13,16,17,29,9,2,5,31,9,4,6,24,20,25,6,28,23,25,25,7,26,5,7,22,11,14,15,20,19,17,23,25,11,18,0,11,28,25,19,8,24,35,7,37,3,22,34,27,25,22,27,16,17,20,27,27,20,5,11,22,27,25,12,27,31,12,15,27,23,19,26,0],
[13,17,12,14,22,7,13,3,11,7,14,11,11,19,17,18,18,16,18,12,18,17,3,17,16,13,10,10,2,9,6,19,5,9,6,21,13,15,8,14,9,14,8,18,15,14,6,12,15,13,8,11,16,7,6,10,8,9,14,15,15,8,11,0,20,14,9,12,13,25,6,27,8,11,24,18,14,11,17,5,7,12,17,17,11,10,8,12,19,15,5,17,21,5,20,16,13,11,15,0],
[30,18,11,10,13,16,14,23,10,13,8,28,16,12,5,9,15,7,2,15,15,5,18,14,15,7,10,26,18,12,15,16,20,26,23,12,29,32,24,8,18,11,24,15,7,13,17,29,16,30,24,17,33,14,14,13,15,11,6,12,31,12,28,20,0,18,13,28,10,16,22,18,25,15,15,12,10,11,10,18,14,8,11,14,12,25,23,11,3,8,16,14,12,18,37,11,11,9,19,0],
[27,10,8,16,19,14,6,17,9,12,15,25,5,13,15,14,9,13,16,4,9,13,15,7,3,12,12,23,12,9,8,10,17,23,20,15,26,29,21,11,7,8,21,9,13,6,10,26,2,27,20,3,30,13,10,8,6,13,15,6,28,11,25,14,18,0,8,25,9,19,19,21,22,5,18,10,8,8,11,12,9,11,11,6,10,22,20,9,15,10,14,8,14,16,24,10,11,13,1,0],
[21,24,3,8,14,8,4,12,3,6,9,19,5,10,9,10,9,8,11,6,9,9,9,8,9,6,4,17,7,1,3,10,11,17,14,13,20,23,15,6,4,6,15,9,7,6,10,20,9,21,14,5,24,7,4,1,2,6,8,6,22,4,19,9,13,8,0,17,4,17,13,19,16,4,16,9,5,2,8,7,2,5,8,8,4,16,14,4,11,6,8,8,11,10,28,7,5,6,9,0],
[10,17,23,21,32,14,23,9,21,15,22,8,22,30,25,28,28,27,26,23,28,25,10,27,28,21,18,2,14,19,17,29,8,6,6,31,5,12,4,24,20,26,5,28,23,25,18,9,26,10,5,22,13,14,15,20,19,17,22,25,7,18,8,12,28,25,17,0,24,35,7,37,5,22,34,28,25,21,27,17,17,20,28,27,19,4,9,21,27,25,12,27,31,12,17,27,22,19,26,0],
[26,9,1,10,10,12,3,16,3,8,9,24,7,6,7,7,5,4,8,5,6,5,14,5,6,6,6,22,11,2,7,7,15,22,19,8,25,28,20,4,8,2,20,6,6,4,9,25,7,26,19,7,29,10,8,3,6,8,8,3,27,7,24,13,10,9,4,24,0,12,18,14,21,5,11,5,1,2,4,11,6,5,4,5,4,21,19,3,7,2,12,5,7,14,33,3,5,7,10,0],
[39,18,13,20,5,23,16,28,14,20,19,36,20,9,13,7,12,9,14,16,16,11,25,15,16,14,17,33,23,16,19,17,27,33,30,4,26,40,31,11,22,12,31,13,12,14,21,37,17,38,30,18,41,21,20,16,19,19,15,13,38,19,35,25,16,19,17,35,12,0,29,7,32,18,4,10,12,14,8,23,18,15,9,15,13,32,30,13,13,10,23,15,7,25,44,10,14,17,20,0],
[9,19,17,15,26,8,17,5,15,9,16,7,16,24,19,22,22,21,20,17,22,19,4,21,22,15,12,5,8,13,11,23,3,5,2,25,8,11,3,18,14,19,3,22,17,19,19,8,20,9,4,16,12,8,9,14,13,11,17,19,10,12,7,6,22,19,13,7,18,29,0,31,4,18,28,21,19,16,21,10,11,14,21,21,14,4,6,16,21,19,6,21,25,6,9,21,17,13,20,0],
[40,13,15,22,7,25,18,30,16,22,21,38,22,11,15,9,14,11,16,18,18,13,27,17,18,16,19,35,25,18,21,19,29,35,32,6,38,42,33,13,24,14,33,15,14,16,23,39,19,40,32,20,43,23,22,18,21,21,17,15,40,21,37,27,18,21,19,37,14,7,31,0,34,19,4,12,14,16,10,25,20,17,11,17,15,34,32,15,15,12,25,17,9,27,46,12,16,19,22,0],
[5,21,20,18,29,11,20,5,18,12,19,3,19,27,22,25,25,24,23,20,25,22,7,24,25,18,15,3,10,16,14,26,3,1,2,28,6,7,3,21,17,22,3,25,20,22,22,4,23,5,4,19,8,11,12,17,16,14,20,22,8,15,3,8,25,22,16,5,21,32,4,34,0,19,31,24,22,19,24,13,14,17,24,24,17,2,8,19,24,22,9,24,28,9,12,24,20,16,23,0],
[24,14,4,11,15,11,2,14,5,9,11,22,2,11,11,11,7,9,13,2,7,10,12,6,6,8,7,20,9,4,5,8,14,20,17,13,23,26,18,7,4,6,18,7,9,3,7,23,5,24,17,2,27,10,7,3,3,9,10,4,25,7,22,11,15,5,4,22,5,18,18,19,19,0,16,8,6,4,9,9,6,7,9,6,6,19,17,5,12,7,11,6,12,13,31,8,7,9,6,0],
[37,16,12,19,4,22,14,27,13,19,18,35,19,8,12,6,11,8,13,15,15,14,24,14,15,13,16,32,22,15,18,16,26,32,29,3,35,39,30,10,21,11,30,12,11,13,20,36,16,37,29,17,40,20,19,15,18,18,14,12,37,18,34,24,15,18,16,34,11,4,28,4,31,16,0,9,11,13,7,22,17,14,8,14,12,31,29,12,12,9,22,14,7,24,43,9,13,16,19,0],
[31,14,6,15,8,17,6,21,8,14,14,29,10,3,9,5,2,6,10,7,7,8,19,6,7,11,10,26,15,8,11,8,20,25,22,6,29,33,23,7,12,2,23,4,8,5,14,30,8,31,22,9,34,15,13,8,11,13,12,4,31,12,27,18,12,10,9,28,5,10,21,12,24,8,9,0,3,7,2,16,11,10,1,6,9,24,22,7,9,4,17,5,5,19,36,2,8,12,11,0],
[27,11,2,11,10,13,4,17,4,10,10,25,8,6,7,6,4,4,8,5,5,5,15,4,5,7,7,23,12,5,8,6,17,23,20,8,26,29,21,4,10,1,21,5,6,3,10,26,6,27,20,7,30,11,9,4,7,9,9,2,28,8,25,14,10,8,5,25,1,12,19,14,22,6,11,3,0,3,4,12,7,6,4,4,5,22,20,4,7,2,13,4,7,15,34,3,6,8,9,0],
[24,8,1,8,12,10,2,14,1,7,7,22,6,8,7,8,7,6,9,4,7,7,12,6,7,4,4,19,9,2,5,8,13,20,17,10,22,26,18,4,6,4,18,7,5,4,7,23,7,24,17,6,27,8,7,1,4,6,6,4,24,5,22,11,11,8,2,21,2,14,16,16,19,4,13,7,3,0,6,9,4,3,6,6,2,19,17,2,9,4,10,6,9,12,31,5,3,5,9,0],
[29,12,5,13,6,15,7,20,6,12,12,27,11,2,7,3,4,3,8,8,8,5,17,7,8,8,9,25,16,8,11,9,19,25,22,4,28,31,23,4,13,4,23,6,6,6,13,28,9,29,22,10,32,13,12,7,10,11,9,5,30,10,27,17,10,11,8,27,4,8,21,10,24,9,7,2,4,6,0,15,10,8,1,7,7,24,22,5,7,2,15,7,3,17,36,2,6,10,12,0],
[18,14,10,12,20,8,11,8,9,6,13,16,9,17,15,16,16,14,16,10,16,15,7,15,14,11,8,15,5,7,4,17,9,14,11,19,18,20,12,12,7,12,12,16,13,12,4,17,13,18,11,9,21,7,4,8,6,9,12,13,20,6,16,5,18,12,7,17,11,23,10,25,13,9,22,16,12,9,15,0,5,10,15,15,9,13,11,10,17,13,6,15,18,10,25,14,11,10,13,0],
[19,10,5,8,15,6,6,10,4,4,9,17,6,12,10,11,11,9,12,7,11,10,7,10,11,7,4,15,5,2,1,12,9,15,12,14,18,21,13,7,4,8,13,11,8,8,3,18,11,19,12,6,22,5,2,3,3,4,8,8,20,2,17,7,14,9,2,17,6,18,11,20,14,6,17,11,7,4,10,5,0,6,10,10,5,14,12,5,12,8,6,10,13,8,26,9,6,6,10,0],
[22,5,4,5,12,8,5,15,2,5,4,20,9,10,5,8,10,6,6,7,10,5,10,9,10,1,2,18,10,4,7,11,12,18,15,11,21,24,16,5,9,7,16,10,3,7,9,21,10,22,15,9,25,6,6,4,8,4,3,7,23,4,20,12,8,11,5,20,5,15,14,17,17,7,14,10,6,3,8,10,6,0,9,9,3,17,15,3,7,6,8,9,11,10,29,8,3,2,12,0],
[30,13,5,14,7,16,7,20,7,13,13,28,11,2,8,4,3,5,9,8,8,7,18,7,8,10,10,26,15,8,11,9,20,25,22,5,29,32,23,6,13,3,23,5,7,6,13,29,9,30,22,10,33,14,12,7,10,12,11,5,31,11,27,17,11,11,8,28,4,9,21,11,24,9,8,1,4,6,1,15,10,9,0,7,8,24,22,6,8,3,16,6,4,18,36,1,7,11,12,0],
[29,15,6,14,13,16,4,20,7,13,13,27,8,9,11,10,5,8,12,5,5,9,17,4,3,10,10,25,15,8,11,6,19,25,22,11,28,31,23,9,10,4,23,5,10,3,13,28,4,29,22,7,32,14,12,7,9,12,12,2,30,11,27,17,14,6,8,27,5,15,21,17,24,6,14,6,4,6,7,15,10,9,7,0,8,24,22,7,11,6,16,4,10,18,36,6,9,11,7,0],
[22,8,3,6,12,8,4,14,1,5,7,20,8,9,7,8,9,6,10,6,9,7,10,8,9,4,2,17,9,3,6,10,12,18,15,9,20,24,16,4,8,6,16,9,5,6,8,21,9,22,15,8,25,6,5,3,6,4,6,6,22,3,20,11,12,10,4,19,4,13,14,15,17,6,12,9,5,2,7,9,5,3,8,8,0,17,15,2,9,5,8,8,10,10,29,6,3,4,11,0],
[7,21,20,18,29,11,20,5,18,12,19,5,19,27,22,25,25,24,23,20,25,22,7,24,25,18,15,2,10,16,14,26,6,3,2,28,5,9,2,21,17,22,2,25,20,22,22,6,23,7,3,19,10,11,12,17,16,14,20,22,7,15,5,10,25,22,16,4,21,32,4,34,2,19,31,24,22,19,24,13,14,17,24,24,17,0,7,19,24,22,9,24,28,9,14,24,20,16,23,0],
[12,19,17,16,27,9,18,10,16,10,17,10,17,25,20,23,23,22,21,18,23,20,5,22,23,16,13,7,9,14,12,24,3,9,6,26,10,14,5,19,15,21,6,23,18,20,20,11,21,12,4,17,15,9,10,15,14,12,18,20,12,13,11,8,23,20,14,9,19,30,6,32,8,17,29,22,20,17,22,11,12,15,22,22,15,7,0,17,22,20,7,22,26,7,20,22,18,14,21,0],
[24,8,2,8,10,10,3,15,1,7,7,22,7,8,6,6,8,4,9,5,8,5,12,7,8,4,4,19,10,3,6,9,13,20,17,9,22,26,18,2,8,5,18,8,4,5,8,23,8,24,17,7,27,8,7,3,6,7,6,5,24,5,22,12,11,9,4,21,3,13,16,15,19,5,12,7,4,2,5,10,5,3,6,7,2,19,17,0,7,3,10,7,8,12,31,6,2,5,10,0],
[29,4,8,9,10,15,10,22,8,11,7,27,13,7,2,6,12,4,1,12,12,2,17,11,12,6,9,25,17,8,13,13,19,25,22,9,28,31,23,5,15,8,23,12,4,10,15,28,13,29,22,14,32,13,13,10,13,9,5,9,30,11,27,19,3,15,11,27,7,13,21,15,24,12,12,9,7,9,7,17,12,7,8,11,9,24,22,7,0,5,15,11,9,17,36,8,6,8,16,0],
[27,9,3,11,8,13,5,18,4,10,10,25,9,4,5,4,6,2,6,7,7,3,15,6,7,5,7,23,13,6,9,8,17,23,20,6,26,29,21,2,11,3,21,7,4,5,11,26,8,27,20,9,30,11,10,5,8,9,7,4,28,8,25,15,8,10,6,25,2,10,19,12,22,7,9,4,2,4,2,13,8,6,3,6,5,22,20,3,5,0,13,6,5,15,34,3,4,8,11,0],
[14,12,11,9,20,3,12,8,9,4,10,12,10,18,13,16,16,15,14,11,16,13,2,15,16,9,6,10,3,7,6,17,4,10,7,19,13,16,8,12,9,14,8,17,11,14,7,13,15,14,7,11,17,2,4,9,8,5,10,14,15,6,12,5,16,14,8,12,12,23,6,25,9,11,22,17,13,10,15,6,6,8,16,16,8,9,7,10,15,13,0,16,19,4,21,14,10,7,15,0],
[29,15,6,14,13,16,4,20,7,13,13,27,8,7,11,10,2,8,12,5,3,9,17,3,5,11,10,25,15,8,11,3,19,25,22,11,28,31,23,8,10,3,23,1,10,3,13,28,6,29,22,7,32,14,12,7,9,12,13,2,30,12,27,17,14,8,8,27,5,15,21,17,24,6,14,5,4,6,7,15,10,9,6,4,8,24,22,7,11,6,16,0,10,18,36,6,10,11,9,0],
[34,13,8,16,5,19,11,24,9,16,15,32,14,2,9,3,7,5,10,11,11,6,21,10,11,10,13,29,19,12,15,12,24,29,26,3,32,36,27,7,17,7,27,9,4,10,15,28,12,34,26,13,37,17,16,10,15,15,11,8,34,14,31,21,12,14,11,31,7,7,25,9,28,12,7,5,7,9,3,18,13,11,4,10,10,28,26,8,9,5,19,10,0,21,40,5,10,13,15,0],
[14,14,13,11,22,2,14,8,11,6,10,12,13,20,15,18,19,17,16,14,19,15,2,18,19,11,8,10,6,10,8,20,4,10,7,21,13,16,8,14,11,16,8,19,4,5,11,26,17,14,7,13,17,4,6,11,10,7,12,16,15,8,12,5,18,16,10,12,14,25,6,27,9,13,24,19,15,12,17,10,8,10,18,18,10,9,7,12,17,15,4,18,21,0,21,17,12,9,17,0],
[14,33,32,30,41,23,32,17,30,24,31,10,31,39,34,37,37,36,35,32,37,34,19,36,37,30,27,15,22,28,26,38,18,13,10,40,18,15,16,33,29,34,16,37,11,14,7,13,35,11,17,31,10,23,24,29,28,26,32,34,20,27,15,20,37,24,28,17,33,44,9,46,12,31,43,36,34,31,36,25,26,29,36,36,29,14,20,31,36,34,21,36,40,21,0,36,32,28,35,0],
[29,12,4,13,8,15,6,19,6,12,12,27,10,3,8,5,4,5,9,7,7,6,17,6,7,9,9,25,14,7,10,8,19,25,22,6,28,31,23,5,13,3,23,6,10,3,13,28,8,29,22,9,32,13,11,6,9,11,10,4,30,10,27,16,11,10,7,27,3,10,21,12,24,8,9,2,3,5,2,14,9,8,1,6,6,24,22,6,8,3,14,6,5,17,36,0,7,11,11,0],
[25,8,4,8,11,10,5,16,2,8,7,23,9,9,4,7,10,5,9,7,10,4,13,9,10,4,5,20,11,4,7,11,14,21,18,10,23,27,19,3,9,7,19,11,8,9,16,33,10,25,18,9,28,9,8,4,7,7,5,7,25,6,23,13,11,11,5,22,5,14,17,16,20,7,13,8,6,3,6,11,6,3,7,9,3,20,18,2,6,4,10,10,10,12,32,7,0,5,12,0],
[21,5,6,3,14,7,7,14,4,4,3,19,11,12,6,10,12,8,7,9,12,7,9,11,12,3,2,17,9,5,7,13,11,17,14,13,20,23,15,7,10,9,15,12,13,16,10,13,12,21,14,11,24,5,6,6,8,2,3,9,22,4,19,11,9,13,6,19,7,17,13,19,16,9,16,12,8,5,10,10,6,2,11,11,4,16,14,5,8,8,7,11,13,9,28,11,5,0,14,0],
[28,19,9,17,20,15,7,18,10,13,16,26,6,14,16,15,10,14,17,5,10,14,16,9,4,13,13,24,13,10,9,11,18,24,21,16,27,30,22,12,8,9,22,10,32,34,34,8,3,28,21,4,31,14,11,9,7,14,16,7,29,12,26,15,19,1,9,26,10,20,20,22,23,6,19,11,9,9,12,13,10,12,12,7,11,23,21,10,16,11,15,9,15,17,35,11,12,14,0,0],
[17,12,8,10,18,6,9,7,7,4,11,15,7,15,13,14,14,12,14,8,14,13,6,13,12,9,6,14,2,5,2,15,8,12,10,17,17,19,11,10,5,11,11,14,7,5,12,28,11,17,10,7,20,5,2,6,4,6,10,11,19,4,15,4,16,10,5,16,9,21,9,23,12,7,20,14,10,7,13,2,3,8,13,13,7,12,10,8,15,11,5,13,17,8,24,12,9,8,11,0]
],
},
}
// Print out the roll chart. Useful for debugging.
function printRollChart() {
var padLeft = function(str, size) {
return (" " + str).slice(-1 * size);
};
var padRight = function(str, size) {
return (str + " ").substr(0, size - 1);
};
for (mapName in maps) {
console.log("map name: " + mapName);
m = maps[mapName];
out = [
"Region Roll Chart",
"-----------------------------------------------",
"ODD | EVEN"
];
for (var i = 0; i <= 10; i++) {
s = padLeft(i + 2, 2) + ": " + padRight(m.regions[m.region_rollchart[1][i]], 20);
s += "|";
s += padLeft(i + 2, 2) + ": " + padRight(m.regions[m.region_rollchart[0][i]], 20);
out.push(s);
}
console.log(out.join("\n"));
for (r = 0; r < m.regions.length; r++) {
out = [
m.regions[r] + " Roll Chart",
"-----------------------------------------------",
"ODD | EVEN"
];
for (var i = 0; i <= 10; i++) {
s = padLeft(i + 2, 2) + ": " + padRight(m.cities[m.city_rollchart[r][1][i]], 20);
s += "|";
s += padLeft(i + 2, 2) + ": " + padRight(m.cities[m.city_rollchart[r][0][i]], 20);
out.push(s);
}
console.log(out.join("\n"));
}
}
}
var app = angular.module('app', []);
app.controller('Ctrl', function ($scope, $location) {
$scope.numPlayers = 1;
$scope.showSettings = false;
$scope.players = []
/**
* Watch for map changes.
*/
$scope.$watch("map", function(map) {
map = (map === undefined) ? "US" : map;
$scope.data = maps[map];
$scope.cities = $scope.data.cities;
$scope.regions = $scope.data.regions;
// Update all of the player data for the new map
$scope.updatePlayers();
// Update the location history
$location.search("map", map);
});
$scope.updatePlayers = function() {
// Update regions and payoffs.
for (var i = 0; i < $scope.numPlayers; i++) {
var player = $scope.players[i];
player.homeRegion = $scope.data.city_regions[player.home];
player.origRegion = $scope.data.city_regions[player.orig];
player.destRegion = $scope.data.city_regions[player.dest];
if (player.orig < 0 || player.dest < 0) {
player.payoff = "n/a";
} else {
player.payoff = $scope.data.payoff[player.orig][player.dest];
}
}
// Update the location history
$location.search("players", JSON.stringify($scope.players));
};
/**
* Watch for player city changes.
*/
$scope.$watch("players", $scope.updatePlayers, true);
$scope.updateNumPlayers = function() {
var numPlayers = ($scope.numPlayers === undefined) ? 1 : +$scope.numPlayers;
// Add or remove players.
var playerDelta = numPlayers - $scope.players.length;
if (playerDelta > 0) {
var colorChoices = remainingColors($scope.players);
for (var i = 0; i < playerDelta; i++) {
$scope.players.push({
home: -1,
orig: -1,
dest: -1,
color: colorChoices[i],
payoff: "n/a",
});
}
} else {
for (var i = 0; i > playerDelta; i--) {
$scope.players.pop();
}
}
};
/**
* Watch for numPlayers changes.
*/
$scope.$watch("numPlayers", $scope.updateNumPlayers);
/**
* A map from the particular CSS color identifiers we want to use
* to the color names we want to display them as.
*/
$scope.colors = {
"lightgreen": "green",
"pink": "red",
"lightyellow": "yellow",
"lightblue": "blue",
"white": "white",
"lightgrey": "black",
};
var remainingColors = function(playerList) {
return Object.keys($scope.colors).filter(function(color) {
return !$scope.players.some(function(player) {
return player.color === color;
})
})
};
// Rolls 3 dice, 1 d2 and 2 d6.
// NOTE: These rolls start at 0, not 1.
var rollDice = function() {
return [
Math.floor(Math.random() * 2),
Math.floor(Math.random() * 6),
Math.floor(Math.random() * 6)
];
};
$scope.nextDest = function(player, region) {
player.orig = player.dest;
player.origRegion = player.destRegion;
if (region === undefined) {
// Roll for a region.
var r = rollDice();
player.destRegion = $scope.data.region_rollchart[r[0]][r[1] + r[2]];
console.log("rolled region: " + $scope.data.regions[player.destRegion]);
} else {
player.destRegion = region;
console.log("player chose region: " + $scope.data.regions[player.destRegion]);
}
// If the destination region matches the origin region, the player is
// allowed to select an alternate region (and avoid risking turn loss.
if (player.origRegion == player.destRegion) {
player.showRegionPicker = true;
} else {
player.dest = $scope.randomCityInRegion(player.destRegion);
console.log("rolled city: " + $scope.data.cities[player.dest]);
player.showRegionPicker = false;
}
}
$scope.randomCityInRegion = function(region) {
r = rollDice();
return $scope.data.city_rollchart[region][r[0]][r[1] + r[2]];
}
$scope.convertToInt = function(id){
return parseInt(id, 10);
};
$scope.swapMap = function() {
$scope.map = ($scope.map == "US") ? "GB" : "US";
$scope.orig = -1;
$scope.dest = -1;
}
var doInit = function() {
var s = $location.search();
$scope.map = s.map || "US";
try {
$scope.players = JSON.parse(s.players);
} catch (e) {
$scope.players = [];
}
// There should always be at least one player
$scope.numPlayers = Math.max(1, $scope.players.length);
$scope.updateNumPlayers();
};
doInit();
});
</script>
</head>
<body ng-controller="Ctrl">
<div style="display:block;">
Boxcars - Payoff Chart - <a ng-click="swapMap()">{{map}}</a>
</div>
<div class="settings">
<div ng-show="!showSettings">
<span ng-click="showSettings = !showSettings">settings</span>
</div>
<div ng-show="showSettings">
num players:
<select ng-model="numPlayers" ng-options="num for num in [1, 2, 3, 4, 5]"></select>
<br/>
<div ng-repeat="player in players">
player {{$index + 1}}:
<select ng-model="player.color" ng-options="css as human for (css, human) in colors"></select>
</div>
<div ng-click="showSettings = !showSettings">hide settings</div>
</div>
</div>
<div class="centered" ng-repeat="player in players" ng-style="{background_color: player.color}">
<div>
home city:
<select ng-model="player.home" ng-options="convertToInt(idx) as city for (idx, city) in cities"></select>
<span ng-show="homeRegion !== undefined">({{regions[player.homeRegion]}})</span>
</div>
<div class="region-selector" ng-show="player.showRegionPicker">
<p>Since you were already in {{data.regions[player.origRegion]}}, you may pick any region for your next destination!</p>
<button ng-repeat="region in regions" ng-click="nextDest(player, $index)">{{region}}</button>
</div>
<div ng-hide="player.showRegionPicker">
<div>
origin:
<select ng-model="player.orig" ng-options="convertToInt(idx) as city for (idx, city) in cities"></select>
<span ng-show="player.origRegion !== undefined">({{regions[player.origRegion]}})</span>
</div>
<div>
destination:
<select ng-model="player.dest" ng-options="convertToInt(idx) as city for (idx, city) in cities"></select>
<span ng-show="player.destRegion !== undefined">({{regions[player.destRegion]}})</span>
</div>
<div class="payoff">
payoff: {{player.payoff}}
</div>
<div class="warnings">
<div ng-show="player.orig==player.dest && player.orig >= 0">
Same city rolled... loose turn. :/
</div>
</div>
<div class="roller">
<button ng-click="nextDest(player)">next destination!</button>
</div>
</div>
</div>
</body>
</html>