diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 135 |
1 files changed, 135 insertions, 0 deletions
@@ -40,6 +40,141 @@ function set_has(set, item) { return false } +// :r !python3 tools/genlayout.py +// BEGIN LAYOUT DATA +const LAYOUT = { + "Laghouat-OC": [846, 972], + "Laghouat-PTL": [648, 999], + "Laghouat-OPS": [806, 882], + "Laghouat-UG": [631, 896], + "Laghouat-MK": [727, 906], + "Ain Sefra-OC": [465, 1008], + "Ain Sefra-PTL": [365, 1009], + "Ain Sefra-OPS": [485, 927], + "Ain Sefra-UG": [263, 999], + "Ain Sefra-MK": [323, 961], + "Mascara-OC": [523, 815], + "Mascara-PTL": [453, 838], + "Mascara-OPS": [523, 751], + "Mascara-UG": [454, 766], + "Mascara-MK": [440, 714], + "Saida-OC": [379, 883], + "Saida-PTL": [303, 896], + "Saida-OPS": [363, 782], + "Saida-UG": [295, 782], + "Saida-MK": [301, 839], + "Mecheria-OC": [218, 919], + "Mecheria-PTL": [156, 928], + "Mecheria-OPS": [213, 817], + "Mecheria-UG": [153, 828], + "Mecheria-MK": [228, 866], + "Mostaganem-OC": [494, 618], + "Mostaganem-PTL": [436, 567], + "Mostaganem-OPS": [473, 435], + "Mostaganem-UG": [418, 468], + "Mostaganem-MK": [500, 556], + "Sidi Bel Abbes-OC": [368, 639], + "Sidi Bel Abbes-PTL": [301, 680], + "Sidi Bel Abbes-OPS": [338, 545], + "Sidi Bel Abbes-UG": [251, 552], + "Sidi Bel Abbes-MK": [256, 631], + "Tlemcen-OC": [183, 738], + "Tlemcen-PTL": [122, 703], + "Tlemcen-OPS": [183, 661], + "Tlemcen-UG": [112, 629], + "Tlemcen-MK": [130, 556], + "Orleansville-OC": [620, 574], + "Orleansville-PTL": [571, 526], + "Orleansville-OPS": [631, 496], + "Orleansville-UG": [572, 450], + "Orleansville-MK": [631, 436], + "Medea-OC": [751, 491], + "Medea-PTL": [701, 538], + "Medea-OPS": [768, 426], + "Medea-UG": [701, 432], + "Medea-MK": [771, 368], + "Ain Qussera-OC": [696, 794], + "Ain Qussera-PTL": [613, 749], + "Ain Qussera-OPS": [699, 642], + "Ain Qussera-UG": [601, 661], + "Ain Qussera-MK": [655, 689], + "Sidi Aissa-OC": [860, 744], + "Sidi Aissa-PTL": [791, 781], + "Sidi Aissa-OPS": [870, 641], + "Sidi Aissa-UG": [786, 613], + "Sidi Aissa-MK": [769, 731], + "Bougie-OC": [1029, 424], + "Bougie-PTL": [972, 424], + "Bougie-OPS": [1030, 365], + "Bougie-UG": [973, 365], + "Bougie-MK": [1047, 303], + "Bordj Bou Arreridj-OC": [893, 543], + "Bordj Bou Arreridj-PTL": [836, 544], + "Bordj Bou Arreridj-OPS": [893, 485], + "Bordj Bou Arreridj-UG": [837, 485], + "Bordj Bou Arreridj-MK": [945, 539], + "Tizi Ouzou-OC": [903, 411], + "Tizi Ouzou-PTL": [845, 411], + "Tizi Ouzou-OPS": [902, 353], + "Tizi Ouzou-UG": [845, 353], + "Tizi Ouzou-MK": [845, 262], + "Biskra-OC": [1146, 993], + "Biskra-PTL": [1004, 968], + "Biskra-OPS": [1216, 926], + "Biskra-UG": [988, 858], + "Biskra-MK": [1083, 889], + "Batna-OC": [1284, 859], + "Batna-PTL": [1143, 812], + "Batna-OPS": [1303, 781], + "Batna-UG": [1113, 737], + "Batna-MK": [1182, 749], + "Tebessa-OC": [1330, 704], + "Tebessa-PTL": [1249, 688], + "Tebessa-OPS": [1366, 642], + "Tebessa-UG": [1175, 639], + "Tebessa-MK": [1231, 619], + "Barika-OC": [1027, 714], + "Barika-PTL": [954, 737], + "Barika-OPS": [1082, 621], + "Barika-UG": [962, 595], + "Barika-MK": [957, 662], + "Souk Ahras-OC": [1386, 551], + "Souk Ahras-PTL": [1329, 550], + "Souk Ahras-OPS": [1391, 490], + "Souk Ahras-UG": [1327, 488], + "Souk Ahras-MK": [1381, 400], + "Constantine-OC": [1227, 263], + "Constantine-PTL": [1170, 263], + "Constantine-OPS": [1227, 204], + "Constantine-UG": [1170, 204], + "Constantine-MK": [1280, 151], + "Phillippeville-OC": [1244, 540], + "Phillippeville-PTL": [1251, 456], + "Phillippeville-OPS": [1306, 402], + "Phillippeville-UG": [1249, 344], + "Phillippeville-MK": [1306, 307], + "Setif-OC": [1139, 541], + "Setif-PTL": [1043, 523], + "Setif-OPS": [1164, 376], + "Setif-UG": [1104, 408], + "Setif-MK": [1157, 467], + "Algiers-OC": [742, 282], + "Algiers-PTL": [685, 282], + "Algiers-OPS": [742, 223], + "Algiers-UG": [685, 223], + "Algiers-MK": [771, 168], + "Oran-OC": [319, 415], + "Oran-PTL": [263, 415], + "Oran-OPS": [319, 356], + "Oran-UG": [263, 356], + "Oran-MK": [343, 300], + "Morocco-UG": [87, 1005], + "Tunisia-UG": [1412, 951], + "France-UG": [963, 162], + "France-MK": [1013, 128], +} +// END LAYOUT DATA + let ui = { board: document.getElementById("map"), map: document.getElementById("map"), |