diff --git a/js/Makefile b/js/Makefile index 3d3db5e..d236264 100644 --- a/js/Makefile +++ b/js/Makefile @@ -1,5 +1,6 @@ MAPS= +MAPS+=$(wildcard ../maps/horock*.map) MAPS+=$(wildcard ../maps/beard*.map) MAPS+=$(wildcard ../maps/trampoline*.map) MAPS+=$(wildcard ../maps/flood*.map) @@ -17,7 +18,7 @@ maps.js: FORCE SPRITES=earth.png empty.png lambda.png lift.png openlift.png miner.png rock.png bricks.png SPRITES+=$(wildcard trampoline?.png) SPRITES+=$(wildcard target?.png) -SPRITES+=beard.png razor.png deadminer.png minerlift.png +SPRITES+=beard.png razor.png deadminer.png minerlift.png horock.png sprites.png: $(SPRITES) convert -background "#000000" -append $(SPRITES) tmp_sprites.png diff --git a/js/gui.js b/js/gui.js index c40c7d0..d7a2821 100644 --- a/js/gui.js +++ b/js/gui.js @@ -18,7 +18,8 @@ var mineGui_spriteOffset = { 'A': 8,'B': 9,'C':10,'D':11,'E':12,'F':13,'G':14,'H':15,'I':16, '1':17,'2':18,'3':19,'4':20,'5':21,'6':22,'7':23,'8':24,'9':25, 'W':26, - '!':27 + '!':27, + '@':30 }; var mineGui_spriteOffset_Lost = { 'R': 28, @@ -32,7 +33,8 @@ var mineGui_spriteOffset_Lost = { 'A': 8,'B': 9,'C':10,'D':11,'E':12,'F':13,'G':14,'H':15,'I':16, '1':17,'2':18,'3':19,'4':20,'5':21,'6':22,'7':23,'8':24,'9':25, 'W':26, - '!':27 + '!':27, + '@':30 }; var mineGui_spriteOffset_Won = { 'R': 29, @@ -46,7 +48,8 @@ var mineGui_spriteOffset_Won = { 'A': 8,'B': 9,'C':10,'D':11,'E':12,'F':13,'G':14,'H':15,'I':16, '1':17,'2':18,'3':19,'4':20,'5':21,'6':22,'7':23,'8':24,'9':25, 'W':26, - '!':27 + '!':27, + '@':30 }; var mineGui_images = {}; @@ -346,7 +349,7 @@ function mineGui_show(queued) { document.getElementById("mineGui_state").textContent = state; document.getElementById("mineGui_score").textContent = mineGui_mine.score; document.getElementById("mineGui_scoreMoves").textContent = mineGui_mine.moves; - document.getElementById("mineGui_scoreLambdas").textContent = mineGui_mine.found_lambdas; + document.getElementById("mineGui_scoreLambdas").textContent = mineGui_mine.found_lambdas + "/" + (mineGui_mine.lambdas+mineGui_mine.found_lambdas); document.getElementById("mineGui_razors").textContent = mineGui_mine.razors; document.getElementById("mineGui_belowWater").textContent = mineGui_mine.moves_below_water; } diff --git a/js/gui.min.js b/js/gui.min.js index d67c41a..4bcf108 100644 --- a/js/gui.min.js +++ b/js/gui.min.js @@ -1 +1 @@ -var mineGui_mine=false,mineGui_curmap,mineGui_curndx,mineGui_moves="",mineGui_mapname="";var mineGui_movesBackup=[];var mineGui_customNdx=1;var mineGui_canvas=true;var mineGui_imgSources={sprites:"sprites.png"};var mineGui_spriteOffset={R:5,"#":7,"*":6,"\\":2,L:3,O:4,".":0," ":1,A:8,B:9,C:10,D:11,E:12,F:13,G:14,H:15,I:16,"1":17,"2":18,"3":19,"4":20,"5":21,"6":22,"7":23,"8":24,"9":25,W:26,"!":27};var mineGui_spriteOffset_Lost={R:28,"#":7,"*":6,"\\":2,L:3,O:4,".":0," ":1,A:8,B:9,C:10,D:11,E:12,F:13,G:14,H:15,I:16,"1":17,"2":18,"3":19,"4":20,"5":21,"6":22,"7":23,"8":24,"9":25,W:26,"!":27};var mineGui_spriteOffset_Won={R:29,"#":7,"*":6,"\\":2,L:3,O:29,".":0," ":1,A:8,B:9,C:10,D:11,E:12,F:13,G:14,H:15,I:16,"1":17,"2":18,"3":19,"4":20,"5":21,"6":22,"7":23,"8":24,"9":25,W:26,"!":27};var mineGui_images={};var mineGui_imagesNeed=0;function mineGui_loadImg(b,c){var a;++mineGui_imagesNeed;mineGui_images[b]=a=new Image();a.onload=function(){if(0==--mineGui_imagesNeed){mineGui_show()}};a.src=c}function mineGui_start(){console.log("start");var b=document.getElementById("mineGui");var e=document.getElementById("mineGui_selectMap");var c=document.getElementById("mineGui_moves");var a=document.getElementById("mineGui_data");var f={L:1,U:1,R:1,D:1,A:1,W:1,S:1};var d;document.getElementById("mineGui_addData").onclick=mineGui_addCustomMap;e.onchange=function(){var p=e.options[e.selectedIndex].text;mineGui_setMap(p,e.selectedIndex);e.blur()};var j=function(){if(c.value==mineGui_moves){return}mineGui_moves="";var k=c.value.toUpperCase(),p;for(p=0;p0){e.selectedIndex--;e.onchange()}break;case 34:if(e.selectedIndex+11){o=h[1]}}e.appendChild(n)}}e.selectedIndex=l;e.onchange();if(o!==""){c.value=o;c.onchange()}}function mineGui_addCustomMap(){var d=document.getElementById("mineGui_data").value;var f;var c=document.getElementById("mineGui_selectMap");document.getElementById("mineGui_addDataResult").textContent="";try{f=new Mine(d)}catch(b){document.getElementById("mineGui_addDataResult").textContent="Adding map failed: "+b;return}mineMaps["custom"+mineGui_customNdx]=d;var a=document.createElement("option");a.textContent="custom"+mineGui_customNdx;c.appendChild(a);mineGui_customNdx++;window.setTimeout(function(){c.selectedIndex=c.options.length-1;c.onchange()},0)}function mineGui_move(a){for(i=0;i0){document.getElementById("mineGui_mineMapWater").textContent=d.splice(-a).join("\n")}else{document.getElementById("mineGui_mineMapWater").textContent=""}document.getElementById("mineGui_mineMapDry").textContent=d.join("\n");document.getElementById("mineGui_moves").value=mineGui_moves;document.getElementById("mineGui_meta").textContent=mineGui_mine.metaText();document.getElementById("mineGui_state").textContent=c;document.getElementById("mineGui_score").textContent=mineGui_mine.score;document.getElementById("mineGui_scoreMoves").textContent=mineGui_mine.moves;document.getElementById("mineGui_scoreLambdas").textContent=mineGui_mine.found_lambdas;document.getElementById("mineGui_razors").textContent=mineGui_mine.razors;document.getElementById("mineGui_belowWater").textContent=mineGui_mine.moves_below_water}; \ No newline at end of file +var mineGui_mine=false,mineGui_curmap,mineGui_curndx,mineGui_moves="",mineGui_mapname="";var mineGui_movesBackup=[];var mineGui_customNdx=1;var mineGui_canvas=true;var mineGui_imgSources={sprites:"sprites.png"};var mineGui_spriteOffset={R:5,"#":7,"*":6,"\\":2,L:3,O:4,".":0," ":1,A:8,B:9,C:10,D:11,E:12,F:13,G:14,H:15,I:16,"1":17,"2":18,"3":19,"4":20,"5":21,"6":22,"7":23,"8":24,"9":25,W:26,"!":27,"@":30};var mineGui_spriteOffset_Lost={R:28,"#":7,"*":6,"\\":2,L:3,O:4,".":0," ":1,A:8,B:9,C:10,D:11,E:12,F:13,G:14,H:15,I:16,"1":17,"2":18,"3":19,"4":20,"5":21,"6":22,"7":23,"8":24,"9":25,W:26,"!":27,"@":30};var mineGui_spriteOffset_Won={R:29,"#":7,"*":6,"\\":2,L:3,O:29,".":0," ":1,A:8,B:9,C:10,D:11,E:12,F:13,G:14,H:15,I:16,"1":17,"2":18,"3":19,"4":20,"5":21,"6":22,"7":23,"8":24,"9":25,W:26,"!":27,"@":30};var mineGui_images={};var mineGui_imagesNeed=0;function mineGui_loadImg(b,c){var a;++mineGui_imagesNeed;mineGui_images[b]=a=new Image();a.onload=function(){if(0==--mineGui_imagesNeed){mineGui_show()}};a.src=c}function mineGui_start(){var b=document.getElementById("mineGui");var e=document.getElementById("mineGui_selectMap");var c=document.getElementById("mineGui_moves");var a=document.getElementById("mineGui_data");var f={L:1,U:1,R:1,D:1,A:1,W:1,S:1};var d;document.getElementById("mineGui_addData").onclick=mineGui_addCustomMap;e.onchange=function(){var p=e.options[e.selectedIndex].text;mineGui_setMap(p,e.selectedIndex);e.blur()};var j=function(){if(c.value==mineGui_moves){return}mineGui_moves="";var k=c.value.toUpperCase(),p;for(p=0;p0){e.selectedIndex--;e.onchange()}break;case 34:if(e.selectedIndex+11){o=h[1]}}e.appendChild(n)}}e.selectedIndex=l;e.onchange();if(o!==""){c.value=o;c.onchange()}}function mineGui_addCustomMap(){var d=document.getElementById("mineGui_data").value;var f;var c=document.getElementById("mineGui_selectMap");document.getElementById("mineGui_addDataResult").textContent="";try{f=new Mine(d)}catch(b){document.getElementById("mineGui_addDataResult").textContent="Adding map failed: "+b;return}mineMaps["custom"+mineGui_customNdx]=d;var a=document.createElement("option");a.textContent="custom"+mineGui_customNdx;c.appendChild(a);mineGui_customNdx++;window.setTimeout(function(){c.selectedIndex=c.options.length-1;c.onchange()},0)}function mineGui_move(a){for(i=0;i0){document.getElementById("mineGui_mineMapWater").textContent=c.splice(-a).join("\n")}else{document.getElementById("mineGui_mineMapWater").textContent=""}document.getElementById("mineGui_mineMapDry").textContent=c.join("\n");document.getElementById("mineGui_moves").value=mineGui_moves;document.getElementById("mineGui_meta").textContent=mineGui_mine.metaText();document.getElementById("mineGui_state").textContent=b;document.getElementById("mineGui_score").textContent=mineGui_mine.score;document.getElementById("mineGui_scoreMoves").textContent=mineGui_mine.moves;document.getElementById("mineGui_scoreLambdas").textContent=mineGui_mine.found_lambdas+"/"+(mineGui_mine.lambdas+mineGui_mine.found_lambdas);document.getElementById("mineGui_razors").textContent=mineGui_mine.razors;document.getElementById("mineGui_belowWater").textContent=mineGui_mine.moves_below_water}; \ No newline at end of file diff --git a/js/horock.png b/js/horock.png new file mode 100644 index 0000000..66e0404 Binary files /dev/null and b/js/horock.png differ diff --git a/js/maps.js b/js/maps.js index 2a31138..4e37f52 100644 --- a/js/maps.js +++ b/js/maps.js @@ -1,2 +1,2 @@ -var mineMaps = {"beard1":"##########\n#** \\\\\\\\#\n#.R.. #\n# \\ ..*\\#\n#! ..*!#\n#### # #\n#\\\\... # L\n#\\\\.W... #\n#\\\\. #\n##########\n\nGrowth 15\nRazors 0\n","beard2":"##############################\n#R...........................#\n#.........................W..#\n#..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\..#\n#............................#\n#..*****.*\\...*...*...*****..#\n#..*\\....*\\....*\\*..*.\\\\*\\\\..#\n#..*\\....****..!*!......*....#\n#..*\\....*\\....*\\*..*...*....#\n#..*\\....*\\...*...*.....*....#\n#............................#\n#..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\..#\n#................ ..... .....#\n#................ W....L#\n##############################\n\nGrowth 25\nRazors 10\nFlooding 20\n","beard3":" ################\n #*****#!! 1 #\n #..\\..# #\n#########\\\\\\\\ # .\\\\\\. #\n#.............# * #\n#.. .\\\\\\#..!..#\\** #\n#.. LW\\\\#W ..##### ####\n#..R\\\\\\\\#.. ..*\\*\\*W...#\n#.......A.. ...\\.\\...\\\\#\n#.......... ** #\n############....\\.######\n #.....!#\n ########\n\nGrowth 10\nTrampoline A targets 1\n","beard4":"####################\r\n#W\\\\!#\\\\\\**.\\#W\\\\\\W#\r\n##*######..###..\\\\\\#\r\n#.......\\.R ###...\\#\r\n#####.###.#.......##\r\n#.......#.#\\####.###\r\n#\\\\##\\###\\#\\\\#...#.L\r\n#\\##\\.###.####.#.#.#\r\n#\\W#####.....###.W.#\r\n####\\\\...\\\\\\...#.#.#\r\n#W*######.######.#.#\r\n#\\\\\\\\\\\\\\\\\\.........#\r\n############\\###\\###\r\n#\\\\.. *..........\\\\#\r\n#W... #.........##W#\r\n####################\r\n","trampoline1":"############\n#..*.R..*..#\n#..A....B..######\n#....2.. ..#\\\\\\C#\n#......* *.#\\\\\\1#\n########L########\n\nTrampoline A targets 1\nTrampoline B targets 1\nTrampoline C targets 2\nHighscore 426","trampoline2":" ######\n #....#\n #.**.#\n #.**.#\n #.**.#\n######.\\\\.######\n#**....*.......#\n#\\\\....L\\\\\\....#\n#A......*****..#\n######R.....###########\n ###.....*.....\\\\\\#\n #\\\\\\\\#..1...\\\\\\#\n #\\\\\\\\#......\\\\\\#\n ################\n\nTrampoline A targets 1\nHighscore 1742","trampoline3":"#######################################\n#****................#..1...\\\\\\\\\\\\\\B..#\n#R.......##############################\n#.. ..................................#\n#.. ........ \\ ......#\n#.. .*. ....**.*...#....... ..........#\n#.. ... ....\\\\\\\\...#.A..... ..........#\n#.. ... ....\\ .....#....... * \\\\..#\n#.. ... ....\\......#....... ..........#\n#.. ... ....\\......#....... ..........#\n#.. ... ...........#................**#\n#..\\\\\\\\\\...........#................\\\\#\n########### ############## ############\n#...*.................................#\n#....*.................. ......#\n#... .*....*.............. ..... .....#\n#....*2*........########.. ..... .....L\n#...*...*.......#\\\\\\#..... ...*.......#\n#.....\\\\\\.......#\\\\\\#....**..***......#\n#.... .......#\\\\\\#*................#\n#...............#\\\\\\#*...**...*.......#\n#...............#.....................#\n###### ############## ### #######\n#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#\n#######################################\n\nTrampoline A targets 1\nTrampoline B targets 2\nHighscore 5477\n","flood1":"###########\n#....R....#\n#.*******.#\n#.\\\\\\\\\\\\\\.#\n#. .#\n#..*\\\\\\*..#\n#.#*\\\\\\*#.#\n#########L#\n\nWater 1\nFlooding 8 \nWaterproof 5\nHighscore 945\n","flood2":"#######\n#..***#\n#..\\\\\\#\n#...**#\n#.*.*\\#\nLR....#\n#######\n\nFlooding 5\nWaterproof 3\nHighscore 281\n","flood3":"############\n#..........#\n#.....*....#\n#..\\\\\\\\\\\\..#\n#. ....#\n#..\\\\\\\\\\\\\\.#\n#..\\.. .#\n#..\\.. ....#\n#..... ..* #\n#..### ### #\n#...R#\\#\\\\.#\n######L#####\n\nWaterproof 10 \nFlooding 10\nWater 2\nHighscore 1303\n","flood4":"########################\n#.....................\\#\n#......*\\ ...........#\n#......*... ......* ...#\n#.. \\\\... .*..... ...#\n#.. ....... ....... ...#\n#.. ....... .\\\\.... ...# ######\n#. .... .....\\...# #\\\\\\\\#\n#\\\\\\......... .........# #....#\n########### R ########*#####\n #.......... ........***\\\\\\#\n #.......... ............**#\n #.......... ......... *.*\\#\n #....\\\\.... ....\\\\..... ..L\n #.....................****#\n #........\\*...............#\n #........... .........#\n #.........................#\n ###########################\n\nWater 1\nFlooding 20\nWaterproof 10\nHighscore 1592\n","flood5":"#########\n#.*..#\\.#\n#.\\..#\\.L\n#.R .##.#\n#.\\ ...#\n#..\\ ..#\n#...\\ ##\n#....\\ \\#\n#########\n\nWater 2\nFlooding 11\nWaterproof 5\nHighscore 575\n","contest1":"######\n#. *R#\n# \\.#\n#\\ * #\nL .\\#\n######\n\nHighscore 212\n","contest2":"#######\n#..***#\n#..\\\\\\#\n#...**#\n#.*.*\\#\nLR....#\n#######\n\nHighscore 281\n","contest3":"########\n#..R...#\n#..*...#\n#..#...#\n#.\\.\\..L\n####**.#\n#\\.....#\n#\\..* .#\n########\n\nHighscore 275\n","contest4":"#########\n#.*..#\\.#\n#.\\..#\\.L\n#.R .##.#\n#.\\ ...#\n#..\\ ..#\n#...\\ ##\n#....\\ \\#\n#########\n\nHighscore 575\n","contest5":"############\n#..........#\n#.....*....#\n#..\\\\\\\\\\\\..#\n#. ....#\n#..\\\\\\\\\\\\\\.#\n#..\\.. .#\n#..\\.. ....#\n#..... ..* #\n#..### ### #\n#...R#\\#\\\\.#\n######L#####\n\nHighscore 1303\n","contest6":"###############\n#\\\\\\.......** #\n#\\\\#.#####...##\n#\\\\#.....*##. #\n#\\#####\\...## #\n#\\......####* #\n#\\.######* #.\\#\n#\\.#. *...##.##\n#\\##. .. *...#\n#\\...... L#.#.#\n###########.#.#\n#\\..........#.#\n##.##########.#\n#R.#\\.........#\n###############\n\nHighscore 1177\n","contest7":" #######\n ## *#\n ##R *##\n ##\\\\\\\\##\n ##....##\n ##..\\ . ##\n ## . L . ##\n ##\\\\\\# #\\\\\\\\##\n ###### #######\n\nHighscore 869\n","contest8":"##############\n#\\\\... ......#\n###.#. ...*..#\n #.#. ... ..#\n### #. \\ ..#\n#. .#..... **#######\n#.#\\#..... ..\\\\\\*. #\n#*\\\\#.###. ####\\\\\\ #\n#\\\\.#. ...## \\ #\n#\\#.#..... ....# \\ # \n###.#..... ....# ##\n#\\\\.#..... ....#\\ # \n########.. ..###*####\n#......... .........#\n#......... ....***..#\n#..\\\\\\\\\\ # ####.....#\n#........*R..\\\\\\ .#\n##########L##########\n\nHighscore 1973\n","contest9":" #L#######\n #*** \\\\ #\n #\\\\\\ .. #\n#########.## ##########\n#.......\\ ..........* .#\n#*******\\......#....#\\\\ .#\n###\\.\\\\\\...**..#....... *#\n#*****\\\\ .\\\\..## #\\.#\n######### .... ##########\n # #\n ####*#### \n #.......#\n######### \\\\\\\\*##########\n#*\\\\ **# *..*\\ \\\\\\\\\\#\n#.\\**\\*** .....**.# \\\\##\\#\n#\\R...... .\\\\.. \\\\\\\\\\#\n##########################\n\nHighscore 3093\n","contest10":"#############################\n#..........................\\#\n#..\\\\###...#.... ###.#\n#..\\*\\\\\\.. #.... ..##\\\\..\\#.#\n#..\\*\\.... #.... ..#\\#....#.#\n#...\\###.. #.... ....#....#.#\n#... ..... ..... .####......#\n#\\\\. #.... .......#\n#... #..#. .....*\\ ##.......#\n#.#....... ...#.. ....######\n#. ...#... ...#.\\ ....#..* #\n##........ ...#.. #....#.#\\\\#\n#.....*... .....*\\#\\\\.....*.#\n#.***.* .......*\\****.....#.#\n#.\\\\\\.. ................ .#\n#.##### .###### ##### #\n#....\\\\.................... #\n#....****...#.##.....\\\\\\\\..\\#\n#....\\\\\\\\...#.........*....\\#\n#....\\\\\\\\...#.\\\\. #\\###.\\#\n#.... ..#.... ...#\\\\\\\\. #\n#........ ..#.... ...#..... #\n#........ ........#R#\n###########################L#\n\nHighscore 3634\n","ems1":"#######\n#L\\\\\\##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n## ##\n## ##\n##R ##\n## # ##\n#\\ # \\#\n## # ##\n## # ##\n## # ##\n## # ##\n#######\n\nAuthor ems_ (irc)\nHighscore 334\n","ems2":"#########\n###***###\n###***###\n###***###\n###***###\n###***###\n###***###\n# .**\\\\#\n# # #*#\\#\n# # #*#\\#\n# # #*#\\#\n# # #*#\\#\n# # #*#\\#\n# .#\\#\n### **#\n### R \\\\#\n### #L#\n### ###\n### ###\n### ###\n### ###\n### ###\n### ###\n#########\n\nAuthor ems_ (irc)\nHighscore 691\n","ems3":"################\n#\\.****####\\#*##\n#\\.\\\\\\\\.***...##\n##*####.#*###..#\n#\\.R....#...##\\#\n#\\ ####...#.#*.#\n#\\ **######.#..#\n##...\\\\\\\\\\\\...##\n#L.##########.##\n################\n\nAuthor ems_ (irc)\nHighscore 1199\n","ems3v2":"################\n#\\.****####\\#*##\n#\\.\\\\\\\\.***...##\n##*####.#*###..#\n#\\.R....#...##\\#\n#\\ ####...#.#*.#\n#\\ **######.#..#\n##...\\\\\\\\\\\\...##\n#L.#\\########.##\n################\n\nAuthor ems_ (irc)\nHighscore 1272\n","ems4":"#########\n#* L#\n#\\ #\n#\\\\ #\n##\\\\ #\n###\\\\ #\n####\\\\ #\n#####\\\\ #\n####### #\n# #*#*# #\n# * * #\n# #*#*# #\n# * * #\n# #*#*# #\n# R* * #\n# #*#*# #\n# * * #\n# #*#*# #\n# * * #\n# #*#*# #\n# * * #\n###*#*#.#\n#\\. . #\\#\n### # ###\n### # ###\n## # ##\n## # ##\n## # ##\n## # ##\n## # ##\n#########\n\nAuthor ems_ (irc)\nHighscore 908\n","ems5":"###################\n#************* ##\n##***********# * ##\n###*********##.*.##\n####*******####*###\n#####*****#####*###\n######***######*###\n#######*#######*###\n###### * ######*###\n#\\ . #*###\n#\\ \\ #*###\n#\\ ** #*###\n#\\ ## #*###\n#\\ #*###\n#\\ \\ \\ #*###\n#\\ ** ** #*###\n#\\ ## ## #*###\n#\\ #*###\n#\\ \\ \\ \\ #*###\n#R ** ** ** #*\\##\n#### ## ## ## #*###\n###L . ##\n#### ## ## ## ## #\n### # ## # # #\n### # ## # # #\n### # ## # # #\n###################\n\nAuthor ems_ (irc)\nHighscore 990\n","ems5v2":"###################\n#************* ##\n##***********# * ##\n###*********##.*.##\n####*******####*###\n#####*****#####*###\n######***######*###\n#######*#######*###\n###### * ######*###\n#\\ . #*###\n#\\ \\ #*###\n#\\ ** #*###\n#\\ ## #*###\n#\\ #*###\n#\\ \\ \\ #*###\n#\\ ** ** #*###\n#\\ ## ## #*###\n#\\ #*###\n#\\ \\ \\ \\ #*###\n#R ** ** ** #*\\##\n#### ## ## ## #*###\n#### . ##\n#### ## ## ## ## ##\n## ## # # # #\n## * L# #\\ # # *#\n## ## # \\ # ## #\n## #### # \\# \\# #\n###################\n\nAuthor ems_ (irc)\nHighscore 1238\n","ems6":"###########################\n#............R............#\n#.####.######L######.####.#\n#.####.#*#########*#.####.#\n#.####..\\#*******#\\..####.#\n#.######..\\\\\\\\\\\\\\..######.#\n#.####*######.######*####.#\n#.####\\.....#.#.....\\####.#\n#......####.#.#.####....#.#\n#####.#***#.#.#.#***#.#.#.#\n#......\\\\\\..#.#..\\\\\\..#.#.#\n#.#########*****#####.#.#.#\n#..........\\\\\\\\\\......#...#\n###########################\n\nAuthor ems_ (irc)\nWater 7\nWaterproof 42\nHighscore 1414\n","pacman":"###########################\n#............#............#\n#.####.#####.#.#####.####.#\n#\\# #.# #.#.# #.# #\\#\n#.####.#####.#.#####.####.#\n#.........................#\n#.####.#.#########.#.####.#\n#......#.....#.....#......#\n######.#####.#.#####.######\n #.# #.#\n######.# #### #### #.######\nL . # # . **\n######.# ######### #.######\n #.# #.#\n######.# ######### #.######\n#............#............#\n#.####.#####.#.#####.####.#\n#\\...#. R .#...\\#\n####.#.#.#########.#.#.####\n#......#.....#.....#......#\n#.##########.#.##########.#\n#.........................#\n###########################\n\nAuthor newsham (www.thenewsh.com/~newsham/x/pacman.map)\nHighscore 191\n","pacman2":"###########################\n#\\\\\\\\\\\\\\\\\\\\\\\\#\\\\\\\\\\\\\\\\\\\\\\\\#\n#\\####\\#####\\#\\#####\\####\\#\n#.# #\\# #\\#\\# #\\# #.#\n#\\####\\#####\\#\\#####\\####\\#\n#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#\n#\\####\\#\\#########\\#\\####\\#\n#\\\\\\\\\\\\#\\\\\\\\\\#\\\\\\\\\\#\\\\\\\\\\\\#\n######\\#####\\#\\#####\\######\n #\\# #\\#\n######\\# #### #### #\\######\nL \\ # # \\ **\n######\\# ######### #\\######\n #\\# #\\#\n######\\# ######### #\\######\n#\\\\\\\\\\\\\\\\\\\\\\\\#\\\\\\\\\\\\\\\\\\\\\\\\#\n#\\####\\#####\\#\\#####\\####\\#\n#.\\\\\\#\\ R \\#\\\\\\.#\n####\\#\\#\\#########\\#\\#\\####\n#\\\\\\\\\\\\#\\\\\\\\\\#\\\\\\\\\\#\\\\\\\\\\\\#\n#\\##########\\#\\##########\\#\n#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#\n###########################\n\nHighscore 15039\n","bhickey1":"################################ ##\n#******#******#******#**********L #\n##*****##*****##*****##********* #\n#*#****#*#****#*#****#*#*******## #\n# *#***# *#***# *#***# *#*****# # #\n# *#**# *#**# *#**# *#***# # #\n# *#*# *#*# *#*# *#*# # #\n# *A* *B* *C* *D* # #\n# \\ \\ \\ \\ # #\n# * * * * # #\n#*******************************# #\n#R..............................# #\n#\\ # #\n#1 # #\n# # #\n################################# #\n# WE #\n###################################\n\nGrowth 1\nTrampoline A targets 1\nTrampoline B targets 1\nTrampoline C targets 1\nTrampoline D targets 1\nTrampoline E targets 1\nAuthor bhickey (https://gist.github.com/3115673)","bhickey2":"###L######################\n#W#R #*****#!#\\\\\\\\\\\\\\\\\\##\n#*# ..\\.. #\\\\\\\\\\\\\\*\\##\n#*#A 2####### ########.###\n#*# #*****# #*****#B 3##\n#*# ..\\.. ..\\.. ##\n#**E 5 ############## ##\n#***.##C 1\\ D# ####\n#***. #****###****# ***##\n#*** #G...\\4 ...H# ..\\ #\n#\\## ################# ##\n#\\\\# #*****#F 6##*** ##\n#\\\\# ..\\.. ... ##\n####################### ##\n##########################\n\nWater 0\nFlooding 20\nWaterproof 18\nTrampoline A targets 1\nTrampoline B targets 1\nTrampoline C targets 2\nTrampoline D targets 3\nTrampoline E targets 4\nTrampoline F targets 4\nTrampoline G targets 5\nTrampoline H targets 6\nAuthor bhickey (https://gist.github.com/3114986)"}; +var mineMaps = {"horock1":"#####L######\n#....R....A#\n#..........#\n#\\. #@\\ ..#\n#\\...#* ###\n#\\.........#\n#\\..*.@....#\n####@@. ..#\n#....#.. ###\n#....#..**.#\n#.1..# .\\\\#\n############\n\nTrampoline A targets 1\n","horock2":"#################\n#A .@@@@@@#\n# .. #*...*1#\n# .##########*##\n# ..@ \\\\\\\\#* #\n# ..# #####*.#\n# .##### * #\n#LR ....... . #\n#################\n\nTrampoline A targets 1\nFlooding 10\nWater 0\n","horock3":"#################\n# \\\\\\\\# * * #\n# ## !!#..@. ####\n#* @...####.....#\n#\\\\ \\@...........#\n#\\ # .\\@ # #.########\n#\\ # ..\\@ # .. #\n#\\ # .. \\@ # .. #\n#\\ # *.. \\@ ####### #\n#\\ # ### \\@ # #W #\n### # \\@ # ##L#\n#...#@@**@@**\\@ #\n#R ..........!\\##\n#################\n\nGrowth 25\n","beard1":"##########\n#** \\\\\\\\#\n#.R.. #\n# \\ ..*\\#\n#! ..*!#\n#### # #\n#\\\\... # L\n#\\\\.W... #\n#\\\\. #\n##########\n\nGrowth 15\nRazors 0\n","beard2":"##############################\n#R...........................#\n#.........................W..#\n#..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\..#\n#............................#\n#..*****.*\\...*...*...*****..#\n#..*\\....*\\....*\\*..*.\\\\*\\\\..#\n#..*\\....****..!*!......*....#\n#..*\\....*\\....*\\*..*...*....#\n#..*\\....*\\...*...*.....*....#\n#............................#\n#..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\..#\n#................ ..... .....#\n#................ W....L#\n##############################\n\nGrowth 25\nRazors 10\nFlooding 20\n","beard3":" ################\n #*****#!! 1 #\n #..\\..# #\n#########\\\\\\\\ # .\\\\\\. #\n#.............# * #\n#.. .\\\\\\#..!..#\\** #\n#.. LW\\\\#W ..##### ####\n#..R\\\\\\\\#.. ..*\\*\\*W...#\n#.......A.. ...\\.\\...\\\\#\n#.......... ** #\n############....\\.######\n #.....!#\n ########\n\nGrowth 10\nTrampoline A targets 1\n","beard4":"####################\r\n#W\\\\!#\\\\\\**.\\#W\\\\\\W#\r\n##*######..###..\\\\\\#\r\n#.......\\.R ###...\\#\r\n#####.###.#.......##\r\n#.......#.#\\####.###\r\n#\\\\##\\###\\#\\\\#...#.L\r\n#\\##\\.###.####.#.#.#\r\n#\\W#####.....###.W.#\r\n####\\\\...\\\\\\...#.#.#\r\n#W*######.######.#.#\r\n#\\\\\\\\\\\\\\\\\\.........#\r\n############\\###\\###\r\n#\\\\.. *..........\\\\#\r\n#W... #.........##W#\r\n####################\r\n","beard5":" ##########\n ####..******####\n ###.. 3ABCDEF...##\n ## ## \n ### ##\n ###.....\\\\\\...\\\\\\.....###\n #.. \\\\\\ * \\\\\\ ##\n ## * ##\n ### *** ##\n #*****************##\n ###..............##\n ###...........##\n ####WR..W####\n ##L####\n .....\n ###### ######\n ##1\\! G##2 !\\H##\n ###### ######\n\nTrampoline A targets 1\nTrampoline B targets 1\nTrampoline C targets 1\nTrampoline D targets 1\nTrampoline E targets 1\nTrampoline F targets 1\nTrampoline G targets 2\nTrampoline H targets 3\nGrowth 5\nRazors 10\n","trampoline1":"############\n#..*.R..*..#\n#..A....B..######\n#....2.. ..#\\\\\\C#\n#......* *.#\\\\\\1#\n########L########\n\nTrampoline A targets 1\nTrampoline B targets 1\nTrampoline C targets 2\nHighscore 426","trampoline2":" ######\n #....#\n #.**.#\n #.**.#\n #.**.#\n######.\\\\.######\n#**....*.......#\n#\\\\....L\\\\\\....#\n#A......*****..#\n######R.....###########\n ###.....*.....\\\\\\#\n #\\\\\\\\#..1...\\\\\\#\n #\\\\\\\\#......\\\\\\#\n ################\n\nTrampoline A targets 1\nHighscore 1742","trampoline3":"#######################################\n#****................#..1...\\\\\\\\\\\\\\B..#\n#R.......##############################\n#.. ..................................#\n#.. ........ \\ ......#\n#.. .*. ....**.*...#....... ..........#\n#.. ... ....\\\\\\\\...#.A..... ..........#\n#.. ... ....\\ .....#....... * \\\\..#\n#.. ... ....\\......#....... ..........#\n#.. ... ....\\......#....... ..........#\n#.. ... ...........#................**#\n#..\\\\\\\\\\...........#................\\\\#\n########### ############## ############\n#...*.................................#\n#....*.................. ......#\n#... .*....*.............. ..... .....#\n#....*2*........########.. ..... .....L\n#...*...*.......#\\\\\\#..... ...*.......#\n#.....\\\\\\.......#\\\\\\#....**..***......#\n#.... .......#\\\\\\#*................#\n#...............#\\\\\\#*...**...*.......#\n#...............#.....................#\n###### ############## ### #######\n#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#\n#######################################\n\nTrampoline A targets 1\nTrampoline B targets 2\nHighscore 5477\n","flood1":"###########\n#....R....#\n#.*******.#\n#.\\\\\\\\\\\\\\.#\n#. .#\n#..*\\\\\\*..#\n#.#*\\\\\\*#.#\n#########L#\n\nWater 1\nFlooding 8 \nWaterproof 5\nHighscore 945\n","flood2":"#######\n#..***#\n#..\\\\\\#\n#...**#\n#.*.*\\#\nLR....#\n#######\n\nFlooding 5\nWaterproof 3\nHighscore 281\n","flood3":"############\n#..........#\n#.....*....#\n#..\\\\\\\\\\\\..#\n#. ....#\n#..\\\\\\\\\\\\\\.#\n#..\\.. .#\n#..\\.. ....#\n#..... ..* #\n#..### ### #\n#...R#\\#\\\\.#\n######L#####\n\nWaterproof 10 \nFlooding 10\nWater 2\nHighscore 1303\n","flood4":"########################\n#.....................\\#\n#......*\\ ...........#\n#......*... ......* ...#\n#.. \\\\... .*..... ...#\n#.. ....... ....... ...#\n#.. ....... .\\\\.... ...# ######\n#. .... .....\\...# #\\\\\\\\#\n#\\\\\\......... .........# #....#\n########### R ########*#####\n #.......... ........***\\\\\\#\n #.......... ............**#\n #.......... ......... *.*\\#\n #....\\\\.... ....\\\\..... ..L\n #.....................****#\n #........\\*...............#\n #........... .........#\n #.........................#\n ###########################\n\nWater 1\nFlooding 20\nWaterproof 10\nHighscore 1592\n","flood5":"#########\n#.*..#\\.#\n#.\\..#\\.L\n#.R .##.#\n#.\\ ...#\n#..\\ ..#\n#...\\ ##\n#....\\ \\#\n#########\n\nWater 2\nFlooding 11\nWaterproof 5\nHighscore 575\n","contest1":"######\n#. *R#\n# \\.#\n#\\ * #\nL .\\#\n######\n\nHighscore 212\n","contest2":"#######\n#..***#\n#..\\\\\\#\n#...**#\n#.*.*\\#\nLR....#\n#######\n\nHighscore 281\n","contest3":"########\n#..R...#\n#..*...#\n#..#...#\n#.\\.\\..L\n####**.#\n#\\.....#\n#\\..* .#\n########\n\nHighscore 275\n","contest4":"#########\n#.*..#\\.#\n#.\\..#\\.L\n#.R .##.#\n#.\\ ...#\n#..\\ ..#\n#...\\ ##\n#....\\ \\#\n#########\n\nHighscore 575\n","contest5":"############\n#..........#\n#.....*....#\n#..\\\\\\\\\\\\..#\n#. ....#\n#..\\\\\\\\\\\\\\.#\n#..\\.. .#\n#..\\.. ....#\n#..... ..* #\n#..### ### #\n#...R#\\#\\\\.#\n######L#####\n\nHighscore 1303\n","contest6":"###############\n#\\\\\\.......** #\n#\\\\#.#####...##\n#\\\\#.....*##. #\n#\\#####\\...## #\n#\\......####* #\n#\\.######* #.\\#\n#\\.#. *...##.##\n#\\##. .. *...#\n#\\...... L#.#.#\n###########.#.#\n#\\..........#.#\n##.##########.#\n#R.#\\.........#\n###############\n\nHighscore 1177\n","contest7":" #######\n ## *#\n ##R *##\n ##\\\\\\\\##\n ##....##\n ##..\\ . ##\n ## . L . ##\n ##\\\\\\# #\\\\\\\\##\n ###### #######\n\nHighscore 869\n","contest8":"##############\n#\\\\... ......#\n###.#. ...*..#\n #.#. ... ..#\n### #. \\ ..#\n#. .#..... **#######\n#.#\\#..... ..\\\\\\*. #\n#*\\\\#.###. ####\\\\\\ #\n#\\\\.#. ...## \\ #\n#\\#.#..... ....# \\ # \n###.#..... ....# ##\n#\\\\.#..... ....#\\ # \n########.. ..###*####\n#......... .........#\n#......... ....***..#\n#..\\\\\\\\\\ # ####.....#\n#........*R..\\\\\\ .#\n##########L##########\n\nHighscore 1973\n","contest9":" #L#######\n #*** \\\\ #\n #\\\\\\ .. #\n#########.## ##########\n#.......\\ ..........* .#\n#*******\\......#....#\\\\ .#\n###\\.\\\\\\...**..#....... *#\n#*****\\\\ .\\\\..## #\\.#\n######### .... ##########\n # #\n ####*#### \n #.......#\n######### \\\\\\\\*##########\n#*\\\\ **# *..*\\ \\\\\\\\\\#\n#.\\**\\*** .....**.# \\\\##\\#\n#\\R...... .\\\\.. \\\\\\\\\\#\n##########################\n\nHighscore 3093\n","contest10":"#############################\n#..........................\\#\n#..\\\\###...#.... ###.#\n#..\\*\\\\\\.. #.... ..##\\\\..\\#.#\n#..\\*\\.... #.... ..#\\#....#.#\n#...\\###.. #.... ....#....#.#\n#... ..... ..... .####......#\n#\\\\. #.... .......#\n#... #..#. .....*\\ ##.......#\n#.#....... ...#.. ....######\n#. ...#... ...#.\\ ....#..* #\n##........ ...#.. #....#.#\\\\#\n#.....*... .....*\\#\\\\.....*.#\n#.***.* .......*\\****.....#.#\n#.\\\\\\.. ................ .#\n#.##### .###### ##### #\n#....\\\\.................... #\n#....****...#.##.....\\\\\\\\..\\#\n#....\\\\\\\\...#.........*....\\#\n#....\\\\\\\\...#.\\\\. #\\###.\\#\n#.... ..#.... ...#\\\\\\\\. #\n#........ ..#.... ...#..... #\n#........ ........#R#\n###########################L#\n\nHighscore 3634\n","ems1":"#######\n#L\\\\\\##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n## ##\n## ##\n##R ##\n## # ##\n#\\ # \\#\n## # ##\n## # ##\n## # ##\n## # ##\n#######\n\nAuthor ems_ (irc)\nHighscore 334\n","ems2":"#########\n###***###\n###***###\n###***###\n###***###\n###***###\n###***###\n# .**\\\\#\n# # #*#\\#\n# # #*#\\#\n# # #*#\\#\n# # #*#\\#\n# # #*#\\#\n# .#\\#\n### **#\n### R \\\\#\n### #L#\n### ###\n### ###\n### ###\n### ###\n### ###\n### ###\n#########\n\nAuthor ems_ (irc)\nHighscore 691\n","ems3":"################\n#\\.****####\\#*##\n#\\.\\\\\\\\.***...##\n##*####.#*###..#\n#\\.R....#...##\\#\n#\\ ####...#.#*.#\n#\\ **######.#..#\n##...\\\\\\\\\\\\...##\n#L.##########.##\n################\n\nAuthor ems_ (irc)\nHighscore 1199\n","ems3v2":"################\n#\\.****####\\#*##\n#\\.\\\\\\\\.***...##\n##*####.#*###..#\n#\\.R....#...##\\#\n#\\ ####...#.#*.#\n#\\ **######.#..#\n##...\\\\\\\\\\\\...##\n#L.#\\########.##\n################\n\nAuthor ems_ (irc)\nHighscore 1272\n","ems4":"#########\n#* L#\n#\\ #\n#\\\\ #\n##\\\\ #\n###\\\\ #\n####\\\\ #\n#####\\\\ #\n####### #\n# #*#*# #\n# * * #\n# #*#*# #\n# * * #\n# #*#*# #\n# R* * #\n# #*#*# #\n# * * #\n# #*#*# #\n# * * #\n# #*#*# #\n# * * #\n###*#*#.#\n#\\. . #\\#\n### # ###\n### # ###\n## # ##\n## # ##\n## # ##\n## # ##\n## # ##\n#########\n\nAuthor ems_ (irc)\nHighscore 908\n","ems5":"###################\n#************* ##\n##***********# * ##\n###*********##.*.##\n####*******####*###\n#####*****#####*###\n######***######*###\n#######*#######*###\n###### * ######*###\n#\\ . #*###\n#\\ \\ #*###\n#\\ ** #*###\n#\\ ## #*###\n#\\ #*###\n#\\ \\ \\ #*###\n#\\ ** ** #*###\n#\\ ## ## #*###\n#\\ #*###\n#\\ \\ \\ \\ #*###\n#R ** ** ** #*\\##\n#### ## ## ## #*###\n###L . ##\n#### ## ## ## ## #\n### # ## # # #\n### # ## # # #\n### # ## # # #\n###################\n\nAuthor ems_ (irc)\nHighscore 990\n","ems5v2":"###################\n#************* ##\n##***********# * ##\n###*********##.*.##\n####*******####*###\n#####*****#####*###\n######***######*###\n#######*#######*###\n###### * ######*###\n#\\ . #*###\n#\\ \\ #*###\n#\\ ** #*###\n#\\ ## #*###\n#\\ #*###\n#\\ \\ \\ #*###\n#\\ ** ** #*###\n#\\ ## ## #*###\n#\\ #*###\n#\\ \\ \\ \\ #*###\n#R ** ** ** #*\\##\n#### ## ## ## #*###\n#### . ##\n#### ## ## ## ## ##\n## ## # # # #\n## * L# #\\ # # *#\n## ## # \\ # ## #\n## #### # \\# \\# #\n###################\n\nAuthor ems_ (irc)\nHighscore 1238\n","ems6":"###########################\n#............R............#\n#.####.######L######.####.#\n#.####.#*#########*#.####.#\n#.####..\\#*******#\\..####.#\n#.######..\\\\\\\\\\\\\\..######.#\n#.####*######.######*####.#\n#.####\\.....#.#.....\\####.#\n#......####.#.#.####....#.#\n#####.#***#.#.#.#***#.#.#.#\n#......\\\\\\..#.#..\\\\\\..#.#.#\n#.#########*****#####.#.#.#\n#..........\\\\\\\\\\......#...#\n###########################\n\nAuthor ems_ (irc)\nWater 7\nWaterproof 42\nHighscore 1414\n","pacman":"###########################\n#............#............#\n#.####.#####.#.#####.####.#\n#\\# #.# #.#.# #.# #\\#\n#.####.#####.#.#####.####.#\n#.........................#\n#.####.#.#########.#.####.#\n#......#.....#.....#......#\n######.#####.#.#####.######\n #.# #.#\n######.# #### #### #.######\nL . # # . **\n######.# ######### #.######\n #.# #.#\n######.# ######### #.######\n#............#............#\n#.####.#####.#.#####.####.#\n#\\...#. R .#...\\#\n####.#.#.#########.#.#.####\n#......#.....#.....#......#\n#.##########.#.##########.#\n#.........................#\n###########################\n\nAuthor newsham (www.thenewsh.com/~newsham/x/pacman.map)\nHighscore 191\n","pacman2":"###########################\n#\\\\\\\\\\\\\\\\\\\\\\\\#\\\\\\\\\\\\\\\\\\\\\\\\#\n#\\####\\#####\\#\\#####\\####\\#\n#.# #\\# #\\#\\# #\\# #.#\n#\\####\\#####\\#\\#####\\####\\#\n#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#\n#\\####\\#\\#########\\#\\####\\#\n#\\\\\\\\\\\\#\\\\\\\\\\#\\\\\\\\\\#\\\\\\\\\\\\#\n######\\#####\\#\\#####\\######\n #\\# #\\#\n######\\# #### #### #\\######\nL \\ # # \\ **\n######\\# ######### #\\######\n #\\# #\\#\n######\\# ######### #\\######\n#\\\\\\\\\\\\\\\\\\\\\\\\#\\\\\\\\\\\\\\\\\\\\\\\\#\n#\\####\\#####\\#\\#####\\####\\#\n#.\\\\\\#\\ R \\#\\\\\\.#\n####\\#\\#\\#########\\#\\#\\####\n#\\\\\\\\\\\\#\\\\\\\\\\#\\\\\\\\\\#\\\\\\\\\\\\#\n#\\##########\\#\\##########\\#\n#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#\n###########################\n\nHighscore 15039\n","bhickey1":"################################ ##\n#******#******#******#**********L #\n##*****##*****##*****##********* #\n#*#****#*#****#*#****#*#*******## #\n# *#***# *#***# *#***# *#*****# # #\n# *#**# *#**# *#**# *#***# # #\n# *#*# *#*# *#*# *#*# # #\n# *A* *B* *C* *D* # #\n# \\ \\ \\ \\ # #\n# * * * * # #\n#*******************************# #\n#R..............................# #\n#\\ # #\n#1 # #\n# # #\n################################# #\n# WE #\n###################################\n\nGrowth 1\nTrampoline A targets 1\nTrampoline B targets 1\nTrampoline C targets 1\nTrampoline D targets 1\nTrampoline E targets 1\nAuthor bhickey (https://gist.github.com/3115673)","bhickey2":"###L######################\n#W#R #*****#!#\\\\\\\\\\\\\\\\\\##\n#*# ..\\.. #\\\\\\\\\\\\\\*\\##\n#*#A 2####### ########.###\n#*# #*****# #*****#B 3##\n#*# ..\\.. ..\\.. ##\n#**E 5 ############## ##\n#***.##C 1\\ D# ####\n#***. #****###****# ***##\n#*** #G...\\4 ...H# ..\\ #\n#\\## ################# ##\n#\\\\# #*****#F 6##*** ##\n#\\\\# ..\\.. ... ##\n####################### ##\n##########################\n\nWater 0\nFlooding 20\nWaterproof 18\nTrampoline A targets 1\nTrampoline B targets 1\nTrampoline C targets 2\nTrampoline D targets 3\nTrampoline E targets 4\nTrampoline F targets 4\nTrampoline G targets 5\nTrampoline H targets 6\nAuthor bhickey (https://gist.github.com/3114986)"}; if (typeof exports !== "undefined") {exports.maps = mineMaps;} diff --git a/js/maps.min.js b/js/maps.min.js index 5ac9f46..7072949 100644 --- a/js/maps.min.js +++ b/js/maps.min.js @@ -1 +1 @@ -var mineMaps={beard1:"##########\n#** \\\\\\\\#\n#.R.. #\n# \\ ..*\\#\n#! ..*!#\n#### # #\n#\\\\... # L\n#\\\\.W... #\n#\\\\. #\n##########\n\nGrowth 15\nRazors 0\n",beard2:"##############################\n#R...........................#\n#.........................W..#\n#..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\..#\n#............................#\n#..*****.*\\...*...*...*****..#\n#..*\\....*\\....*\\*..*.\\\\*\\\\..#\n#..*\\....****..!*!......*....#\n#..*\\....*\\....*\\*..*...*....#\n#..*\\....*\\...*...*.....*....#\n#............................#\n#..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\..#\n#................ ..... .....#\n#................ W....L#\n##############################\n\nGrowth 25\nRazors 10\nFlooding 20\n",beard3:" ################\n #*****#!! 1 #\n #..\\..# #\n#########\\\\\\\\ # .\\\\\\. #\n#.............# * #\n#.. .\\\\\\#..!..#\\** #\n#.. LW\\\\#W ..##### ####\n#..R\\\\\\\\#.. ..*\\*\\*W...#\n#.......A.. ...\\.\\...\\\\#\n#.......... ** #\n############....\\.######\n #.....!#\n ########\n\nGrowth 10\nTrampoline A targets 1\n",beard4:"####################\r\n#W\\\\!#\\\\\\**.\\#W\\\\\\W#\r\n##*######..###..\\\\\\#\r\n#.......\\.R ###...\\#\r\n#####.###.#.......##\r\n#.......#.#\\####.###\r\n#\\\\##\\###\\#\\\\#...#.L\r\n#\\##\\.###.####.#.#.#\r\n#\\W#####.....###.W.#\r\n####\\\\...\\\\\\...#.#.#\r\n#W*######.######.#.#\r\n#\\\\\\\\\\\\\\\\\\.........#\r\n############\\###\\###\r\n#\\\\.. *..........\\\\#\r\n#W... #.........##W#\r\n####################\r\n",trampoline1:"############\n#..*.R..*..#\n#..A....B..######\n#....2.. ..#\\\\\\C#\n#......* *.#\\\\\\1#\n########L########\n\nTrampoline A targets 1\nTrampoline B targets 1\nTrampoline C targets 2\nHighscore 426",trampoline2:" ######\n #....#\n #.**.#\n #.**.#\n #.**.#\n######.\\\\.######\n#**....*.......#\n#\\\\....L\\\\\\....#\n#A......*****..#\n######R.....###########\n ###.....*.....\\\\\\#\n #\\\\\\\\#..1...\\\\\\#\n #\\\\\\\\#......\\\\\\#\n ################\n\nTrampoline A targets 1\nHighscore 1742",trampoline3:"#######################################\n#****................#..1...\\\\\\\\\\\\\\B..#\n#R.......##############################\n#.. ..................................#\n#.. ........ \\ ......#\n#.. .*. ....**.*...#....... ..........#\n#.. ... ....\\\\\\\\...#.A..... ..........#\n#.. ... ....\\ .....#....... * \\\\..#\n#.. ... ....\\......#....... ..........#\n#.. ... ....\\......#....... ..........#\n#.. ... ...........#................**#\n#..\\\\\\\\\\...........#................\\\\#\n########### ############## ############\n#...*.................................#\n#....*.................. ......#\n#... .*....*.............. ..... .....#\n#....*2*........########.. ..... .....L\n#...*...*.......#\\\\\\#..... ...*.......#\n#.....\\\\\\.......#\\\\\\#....**..***......#\n#.... .......#\\\\\\#*................#\n#...............#\\\\\\#*...**...*.......#\n#...............#.....................#\n###### ############## ### #######\n#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#\n#######################################\n\nTrampoline A targets 1\nTrampoline B targets 2\nHighscore 5477\n",flood1:"###########\n#....R....#\n#.*******.#\n#.\\\\\\\\\\\\\\.#\n#. .#\n#..*\\\\\\*..#\n#.#*\\\\\\*#.#\n#########L#\n\nWater 1\nFlooding 8 \nWaterproof 5\nHighscore 945\n",flood2:"#######\n#..***#\n#..\\\\\\#\n#...**#\n#.*.*\\#\nLR....#\n#######\n\nFlooding 5\nWaterproof 3\nHighscore 281\n",flood3:"############\n#..........#\n#.....*....#\n#..\\\\\\\\\\\\..#\n#. ....#\n#..\\\\\\\\\\\\\\.#\n#..\\.. .#\n#..\\.. ....#\n#..... ..* #\n#..### ### #\n#...R#\\#\\\\.#\n######L#####\n\nWaterproof 10 \nFlooding 10\nWater 2\nHighscore 1303\n",flood4:"########################\n#.....................\\#\n#......*\\ ...........#\n#......*... ......* ...#\n#.. \\\\... .*..... ...#\n#.. ....... ....... ...#\n#.. ....... .\\\\.... ...# ######\n#. .... .....\\...# #\\\\\\\\#\n#\\\\\\......... .........# #....#\n########### R ########*#####\n #.......... ........***\\\\\\#\n #.......... ............**#\n #.......... ......... *.*\\#\n #....\\\\.... ....\\\\..... ..L\n #.....................****#\n #........\\*...............#\n #........... .........#\n #.........................#\n ###########################\n\nWater 1\nFlooding 20\nWaterproof 10\nHighscore 1592\n",flood5:"#########\n#.*..#\\.#\n#.\\..#\\.L\n#.R .##.#\n#.\\ ...#\n#..\\ ..#\n#...\\ ##\n#....\\ \\#\n#########\n\nWater 2\nFlooding 11\nWaterproof 5\nHighscore 575\n",contest1:"######\n#. *R#\n# \\.#\n#\\ * #\nL .\\#\n######\n\nHighscore 212\n",contest2:"#######\n#..***#\n#..\\\\\\#\n#...**#\n#.*.*\\#\nLR....#\n#######\n\nHighscore 281\n",contest3:"########\n#..R...#\n#..*...#\n#..#...#\n#.\\.\\..L\n####**.#\n#\\.....#\n#\\..* .#\n########\n\nHighscore 275\n",contest4:"#########\n#.*..#\\.#\n#.\\..#\\.L\n#.R .##.#\n#.\\ ...#\n#..\\ ..#\n#...\\ ##\n#....\\ \\#\n#########\n\nHighscore 575\n",contest5:"############\n#..........#\n#.....*....#\n#..\\\\\\\\\\\\..#\n#. ....#\n#..\\\\\\\\\\\\\\.#\n#..\\.. .#\n#..\\.. ....#\n#..... ..* #\n#..### ### #\n#...R#\\#\\\\.#\n######L#####\n\nHighscore 1303\n",contest6:"###############\n#\\\\\\.......** #\n#\\\\#.#####...##\n#\\\\#.....*##. #\n#\\#####\\...## #\n#\\......####* #\n#\\.######* #.\\#\n#\\.#. *...##.##\n#\\##. .. *...#\n#\\...... L#.#.#\n###########.#.#\n#\\..........#.#\n##.##########.#\n#R.#\\.........#\n###############\n\nHighscore 1177\n",contest7:" #######\n ## *#\n ##R *##\n ##\\\\\\\\##\n ##....##\n ##..\\ . ##\n ## . L . ##\n ##\\\\\\# #\\\\\\\\##\n ###### #######\n\nHighscore 869\n",contest8:"##############\n#\\\\... ......#\n###.#. ...*..#\n #.#. ... ..#\n### #. \\ ..#\n#. .#..... **#######\n#.#\\#..... ..\\\\\\*. #\n#*\\\\#.###. ####\\\\\\ #\n#\\\\.#. ...## \\ #\n#\\#.#..... ....# \\ # \n###.#..... ....# ##\n#\\\\.#..... ....#\\ # \n########.. ..###*####\n#......... .........#\n#......... ....***..#\n#..\\\\\\\\\\ # ####.....#\n#........*R..\\\\\\ .#\n##########L##########\n\nHighscore 1973\n",contest9:" #L#######\n #*** \\\\ #\n #\\\\\\ .. #\n#########.## ##########\n#.......\\ ..........* .#\n#*******\\......#....#\\\\ .#\n###\\.\\\\\\...**..#....... *#\n#*****\\\\ .\\\\..## #\\.#\n######### .... ##########\n # #\n ####*#### \n #.......#\n######### \\\\\\\\*##########\n#*\\\\ **# *..*\\ \\\\\\\\\\#\n#.\\**\\*** .....**.# \\\\##\\#\n#\\R...... .\\\\.. \\\\\\\\\\#\n##########################\n\nHighscore 3093\n",contest10:"#############################\n#..........................\\#\n#..\\\\###...#.... ###.#\n#..\\*\\\\\\.. #.... ..##\\\\..\\#.#\n#..\\*\\.... #.... ..#\\#....#.#\n#...\\###.. #.... ....#....#.#\n#... ..... ..... .####......#\n#\\\\. #.... .......#\n#... #..#. .....*\\ ##.......#\n#.#....... ...#.. ....######\n#. ...#... ...#.\\ ....#..* #\n##........ ...#.. #....#.#\\\\#\n#.....*... .....*\\#\\\\.....*.#\n#.***.* .......*\\****.....#.#\n#.\\\\\\.. ................ .#\n#.##### .###### ##### #\n#....\\\\.................... #\n#....****...#.##.....\\\\\\\\..\\#\n#....\\\\\\\\...#.........*....\\#\n#....\\\\\\\\...#.\\\\. #\\###.\\#\n#.... ..#.... ...#\\\\\\\\. #\n#........ ..#.... ...#..... #\n#........ ........#R#\n###########################L#\n\nHighscore 3634\n",ems1:"#######\n#L\\\\\\##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n## ##\n## ##\n##R ##\n## # ##\n#\\ # \\#\n## # ##\n## # ##\n## # ##\n## # ##\n#######\n\nAuthor ems_ (irc)\nHighscore 334\n",ems2:"#########\n###***###\n###***###\n###***###\n###***###\n###***###\n###***###\n# .**\\\\#\n# # #*#\\#\n# # #*#\\#\n# # #*#\\#\n# # #*#\\#\n# # #*#\\#\n# .#\\#\n### **#\n### R \\\\#\n### #L#\n### ###\n### ###\n### ###\n### ###\n### ###\n### ###\n#########\n\nAuthor ems_ (irc)\nHighscore 691\n",ems3:"################\n#\\.****####\\#*##\n#\\.\\\\\\\\.***...##\n##*####.#*###..#\n#\\.R....#...##\\#\n#\\ ####...#.#*.#\n#\\ **######.#..#\n##...\\\\\\\\\\\\...##\n#L.##########.##\n################\n\nAuthor ems_ (irc)\nHighscore 1199\n",ems3v2:"################\n#\\.****####\\#*##\n#\\.\\\\\\\\.***...##\n##*####.#*###..#\n#\\.R....#...##\\#\n#\\ ####...#.#*.#\n#\\ **######.#..#\n##...\\\\\\\\\\\\...##\n#L.#\\########.##\n################\n\nAuthor ems_ (irc)\nHighscore 1272\n",ems4:"#########\n#* L#\n#\\ #\n#\\\\ #\n##\\\\ #\n###\\\\ #\n####\\\\ #\n#####\\\\ #\n####### #\n# #*#*# #\n# * * #\n# #*#*# #\n# * * #\n# #*#*# #\n# R* * #\n# #*#*# #\n# * * #\n# #*#*# #\n# * * #\n# #*#*# #\n# * * #\n###*#*#.#\n#\\. . #\\#\n### # ###\n### # ###\n## # ##\n## # ##\n## # ##\n## # ##\n## # ##\n#########\n\nAuthor ems_ (irc)\nHighscore 908\n",ems5:"###################\n#************* ##\n##***********# * ##\n###*********##.*.##\n####*******####*###\n#####*****#####*###\n######***######*###\n#######*#######*###\n###### * ######*###\n#\\ . #*###\n#\\ \\ #*###\n#\\ ** #*###\n#\\ ## #*###\n#\\ #*###\n#\\ \\ \\ #*###\n#\\ ** ** #*###\n#\\ ## ## #*###\n#\\ #*###\n#\\ \\ \\ \\ #*###\n#R ** ** ** #*\\##\n#### ## ## ## #*###\n###L . ##\n#### ## ## ## ## #\n### # ## # # #\n### # ## # # #\n### # ## # # #\n###################\n\nAuthor ems_ (irc)\nHighscore 990\n",ems5v2:"###################\n#************* ##\n##***********# * ##\n###*********##.*.##\n####*******####*###\n#####*****#####*###\n######***######*###\n#######*#######*###\n###### * ######*###\n#\\ . #*###\n#\\ \\ #*###\n#\\ ** #*###\n#\\ ## #*###\n#\\ #*###\n#\\ \\ \\ #*###\n#\\ ** ** #*###\n#\\ ## ## #*###\n#\\ #*###\n#\\ \\ \\ \\ #*###\n#R ** ** ** #*\\##\n#### ## ## ## #*###\n#### . ##\n#### ## ## ## ## ##\n## ## # # # #\n## * L# #\\ # # *#\n## ## # \\ # ## #\n## #### # \\# \\# #\n###################\n\nAuthor ems_ (irc)\nHighscore 1238\n",ems6:"###########################\n#............R............#\n#.####.######L######.####.#\n#.####.#*#########*#.####.#\n#.####..\\#*******#\\..####.#\n#.######..\\\\\\\\\\\\\\..######.#\n#.####*######.######*####.#\n#.####\\.....#.#.....\\####.#\n#......####.#.#.####....#.#\n#####.#***#.#.#.#***#.#.#.#\n#......\\\\\\..#.#..\\\\\\..#.#.#\n#.#########*****#####.#.#.#\n#..........\\\\\\\\\\......#...#\n###########################\n\nAuthor ems_ (irc)\nWater 7\nWaterproof 42\nHighscore 1414\n",pacman:"###########################\n#............#............#\n#.####.#####.#.#####.####.#\n#\\# #.# #.#.# #.# #\\#\n#.####.#####.#.#####.####.#\n#.........................#\n#.####.#.#########.#.####.#\n#......#.....#.....#......#\n######.#####.#.#####.######\n #.# #.#\n######.# #### #### #.######\nL . # # . **\n######.# ######### #.######\n #.# #.#\n######.# ######### #.######\n#............#............#\n#.####.#####.#.#####.####.#\n#\\...#. R .#...\\#\n####.#.#.#########.#.#.####\n#......#.....#.....#......#\n#.##########.#.##########.#\n#.........................#\n###########################\n\nAuthor newsham (www.thenewsh.com/~newsham/x/pacman.map)\nHighscore 191\n",pacman2:"###########################\n#\\\\\\\\\\\\\\\\\\\\\\\\#\\\\\\\\\\\\\\\\\\\\\\\\#\n#\\####\\#####\\#\\#####\\####\\#\n#.# #\\# #\\#\\# #\\# #.#\n#\\####\\#####\\#\\#####\\####\\#\n#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#\n#\\####\\#\\#########\\#\\####\\#\n#\\\\\\\\\\\\#\\\\\\\\\\#\\\\\\\\\\#\\\\\\\\\\\\#\n######\\#####\\#\\#####\\######\n #\\# #\\#\n######\\# #### #### #\\######\nL \\ # # \\ **\n######\\# ######### #\\######\n #\\# #\\#\n######\\# ######### #\\######\n#\\\\\\\\\\\\\\\\\\\\\\\\#\\\\\\\\\\\\\\\\\\\\\\\\#\n#\\####\\#####\\#\\#####\\####\\#\n#.\\\\\\#\\ R \\#\\\\\\.#\n####\\#\\#\\#########\\#\\#\\####\n#\\\\\\\\\\\\#\\\\\\\\\\#\\\\\\\\\\#\\\\\\\\\\\\#\n#\\##########\\#\\##########\\#\n#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#\n###########################\n\nHighscore 15039\n",bhickey1:"################################ ##\n#******#******#******#**********L #\n##*****##*****##*****##********* #\n#*#****#*#****#*#****#*#*******## #\n# *#***# *#***# *#***# *#*****# # #\n# *#**# *#**# *#**# *#***# # #\n# *#*# *#*# *#*# *#*# # #\n# *A* *B* *C* *D* # #\n# \\ \\ \\ \\ # #\n# * * * * # #\n#*******************************# #\n#R..............................# #\n#\\ # #\n#1 # #\n# # #\n################################# #\n# WE #\n###################################\n\nGrowth 1\nTrampoline A targets 1\nTrampoline B targets 1\nTrampoline C targets 1\nTrampoline D targets 1\nTrampoline E targets 1\nAuthor bhickey (https://gist.github.com/3115673)",bhickey2:"###L######################\n#W#R #*****#!#\\\\\\\\\\\\\\\\\\##\n#*# ..\\.. #\\\\\\\\\\\\\\*\\##\n#*#A 2####### ########.###\n#*# #*****# #*****#B 3##\n#*# ..\\.. ..\\.. ##\n#**E 5 ############## ##\n#***.##C 1\\ D# ####\n#***. #****###****# ***##\n#*** #G...\\4 ...H# ..\\ #\n#\\## ################# ##\n#\\\\# #*****#F 6##*** ##\n#\\\\# ..\\.. ... ##\n####################### ##\n##########################\n\nWater 0\nFlooding 20\nWaterproof 18\nTrampoline A targets 1\nTrampoline B targets 1\nTrampoline C targets 2\nTrampoline D targets 3\nTrampoline E targets 4\nTrampoline F targets 4\nTrampoline G targets 5\nTrampoline H targets 6\nAuthor bhickey (https://gist.github.com/3114986)"};if(typeof exports!=="undefined"){exports.maps=mineMaps}; \ No newline at end of file +var mineMaps={horock1:"#####L######\n#....R....A#\n#..........#\n#\\. #@\\ ..#\n#\\...#* ###\n#\\.........#\n#\\..*.@....#\n####@@. ..#\n#....#.. ###\n#....#..**.#\n#.1..# .\\\\#\n############\n\nTrampoline A targets 1\n",horock2:"#################\n#A .@@@@@@#\n# .. #*...*1#\n# .##########*##\n# ..@ \\\\\\\\#* #\n# ..# #####*.#\n# .##### * #\n#LR ....... . #\n#################\n\nTrampoline A targets 1\nFlooding 10\nWater 0\n",horock3:"#################\n# \\\\\\\\# * * #\n# ## !!#..@. ####\n#* @...####.....#\n#\\\\ \\@...........#\n#\\ # .\\@ # #.########\n#\\ # ..\\@ # .. #\n#\\ # .. \\@ # .. #\n#\\ # *.. \\@ ####### #\n#\\ # ### \\@ # #W #\n### # \\@ # ##L#\n#...#@@**@@**\\@ #\n#R ..........!\\##\n#################\n\nGrowth 25\n",beard1:"##########\n#** \\\\\\\\#\n#.R.. #\n# \\ ..*\\#\n#! ..*!#\n#### # #\n#\\\\... # L\n#\\\\.W... #\n#\\\\. #\n##########\n\nGrowth 15\nRazors 0\n",beard2:"##############################\n#R...........................#\n#.........................W..#\n#..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\..#\n#............................#\n#..*****.*\\...*...*...*****..#\n#..*\\....*\\....*\\*..*.\\\\*\\\\..#\n#..*\\....****..!*!......*....#\n#..*\\....*\\....*\\*..*...*....#\n#..*\\....*\\...*...*.....*....#\n#............................#\n#..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\..#\n#................ ..... .....#\n#................ W....L#\n##############################\n\nGrowth 25\nRazors 10\nFlooding 20\n",beard3:" ################\n #*****#!! 1 #\n #..\\..# #\n#########\\\\\\\\ # .\\\\\\. #\n#.............# * #\n#.. .\\\\\\#..!..#\\** #\n#.. LW\\\\#W ..##### ####\n#..R\\\\\\\\#.. ..*\\*\\*W...#\n#.......A.. ...\\.\\...\\\\#\n#.......... ** #\n############....\\.######\n #.....!#\n ########\n\nGrowth 10\nTrampoline A targets 1\n",beard4:"####################\r\n#W\\\\!#\\\\\\**.\\#W\\\\\\W#\r\n##*######..###..\\\\\\#\r\n#.......\\.R ###...\\#\r\n#####.###.#.......##\r\n#.......#.#\\####.###\r\n#\\\\##\\###\\#\\\\#...#.L\r\n#\\##\\.###.####.#.#.#\r\n#\\W#####.....###.W.#\r\n####\\\\...\\\\\\...#.#.#\r\n#W*######.######.#.#\r\n#\\\\\\\\\\\\\\\\\\.........#\r\n############\\###\\###\r\n#\\\\.. *..........\\\\#\r\n#W... #.........##W#\r\n####################\r\n",beard5:" ##########\n ####..******####\n ###.. 3ABCDEF...##\n ## ## \n ### ##\n ###.....\\\\\\...\\\\\\.....###\n #.. \\\\\\ * \\\\\\ ##\n ## * ##\n ### *** ##\n #*****************##\n ###..............##\n ###...........##\n ####WR..W####\n ##L####\n .....\n ###### ######\n ##1\\! G##2 !\\H##\n ###### ######\n\nTrampoline A targets 1\nTrampoline B targets 1\nTrampoline C targets 1\nTrampoline D targets 1\nTrampoline E targets 1\nTrampoline F targets 1\nTrampoline G targets 2\nTrampoline H targets 3\nGrowth 5\nRazors 10\n",trampoline1:"############\n#..*.R..*..#\n#..A....B..######\n#....2.. ..#\\\\\\C#\n#......* *.#\\\\\\1#\n########L########\n\nTrampoline A targets 1\nTrampoline B targets 1\nTrampoline C targets 2\nHighscore 426",trampoline2:" ######\n #....#\n #.**.#\n #.**.#\n #.**.#\n######.\\\\.######\n#**....*.......#\n#\\\\....L\\\\\\....#\n#A......*****..#\n######R.....###########\n ###.....*.....\\\\\\#\n #\\\\\\\\#..1...\\\\\\#\n #\\\\\\\\#......\\\\\\#\n ################\n\nTrampoline A targets 1\nHighscore 1742",trampoline3:"#######################################\n#****................#..1...\\\\\\\\\\\\\\B..#\n#R.......##############################\n#.. ..................................#\n#.. ........ \\ ......#\n#.. .*. ....**.*...#....... ..........#\n#.. ... ....\\\\\\\\...#.A..... ..........#\n#.. ... ....\\ .....#....... * \\\\..#\n#.. ... ....\\......#....... ..........#\n#.. ... ....\\......#....... ..........#\n#.. ... ...........#................**#\n#..\\\\\\\\\\...........#................\\\\#\n########### ############## ############\n#...*.................................#\n#....*.................. ......#\n#... .*....*.............. ..... .....#\n#....*2*........########.. ..... .....L\n#...*...*.......#\\\\\\#..... ...*.......#\n#.....\\\\\\.......#\\\\\\#....**..***......#\n#.... .......#\\\\\\#*................#\n#...............#\\\\\\#*...**...*.......#\n#...............#.....................#\n###### ############## ### #######\n#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#\n#######################################\n\nTrampoline A targets 1\nTrampoline B targets 2\nHighscore 5477\n",flood1:"###########\n#....R....#\n#.*******.#\n#.\\\\\\\\\\\\\\.#\n#. .#\n#..*\\\\\\*..#\n#.#*\\\\\\*#.#\n#########L#\n\nWater 1\nFlooding 8 \nWaterproof 5\nHighscore 945\n",flood2:"#######\n#..***#\n#..\\\\\\#\n#...**#\n#.*.*\\#\nLR....#\n#######\n\nFlooding 5\nWaterproof 3\nHighscore 281\n",flood3:"############\n#..........#\n#.....*....#\n#..\\\\\\\\\\\\..#\n#. ....#\n#..\\\\\\\\\\\\\\.#\n#..\\.. .#\n#..\\.. ....#\n#..... ..* #\n#..### ### #\n#...R#\\#\\\\.#\n######L#####\n\nWaterproof 10 \nFlooding 10\nWater 2\nHighscore 1303\n",flood4:"########################\n#.....................\\#\n#......*\\ ...........#\n#......*... ......* ...#\n#.. \\\\... .*..... ...#\n#.. ....... ....... ...#\n#.. ....... .\\\\.... ...# ######\n#. .... .....\\...# #\\\\\\\\#\n#\\\\\\......... .........# #....#\n########### R ########*#####\n #.......... ........***\\\\\\#\n #.......... ............**#\n #.......... ......... *.*\\#\n #....\\\\.... ....\\\\..... ..L\n #.....................****#\n #........\\*...............#\n #........... .........#\n #.........................#\n ###########################\n\nWater 1\nFlooding 20\nWaterproof 10\nHighscore 1592\n",flood5:"#########\n#.*..#\\.#\n#.\\..#\\.L\n#.R .##.#\n#.\\ ...#\n#..\\ ..#\n#...\\ ##\n#....\\ \\#\n#########\n\nWater 2\nFlooding 11\nWaterproof 5\nHighscore 575\n",contest1:"######\n#. *R#\n# \\.#\n#\\ * #\nL .\\#\n######\n\nHighscore 212\n",contest2:"#######\n#..***#\n#..\\\\\\#\n#...**#\n#.*.*\\#\nLR....#\n#######\n\nHighscore 281\n",contest3:"########\n#..R...#\n#..*...#\n#..#...#\n#.\\.\\..L\n####**.#\n#\\.....#\n#\\..* .#\n########\n\nHighscore 275\n",contest4:"#########\n#.*..#\\.#\n#.\\..#\\.L\n#.R .##.#\n#.\\ ...#\n#..\\ ..#\n#...\\ ##\n#....\\ \\#\n#########\n\nHighscore 575\n",contest5:"############\n#..........#\n#.....*....#\n#..\\\\\\\\\\\\..#\n#. ....#\n#..\\\\\\\\\\\\\\.#\n#..\\.. .#\n#..\\.. ....#\n#..... ..* #\n#..### ### #\n#...R#\\#\\\\.#\n######L#####\n\nHighscore 1303\n",contest6:"###############\n#\\\\\\.......** #\n#\\\\#.#####...##\n#\\\\#.....*##. #\n#\\#####\\...## #\n#\\......####* #\n#\\.######* #.\\#\n#\\.#. *...##.##\n#\\##. .. *...#\n#\\...... L#.#.#\n###########.#.#\n#\\..........#.#\n##.##########.#\n#R.#\\.........#\n###############\n\nHighscore 1177\n",contest7:" #######\n ## *#\n ##R *##\n ##\\\\\\\\##\n ##....##\n ##..\\ . ##\n ## . L . ##\n ##\\\\\\# #\\\\\\\\##\n ###### #######\n\nHighscore 869\n",contest8:"##############\n#\\\\... ......#\n###.#. ...*..#\n #.#. ... ..#\n### #. \\ ..#\n#. .#..... **#######\n#.#\\#..... ..\\\\\\*. #\n#*\\\\#.###. ####\\\\\\ #\n#\\\\.#. ...## \\ #\n#\\#.#..... ....# \\ # \n###.#..... ....# ##\n#\\\\.#..... ....#\\ # \n########.. ..###*####\n#......... .........#\n#......... ....***..#\n#..\\\\\\\\\\ # ####.....#\n#........*R..\\\\\\ .#\n##########L##########\n\nHighscore 1973\n",contest9:" #L#######\n #*** \\\\ #\n #\\\\\\ .. #\n#########.## ##########\n#.......\\ ..........* .#\n#*******\\......#....#\\\\ .#\n###\\.\\\\\\...**..#....... *#\n#*****\\\\ .\\\\..## #\\.#\n######### .... ##########\n # #\n ####*#### \n #.......#\n######### \\\\\\\\*##########\n#*\\\\ **# *..*\\ \\\\\\\\\\#\n#.\\**\\*** .....**.# \\\\##\\#\n#\\R...... .\\\\.. \\\\\\\\\\#\n##########################\n\nHighscore 3093\n",contest10:"#############################\n#..........................\\#\n#..\\\\###...#.... ###.#\n#..\\*\\\\\\.. #.... ..##\\\\..\\#.#\n#..\\*\\.... #.... ..#\\#....#.#\n#...\\###.. #.... ....#....#.#\n#... ..... ..... .####......#\n#\\\\. #.... .......#\n#... #..#. .....*\\ ##.......#\n#.#....... ...#.. ....######\n#. ...#... ...#.\\ ....#..* #\n##........ ...#.. #....#.#\\\\#\n#.....*... .....*\\#\\\\.....*.#\n#.***.* .......*\\****.....#.#\n#.\\\\\\.. ................ .#\n#.##### .###### ##### #\n#....\\\\.................... #\n#....****...#.##.....\\\\\\\\..\\#\n#....\\\\\\\\...#.........*....\\#\n#....\\\\\\\\...#.\\\\. #\\###.\\#\n#.... ..#.... ...#\\\\\\\\. #\n#........ ..#.... ...#..... #\n#........ ........#R#\n###########################L#\n\nHighscore 3634\n",ems1:"#######\n#L\\\\\\##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n##* ##\n## ##\n## ##\n##R ##\n## # ##\n#\\ # \\#\n## # ##\n## # ##\n## # ##\n## # ##\n#######\n\nAuthor ems_ (irc)\nHighscore 334\n",ems2:"#########\n###***###\n###***###\n###***###\n###***###\n###***###\n###***###\n# .**\\\\#\n# # #*#\\#\n# # #*#\\#\n# # #*#\\#\n# # #*#\\#\n# # #*#\\#\n# .#\\#\n### **#\n### R \\\\#\n### #L#\n### ###\n### ###\n### ###\n### ###\n### ###\n### ###\n#########\n\nAuthor ems_ (irc)\nHighscore 691\n",ems3:"################\n#\\.****####\\#*##\n#\\.\\\\\\\\.***...##\n##*####.#*###..#\n#\\.R....#...##\\#\n#\\ ####...#.#*.#\n#\\ **######.#..#\n##...\\\\\\\\\\\\...##\n#L.##########.##\n################\n\nAuthor ems_ (irc)\nHighscore 1199\n",ems3v2:"################\n#\\.****####\\#*##\n#\\.\\\\\\\\.***...##\n##*####.#*###..#\n#\\.R....#...##\\#\n#\\ ####...#.#*.#\n#\\ **######.#..#\n##...\\\\\\\\\\\\...##\n#L.#\\########.##\n################\n\nAuthor ems_ (irc)\nHighscore 1272\n",ems4:"#########\n#* L#\n#\\ #\n#\\\\ #\n##\\\\ #\n###\\\\ #\n####\\\\ #\n#####\\\\ #\n####### #\n# #*#*# #\n# * * #\n# #*#*# #\n# * * #\n# #*#*# #\n# R* * #\n# #*#*# #\n# * * #\n# #*#*# #\n# * * #\n# #*#*# #\n# * * #\n###*#*#.#\n#\\. . #\\#\n### # ###\n### # ###\n## # ##\n## # ##\n## # ##\n## # ##\n## # ##\n#########\n\nAuthor ems_ (irc)\nHighscore 908\n",ems5:"###################\n#************* ##\n##***********# * ##\n###*********##.*.##\n####*******####*###\n#####*****#####*###\n######***######*###\n#######*#######*###\n###### * ######*###\n#\\ . #*###\n#\\ \\ #*###\n#\\ ** #*###\n#\\ ## #*###\n#\\ #*###\n#\\ \\ \\ #*###\n#\\ ** ** #*###\n#\\ ## ## #*###\n#\\ #*###\n#\\ \\ \\ \\ #*###\n#R ** ** ** #*\\##\n#### ## ## ## #*###\n###L . ##\n#### ## ## ## ## #\n### # ## # # #\n### # ## # # #\n### # ## # # #\n###################\n\nAuthor ems_ (irc)\nHighscore 990\n",ems5v2:"###################\n#************* ##\n##***********# * ##\n###*********##.*.##\n####*******####*###\n#####*****#####*###\n######***######*###\n#######*#######*###\n###### * ######*###\n#\\ . #*###\n#\\ \\ #*###\n#\\ ** #*###\n#\\ ## #*###\n#\\ #*###\n#\\ \\ \\ #*###\n#\\ ** ** #*###\n#\\ ## ## #*###\n#\\ #*###\n#\\ \\ \\ \\ #*###\n#R ** ** ** #*\\##\n#### ## ## ## #*###\n#### . ##\n#### ## ## ## ## ##\n## ## # # # #\n## * L# #\\ # # *#\n## ## # \\ # ## #\n## #### # \\# \\# #\n###################\n\nAuthor ems_ (irc)\nHighscore 1238\n",ems6:"###########################\n#............R............#\n#.####.######L######.####.#\n#.####.#*#########*#.####.#\n#.####..\\#*******#\\..####.#\n#.######..\\\\\\\\\\\\\\..######.#\n#.####*######.######*####.#\n#.####\\.....#.#.....\\####.#\n#......####.#.#.####....#.#\n#####.#***#.#.#.#***#.#.#.#\n#......\\\\\\..#.#..\\\\\\..#.#.#\n#.#########*****#####.#.#.#\n#..........\\\\\\\\\\......#...#\n###########################\n\nAuthor ems_ (irc)\nWater 7\nWaterproof 42\nHighscore 1414\n",pacman:"###########################\n#............#............#\n#.####.#####.#.#####.####.#\n#\\# #.# #.#.# #.# #\\#\n#.####.#####.#.#####.####.#\n#.........................#\n#.####.#.#########.#.####.#\n#......#.....#.....#......#\n######.#####.#.#####.######\n #.# #.#\n######.# #### #### #.######\nL . # # . **\n######.# ######### #.######\n #.# #.#\n######.# ######### #.######\n#............#............#\n#.####.#####.#.#####.####.#\n#\\...#. R .#...\\#\n####.#.#.#########.#.#.####\n#......#.....#.....#......#\n#.##########.#.##########.#\n#.........................#\n###########################\n\nAuthor newsham (www.thenewsh.com/~newsham/x/pacman.map)\nHighscore 191\n",pacman2:"###########################\n#\\\\\\\\\\\\\\\\\\\\\\\\#\\\\\\\\\\\\\\\\\\\\\\\\#\n#\\####\\#####\\#\\#####\\####\\#\n#.# #\\# #\\#\\# #\\# #.#\n#\\####\\#####\\#\\#####\\####\\#\n#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#\n#\\####\\#\\#########\\#\\####\\#\n#\\\\\\\\\\\\#\\\\\\\\\\#\\\\\\\\\\#\\\\\\\\\\\\#\n######\\#####\\#\\#####\\######\n #\\# #\\#\n######\\# #### #### #\\######\nL \\ # # \\ **\n######\\# ######### #\\######\n #\\# #\\#\n######\\# ######### #\\######\n#\\\\\\\\\\\\\\\\\\\\\\\\#\\\\\\\\\\\\\\\\\\\\\\\\#\n#\\####\\#####\\#\\#####\\####\\#\n#.\\\\\\#\\ R \\#\\\\\\.#\n####\\#\\#\\#########\\#\\#\\####\n#\\\\\\\\\\\\#\\\\\\\\\\#\\\\\\\\\\#\\\\\\\\\\\\#\n#\\##########\\#\\##########\\#\n#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#\n###########################\n\nHighscore 15039\n",bhickey1:"################################ ##\n#******#******#******#**********L #\n##*****##*****##*****##********* #\n#*#****#*#****#*#****#*#*******## #\n# *#***# *#***# *#***# *#*****# # #\n# *#**# *#**# *#**# *#***# # #\n# *#*# *#*# *#*# *#*# # #\n# *A* *B* *C* *D* # #\n# \\ \\ \\ \\ # #\n# * * * * # #\n#*******************************# #\n#R..............................# #\n#\\ # #\n#1 # #\n# # #\n################################# #\n# WE #\n###################################\n\nGrowth 1\nTrampoline A targets 1\nTrampoline B targets 1\nTrampoline C targets 1\nTrampoline D targets 1\nTrampoline E targets 1\nAuthor bhickey (https://gist.github.com/3115673)",bhickey2:"###L######################\n#W#R #*****#!#\\\\\\\\\\\\\\\\\\##\n#*# ..\\.. #\\\\\\\\\\\\\\*\\##\n#*#A 2####### ########.###\n#*# #*****# #*****#B 3##\n#*# ..\\.. ..\\.. ##\n#**E 5 ############## ##\n#***.##C 1\\ D# ####\n#***. #****###****# ***##\n#*** #G...\\4 ...H# ..\\ #\n#\\## ################# ##\n#\\\\# #*****#F 6##*** ##\n#\\\\# ..\\.. ... ##\n####################### ##\n##########################\n\nWater 0\nFlooding 20\nWaterproof 18\nTrampoline A targets 1\nTrampoline B targets 1\nTrampoline C targets 2\nTrampoline D targets 3\nTrampoline E targets 4\nTrampoline F targets 4\nTrampoline G targets 5\nTrampoline H targets 6\nAuthor bhickey (https://gist.github.com/3114986)"};if(typeof exports!=="undefined"){exports.maps=mineMaps}; \ No newline at end of file diff --git a/js/mine.js b/js/mine.js index 53038ba..48b9fed 100644 --- a/js/mine.js +++ b/js/mine.js @@ -73,6 +73,7 @@ var Mine = function() { case 'W': case '!': break; + case '@': case '\\': this.lambdas++; break; @@ -180,6 +181,7 @@ var Mine = function() { case 'L': return false; case 'O': return true; case '*': + case '@': if (' ' == this.map[this.robot.y][this.robot.x+2*n]) return true; default: if (this.trampoline.sources.hasOwnProperty(c)) return true; @@ -199,6 +201,7 @@ var Mine = function() { case 'L': return false; case 'O': return true; case '*': return false; + case '@': return false; default: if (this.trampoline.sources.hasOwnProperty(c)) return true; break; @@ -227,7 +230,8 @@ var Mine = function() { c = map[this.robot.y][this.robot.x+n]; switch (c) { case '*': - map[this.robot.y][this.robot.x+2*n] = '*'; + case '@': + map[this.robot.y][this.robot.x+2*n] = c; break; case '\\': this.lambdas--; @@ -317,27 +321,31 @@ var Mine = function() { for (y = 2; y < 2+this.height; ++y) { for (x = 1; x <= this.width; ++x) { - if ('*' == map[y][x]) { + c = map[y][x]; + if ('*' === c || '@' === c) { below = map[y-1][x]; - if (' ' == below) { + if (' ' === below) { // fall down - newMap[y-1][x] = '*'; + newMap[y-1][x] = c; + if ('@' === c && ' ' != map[y-2][x]) newMap[y-1][x] = '\\'; newMap[y][x] = ' '; - if ('R' == map[y-2][x]) this._crushed(); - } else if ((below == '*' || below == '\\') && ' ' == map[y-1][x+1] && ' ' == map[y][x+1]) { + if ('R' === map[y-2][x]) this._crushed(); + } else if ((below === '*' || below === '\\' || below === '@') && ' ' === map[y-1][x+1] && ' ' === map[y][x+1]) { // fall right - newMap[y-1][x+1] = '*'; + newMap[y-1][x+1] = c; + if ('@' === c && ' ' != map[y-2][x+1]) newMap[y-1][x+1] = '\\'; newMap[y][x] = ' '; if ('R' == map[y-2][x+1]) this._crushed(); - } else if ((below == '*') && ' ' == map[y-1][x-1] && ' ' == map[y][x-1]) { + } else if ((below === '*' || below === '@') && ' ' === map[y-1][x-1] && ' ' === map[y][x-1]) { // fall left - newMap[y-1][x-1] = '*'; + newMap[y-1][x-1] = c; + if ('@' === c && ' ' != map[y-2][x-1]) newMap[y-1][x-1] = '\\'; newMap[y][x] = ' '; if ('R' == map[y-2][x-1]) this._crushed(); } - } else if (growBeard && 'W' == map[y][x]) { + } else if (growBeard && 'W' === c) { for (i = -1; i <= 1; ++i) for (j = -1; j <= 1; ++j) { - if (' ' == map[y+i][x+j]) newMap[y+i][x+j] = 'W'; + if (' ' === map[y+i][x+j]) newMap[y+i][x+j] = 'W'; } } } diff --git a/js/mine.min.js b/js/mine.min.js index 1ac4286..e934d61 100644 --- a/js/mine.min.js +++ b/js/mine.min.js @@ -1 +1 @@ -var Mine=function(){var b=0,f=1,a=2,d=3;function e(g,h){return new Array(h+1).join(g)}function c(g){this.parse(g)}c.ALIVE=b;c.LOST=f;c.ABORTED=a;c.WON=d;c.prototype.parse=function(g){var o,k,h,n,j,m,p;this.orig_map=g;o=g.split(/\r\n?|\r?\n/);h=0;n=o.length;for(k=0;k="A"&&p[m]<="I"){if(this.trampoline.sources[p[m]]){throw"Can have only one trampoline "+p[m]}this.trampoline.sources[p[m]]={x:m,y:k,target:false};this.trampoline.fromSources}else{if(p[m]>="1"&&p[m]<="9"){if(this.trampoline.targets[p[m]]){throw"Can have only one trampoline target "+p[m]}this.trampoline.targets[p[m]]={x:m,y:k,sources:[]}}else{throw"Invalid character in map: '"+p[m]+"'"+m}}break}}}if(this.robot===false){throw"Need a robot"}this.meta={};for(k=0;k"I"){throw"Invalid trampoline source '"+l[1]+"'"}if(l[3].length!=1||l[3]<"1"||l[3]>"9"){throw"Invalid trampoline target '"+l[3]+"'"}if(!this.trampoline.sources[l[1]]){throw"Trampoline "+l[1]+" not defined"}if(!this.trampoline.targets[l[3]]){throw"Trampoline target "+l[3]+" not defined"}if(this.trampoline.sources[l[1]].target){throw"Trampoline "+l[1]+" already has a target"}this.trampoline.sources[l[1]].target=l[3];this.trampoline.targets[l[3]].sources.push(l[1]);break;case"Growth":this.beard.growth=parseInt(l[1]);break;case"Razors":this.beard.razors=parseInt(l[1]);break;default:this.meta[l[0]]=l.splice(1).join(" ");break}}for(k in this.trampoline.sources){if(this.trampoline.sources.hasOwnProperty(k)){if(!this.trampoline.sources[k].target){throw"Trampoline "+k+" has no target"}}}for(k in this.trampoline.targets){if(this.trampoline.targets.hasOwnProperty(k)){if(0==this.trampoline.targets[k].sources.length){throw"Trampoline target "+k+" has no sources"}}}this.water_level=this.water.level;this.razors=this.beard.razors;this.state=b};c.prototype.get=function(g,h){if(g<0||h<0||g>=this.width||h>=this.height){return"#"}return this.map[h][g]};c.prototype.validMove=function(g){if(this.state!=b){return false}var i,h;g=g.toUpperCase();switch(g){case"L":case"R":i=(g=="L"?-1:1);h=this.map[this.robot.y][this.robot.x+i];switch(h){case"#":return false;case" ":case".":case"!":case"\\":return true;case"L":return false;case"O":return true;case"*":if(" "==this.map[this.robot.y][this.robot.x+2*i]){return true}default:if(this.trampoline.sources.hasOwnProperty(h)){return true}break}break;case"U":case"D":i=(g=="D"?-1:1);h=this.map[this.robot.y+i][this.robot.x];switch(h){case"#":return false;case" ":case".":case"!":case"\\":return true;case"L":return false;case"O":return true;case"*":return false;default:if(this.trampoline.sources.hasOwnProperty(h)){return true}break}break;case"W":case"S":return this.razors>0;case"A":return true}return false};c.prototype.move=function(l){if(this.state!=b){return false}var k,p,z,w;var g,r,q,o,m,u,h=this.map,v;l=l.toUpperCase();if(this.validMove(l)){switch(l.toUpperCase()){case"L":case"R":k=(l=="L"?-1:1);h[this.robot.y][this.robot.x]=" ";p=h[this.robot.y][this.robot.x+k];switch(p){case"*":h[this.robot.y][this.robot.x+2*k]="*";break;case"\\":this.lambdas--;this.found_lambdas++;break;case"!":this.razors++;break;case"O":this._foundLift();break;default:if(this.trampoline.sources.hasOwnProperty(p)){z=this.trampoline.sources[p];w=this.trampoline.targets[z.target];for(k=0;k0&&0==(this.moves%this.beard.growth)){v=true}for(q=0;qthis.water.proof){this._drown()}}else{this.moves_below_water=0}if(this.water.flooding>0&&0==(this.moves%this.water.flooding)){++this.water_level}switch(this.state){case f:this.score=25*this.found_lambdas-this.moves;break;case d:this.score=75*this.found_lambdas-this.moves;break;case b:case a:this.score=50*this.found_lambdas-this.moves;break}};c.prototype._drown=function(){if(this.state="A"&&p[m]<="I"){if(this.trampoline.sources[p[m]]){throw"Can have only one trampoline "+p[m]}this.trampoline.sources[p[m]]={x:m,y:k,target:false};this.trampoline.fromSources}else{if(p[m]>="1"&&p[m]<="9"){if(this.trampoline.targets[p[m]]){throw"Can have only one trampoline target "+p[m]}this.trampoline.targets[p[m]]={x:m,y:k,sources:[]}}else{throw"Invalid character in map: '"+p[m]+"'"+m}}break}}}if(this.robot===false){throw"Need a robot"}this.meta={};for(k=0;k"I"){throw"Invalid trampoline source '"+l[1]+"'"}if(l[3].length!=1||l[3]<"1"||l[3]>"9"){throw"Invalid trampoline target '"+l[3]+"'"}if(!this.trampoline.sources[l[1]]){throw"Trampoline "+l[1]+" not defined"}if(!this.trampoline.targets[l[3]]){throw"Trampoline target "+l[3]+" not defined"}if(this.trampoline.sources[l[1]].target){throw"Trampoline "+l[1]+" already has a target"}this.trampoline.sources[l[1]].target=l[3];this.trampoline.targets[l[3]].sources.push(l[1]);break;case"Growth":this.beard.growth=parseInt(l[1]);break;case"Razors":this.beard.razors=parseInt(l[1]);break;default:this.meta[l[0]]=l.splice(1).join(" ");break}}for(k in this.trampoline.sources){if(this.trampoline.sources.hasOwnProperty(k)){if(!this.trampoline.sources[k].target){throw"Trampoline "+k+" has no target"}}}for(k in this.trampoline.targets){if(this.trampoline.targets.hasOwnProperty(k)){if(0==this.trampoline.targets[k].sources.length){throw"Trampoline target "+k+" has no sources"}}}this.water_level=this.water.level;this.razors=this.beard.razors;this.state=b};c.prototype.get=function(g,h){if(g<0||h<0||g>=this.width||h>=this.height){return"#"}return this.map[h][g]};c.prototype.validMove=function(g){if(this.state!=b){return false}var i,h;g=g.toUpperCase();switch(g){case"L":case"R":i=(g=="L"?-1:1);h=this.map[this.robot.y][this.robot.x+i];switch(h){case"#":return false;case" ":case".":case"!":case"\\":return true;case"L":return false;case"O":return true;case"*":case"@":if(" "==this.map[this.robot.y][this.robot.x+2*i]){return true}default:if(this.trampoline.sources.hasOwnProperty(h)){return true}break}break;case"U":case"D":i=(g=="D"?-1:1);h=this.map[this.robot.y+i][this.robot.x];switch(h){case"#":return false;case" ":case".":case"!":case"\\":return true;case"L":return false;case"O":return true;case"*":return false;case"@":return false;default:if(this.trampoline.sources.hasOwnProperty(h)){return true}break}break;case"W":case"S":return this.razors>0;case"A":return true}return false};c.prototype.move=function(l){if(this.state!=b){return false}var k,p,z,w;var g,r,q,o,m,u,h=this.map,v;l=l.toUpperCase();if(this.validMove(l)){switch(l.toUpperCase()){case"L":case"R":k=(l=="L"?-1:1);h[this.robot.y][this.robot.x]=" ";p=h[this.robot.y][this.robot.x+k];switch(p){case"*":case"@":h[this.robot.y][this.robot.x+2*k]=p;break;case"\\":this.lambdas--;this.found_lambdas++;break;case"!":this.razors++;break;case"O":this._foundLift();break;default:if(this.trampoline.sources.hasOwnProperty(p)){z=this.trampoline.sources[p];w=this.trampoline.targets[z.target];for(k=0;k0&&0==(this.moves%this.beard.growth)){v=true}for(q=0;qthis.water.proof){this._drown()}}else{this.moves_below_water=0}if(this.water.flooding>0&&0==(this.moves%this.water.flooding)){++this.water_level}switch(this.state){case f:this.score=25*this.found_lambdas-this.moves;break;case d:this.score=75*this.found_lambdas-this.moves;break;case b:case a:this.score=50*this.found_lambdas-this.moves;break}};c.prototype._drown=function(){if(this.state