Skip to content

Instantly share code, notes, and snippets.

@Warpten
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Warpten/9714127 to your computer and use it in GitHub Desktop.
Save Warpten/9714127 to your computer and use it in GitHub Desktop.
zafc74.js
function d(p){var w={_a:"a1",_i:"a2",_q:"a3",_y:"a4",_G:"a5",_O:"a6",_W:"a7",_4:"a8",_b:"b1",_j:"b2",_r:"b3",_z:"b4",_H:"b5",_P:"b6",_X:"b7",_5:"b8",_c:"c1",_k:"c2",_s:"c3",_A:"c4",_I:"c5",_Q:"c6",_Y:"c7",_6:"c8",_d:"d1",_l:"d2",_t:"d3",_B:"d4",_J:"d5",_R:"d6",_Z:"d7",_7:"d8",_e:"e1",_m:"e2",_u:"e3",_C:"e4",_K:"e5",_S:"e6",_0:"e7",_8:"e8",_f:"f1",_n:"f2",_v:"f3",_D:"f4",_L:"f5",_T:"f6",_1:"f7",_9:"f8",_g:"g1",_o:"g2",_w:"g3",_E:"g4",_M:"g5",_U:"g6",_2:"g7","_!":"g8",_h:"h1",_p:"h2",_x:"h3",_F:"h4",_N:"h5",_V:"h6",_3:"h7","_?":"h8"};var g=p.charAt(0);var b=p.charAt(1);var k=w["_"+g];var x;var c=null;var v=k.charCodeAt(0);var q=null;if(b=="{"){q=v-1;c="q"}else{if(b=="~"){q=v;c="q"}else{if(b=="}"){q=v+1;c="q"}else{if(b=="("){q=v-1;c="n"}else{if(b=="^"){q=v;c="n"}else{if(b==")"){q=v+1;c="n"}else{if(b=="["){q=v-1;c="r"}else{if(b=="_"){q=v;c="r"}else{if(b=="]"){q=v+1;c="r"}else{if(b=="@"){q=v-1;c="b"}else{if(b=="#"){q=v;c="b"}else{if(b=="$"){q=v+1;c="b"}}}}}}}}}}}}if(q!=null){var m=k.charAt(1);if(m==7){x=String.fromCharCode(q)+"8"}else{if(m==2){x=String.fromCharCode(q)+"1"}else{return null}}}else{x=w["_"+b];if(!x){return null}}var h={};h.fromArea=k;h.toArea=x;h.additionalInfo=c;return h}for(var i=0;i<PML.length;++i){if(PML[i]!=undefined){for(var j in PML[i]){console.log("Move: ",d(PML[i][j]))}}};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment