Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (62 sloc) 33.9 KB
<!DOCTYPE html><html><head><meta charset="utf-8" /><style>html{overflow:hidden}body{text-align:center;background-color:#efeffe}#cn{position:absolute;top:1px;left:-300px;margin-left:50%;width:600px;height:150px;outline:1px solid black;font-size:13px;overflow-y:scroll;font-family:'Arial'}#cn>div{position:relative;width:100%;background-color:#EFEFEF;border-bottom:2px solid gray;text-align:left}#cn>div>div{position:relative;width:50%;height:100%;box-sizing:border-box;text-align:left;display:inline-block}#cn>div>div:nth-child(1){border-right:1px solid gray}#cn>div>div:nth-child(2){border-left:1px solid gray}#cn canvas{margin-top:5px;float:left;padding-right:.8em}#cn>div>div span{margin-top:1em;display:block;line-height:1.3em}#gamedata{position:absolute;top:152px;left:-300px;margin-left:50%;width:600px;height:50px;line-height:50px;text-align:left}#gi,#moves{display:inline-block;width:250px;text-align:center;vertical-align:top;font-size:20px}#cnvDice{left:-44px;top:10px}#mc>canvas{position:absolute;top:200px;left:-300px;margin-left:50%}#cnvMap{border:1px solid black}#bckNight{position:fixed;top:0;left:0;z-index:-1}#bm>canvas,#bNET,#bRA,#bS{position:absolute;margin-top:540px;margin-left:50%;border:0}#bR{left:22px;top:44px}#bU{top:0;left:-22px}#bD{top:44px;left:-22px}#bL{left:-65px;top:44px}#bE{top:88px;left:-65px}#bG{top:0;left:-300px}#bI{top:80px;left:-300px}#bRA{top:40px;left:-300px}#bNET{top:0;left:150px}#bS{top:44px;left:150px}#inst_wrap{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(243,243,243,.6);z-index:10;display:none}#instructions{position:fixed;top:2em;margin-left:50%;left:-200px;width:400px;padding:20px;text-align:justify;background-color:#DEDEDE;color:black;box-shadow:3px 4px 8px rgba(0,0,0,.5)}</style><title>WIRED</title></head><body><div id="cn"></div><div id="gamedata"><span id="gi">Pick a player</span><canvas id="cnvDice" width="88" height="44"></canvas><div id="moves">Moves left:<span id="movesleft"></span></div></div><canvas id="bckNight"></canvas><div id="mc"><canvas id="cnvNet" width="600" height="460"></canvas><canvas id="cnvMap" width="600" height="460"></canvas><canvas id="pl1" width="600" height="400"></canvas><canvas id="pl2" width="600" height="400"></canvas><canvas id="pl3" width="600" height="400"></canvas><canvas id="pl4" width="600" height="400"></canvas><canvas id="cnvEl" width="600" height="400"></canvas><canvas id="pl0" width="600" height="400"></canvas></div><div id="bm"><canvas id="bL" width="40" height="40"></canvas><canvas id="bU" width="40" height="40"></canvas><canvas id="bD" width="40" height="40"></canvas><canvas id="bR" width="40" height="40"></canvas><canvas id="bE" width="124" height="30"></canvas><canvas id="bG" width="124" height="30"></canvas><canvas id="bI" width="124" height="30"></canvas></div><canvas id="bNET" width="124" height="30"></canvas><canvas id="bS" width="124" height="30"></canvas><canvas id="bRA" width="124" height="30"></canvas><div id="inst_wrap"><div id="instructions"></div></div></body><script>var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(k,y,N){k!=Array.prototype&&k!=Object.prototype&&(k[y]=N.value)};$jscomp.getGlobal=function(k){return"undefined"!=typeof window&&window===k?k:"undefined"!=typeof global&&null!=global?global:k};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var k=0;return function(y){return $jscomp.SYMBOL_PREFIX+(y||"")+k++}}();
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var k=$jscomp.global.Symbol.iterator;k||(k=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[k]&&$jscomp.defineProperty(Array.prototype,k,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};
$jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var k=$jscomp.global.Symbol.asyncIterator;k||(k=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("asyncIterator"));$jscomp.initSymbolAsyncIterator=function(){}};$jscomp.arrayIterator=function(k){var y=0;return $jscomp.iteratorPrototype(function(){return y<k.length?{done:!1,value:k[y++]}:{done:!0}})};
$jscomp.iteratorPrototype=function(k){$jscomp.initSymbolIterator();k={next:k};k[$jscomp.global.Symbol.iterator]=function(){return this};return k};$jscomp.makeIterator=function(k){$jscomp.initSymbolIterator();$jscomp.initSymbol();$jscomp.initSymbolIterator();var y=k[Symbol.iterator];return y?y.call(k):$jscomp.arrayIterator(k)};$jscomp.arrayFromIterator=function(k){for(var y,N=[];!(y=k.next()).done;)N.push(y.value);return N};$jscomp.arrayFromIterable=function(k){return k instanceof Array?k:$jscomp.arrayFromIterator($jscomp.makeIterator(k))};
var $=document.querySelector.bind(document),onEv=function(k,y,N){"document"!==k?[].concat($jscomp.arrayFromIterable(document.querySelectorAll(k))).map(function(k){k.addEventListener(y,N)}):document.addEventListener(y,N)},gc=function(k){return k.getContext("2d")},ce=document.createElement.bind(document);onEv("#bm canvas","click",function(k){k=k.target.id.substr(1,1);game.buttonInput(k)});onEv("document","keyup",function(k){game.keyboardInput(k.keyCode)});onEv("#bNET","click",function(){game.toggleNet()});
onEv("#bRA","click",function(){game.toggleEnemy()});onEv("#inst_wrap","click",function(){$("#inst_wrap").style="display:none"});onEv("#bS","click",function(){game.toggleSound()});
function Game(){function k(){for(var a in aa)aa[a]&&clearTimeout(aa[a]);for(a=0;6>a;a++){v[a]=[];for(var b=0;12>b;b++)v[a][b]=""}Aa();if(!Ba&&Ta())for(a=0;6>a;a++)for(b=0;12>b;b++){if(""!==v[a][b]){var c=H.indexOf(v[a][b]),d=Ca(v[a][b]);0>c?ma(v[a][b],d,a,b,!0):Da(Q[c],a,b,!0)}}else for(a=0;a<A.length;a+=2)for(b=0;b<A[a].length;b+=2)"."!=A[a].substr(b,1)&&(c="WXYZ".indexOf(A[a].substr(b,1)),B[A[a].substr(b,1)]=[a/2,b/2],0>c?(c=A[a].substr(b,1),d=Ca(c),ma(c,d,a/2,b/2,!0)):Da(Q[c+1],a/2,b/2,!0),v[a/
2][b/2]=A[a].substr(b,1));ba(0,6);ba(1,6);a=[];for(b=0;4>=b;b++)a[b]=gc($("#pl"+b)),n[b]=new Ua(a[b],Q[b]),0<b&&n[b].dpc(B[H[b]][0],B[H[b]][1]);n[0].rp();for(a=1;5>a;a++){b=na[a];c=$jscomp.makeIterator(n[a].gc());r1=c.next().value;c1=c.next().value;c=[];d=0;for(var g=1;4>g;g++){var e=$jscomp.makeIterator(B[b]);goalR=e.next().value;goalC=e.next().value;c.push(Ea(r1,c1,goalR,goalC));d+=R.length;b=String.fromCharCode(b.charCodeAt(0)+1);e=$jscomp.makeIterator([goalR,goalC]);
r1=e.next().value;c1=e.next().value}console.log("PL ",a," = "+c+" = ",d)}E=-1;U=!0}function y(){0<=E&&0==confirm("New game? You resign? Really?")||(C=[,"A","E","1","5"],H=[,"W","X","Y","Z"],k(),U=Ba=!1,F=[0,0],J=0,z=1,w=0,E=-1,Fa(2),Z(),0<Ga&&L("newGame"))}function N(a){"I"==a&&($("#inst_wrap").style="display:block");"G"==a&&y();-1==E||0==T&&1==z||("E"==a?Z():""!=a&&(1==E&&Ha(a),0==E&&Ia(!1)))}function Z(){1===E&&(0<F[0]||0<F[1])||(E=(E+1)%2,0==E&&(z=1-z,w=n[x[z][0]].isDead()?1:0,n[x[z][1-w]].isDead()&&
(E=1),ca()),oa.innerHTML=0==T&&1==z?"Wait for your turn":1===E?"Move a player":"Pick a player")}function Ha(a){var b=x[z][w];n[b].endMoveInProgress();var c=n[b].gc();if(0<=D[c[0]][c[1]].indexOf(a)&&0!=F[J]){F[J]--;pa.innerHTML=F[J];var d=n[b].movePlayer(a);v[d[0]][d[1]]===C[b]&&(ma(C[b],"",d[0],d[1],!1),n[b].sd(0),H[b]=C[b],C[b]===da[b]?!1===n[b].canKill&&(n[b].canKill=!0,alert("This player can kill now!!")):C[b]=String.fromCharCode(C[b].charCodeAt(0)+1));0==F[J]&&setTimeout(function(){!1===
Ja(d,!0)&&ea()},1E3)}}function ea(){J++;if(1<J){var a=n[x[1-z][0]].isDead()||n[x[1-z][1]].isDead()?1:2;Fa(a);J=0;Z()}else Ia(!0),pa.innerHTML=F[J];0==T&&1==z&&setTimeout(function(){if(0<J){ca();var a=x[1][w];n[a].isDead()&&ea();a=qa(a,1);a=fa(a,1);Ka(a.myPath)}else{a=[];for(var c=[x[1][0],x[1][1]],d=c[0];d<=c[1];d++)n[d].isDead()||(a[d]=qa(d));c=[x[1][0],x[1][1]];d=[];w=-1;for(var g=0;2>g;g++)n[c[g]].isDead()?w=1-g:d[g]=fa(a[c[g]],0);0>w&&(w=d[0].grade!=d[1].grade||10!=d[0].grade&&7!=d[0].grade&&
3!=d[0].grade?d[0].grade>d[1].grade?0:1:fa(a[c[0]],1).grade>fa(a[c[1]],1).grade?1:0);ca();Z();Ka(d[w].myPath)}},1100)}function Ja(a,b){var c=1-z,d=[],g=[];I=[];for(var e=1;2>=e;e++)d[e]=n[x[c][e-1]].gc();for(e=1;2>=e;e++){var h=x[c][e-1];if(!n[h].isDead())if(d[e][0]===a[0]&&d[e][1]===a[1]){var l=B[H[h]];1==b?!1===n[x[z][w]].canKill?(n[h].dpc(l[0],l[1]),n[h].sd(0)):(n[h].playerDied(),La(x[z][w])):g.push([d[e][0],d[e][1],0,h])}else{var f=l=!1;var m=void 0;if(d[e][0]===a[0]){var u=
d[e][1]>a[1]?"R":"L";var k=d[e][1]>a[1]?1:-1;m=a[1];for(l=!0;0<k&&m<d[e][1]||0>k&&m>d[e][1];m+=k)l=l&&0<=D[a[0]][m].indexOf(u);m=Math.abs(d[e][1]-a[1])}if(d[e][1]===a[1]){u=d[e][0]>a[0]?"D":"U";k=d[e][0]>a[0]?1:-1;m=a[0];for(f=!0;0<k&&m<d[e][0]||0>k&&m>d[e][0];m+=k)f=f&&0<=D[m][a[1]].indexOf(u);m=Math.abs(d[e][0]-a[0])}!0!==l&&!0!==f||g.push([d[e][0],d[e][1],m,h])}}if(0<g.length){h=1==g.length?0:g[0][2]<g[1][2]?0:1;if(v[g[h][0]][g[h][1]]===H[g[h][3]])return!1;if(2==g.length&&g[0][0]===g[1][0]&&g[0][1]===
g[1][1]){if(v[g[h][0]][g[h][1]]===H[g[h][3]]||v[g[1-h][0]][g[1-h][1]]===H[g[1-h][3]])return!1;I.push(g[1-h][3])}I.push(g[h][3]);b&&(c=a[0],d=a[1],e=g[h][0],g=g[h][1],V=g>d?10:g<d?-10:0,W=e>c?10:e<c?-10:0,Ma(50*d+30,5+50*(c+1),1,50*g+30,5+50*(e+1)));return!0}return!1}function La(a){var b=1-z;n[x[b][0]].isDead()&&n[x[b][1]].isDead()&&(Ga++,E=-1,3>a?(alert("Game over. You WIN!!!!"),oa.innerHTML="Game over. You WIN!!!!",L("winGame")):(msg="Game over. You LOST!",alert(msg),oa.innerHTML=msg,L("lg")),
U=!0)}function Ia(a){w=1-w;n[x[z][w]].isDead()?a?(F[1]=0,ea()):w=1-w:ca()}function ca(){for(var a=x[z][w],b=1;4>=b;b++)n[b].delMark();n[a].drawMark()}function ha(a,b,c){return a+(a-b)*(15*Math.pow(c,4)-6*Math.pow(c,5)-10*Math.pow(c,3))}function K(a,b,c,d,g,e){var h=Math.ceil(3*Math.sqrt(d)),l=.12*d,f=1+.1*Math.random()-.05,m=2-f;g=g||0<g?Math.ceil(h*g)+1:1;e=e||0<e?Math.ceil(h*e):h;a.moveTo(b+d*f,c);for(var u=g-1;u<=e;u++){var k=2*Math.PI/h*(u-1),n=2*Math.PI/h*u,p=b+Math.cos(k)*d*f;k=c+Math.sin(k)*
d*m;var r=b+Math.cos(n)*d*f;n=c+Math.sin(n)*d*m;u>g-1&&a.quadraticCurveTo(p+Math.random()*l-l/2,k+Math.random()*l-l/2,r,n);a.moveTo(r,n)}}function r(a,b,c,d,g){a.moveTo(b,c);var e=Math.sqrt((d-b)*(d-b)+(g-c)*(g-c))/25;4>e&&(e=4);for(var h=1;h<=e;h++){var l=h/e,f=l-1/e,m=ha(b,d,f);f=ha(c,g,f);var u=ha(b,d,l);l=ha(c,g,l);a.quadraticCurveTo(m+8*Math.random()-4,f+8*Math.random()-4,u,l);a.moveTo(u,l)}}function Na(a,b,c,d,g,e){for(var h=0;h<e;h++)r(a,b,c,b,g),r(a,b,c,d,c),r(a,d,g,b,g),r(a,d,g,d,c)}function Aa(){t.beginPath();
t.clearRect(0,0,600,600);t.strokeStyle="#000";for(var a=0;a<A.length;a++)if(0==a%2)for(var b=0;b<A[a].length;b+=2){if("."==A[a].substr(b+1,1)){var c=b/2,d=5+50*(a/2+1);X(t,50*c+30,d,50*(c+1)+30,d,3)}c=a/2;d=b/2;X(t,50*d+30-5,50*(c+1)+10,50*d+35,5+50*(c+1)-5,3)}else for(b=0;b<A[a].length;b++)"|"==A[a].substr(b,1)&&(c=parseInt(a/2),d=50*b+30,X(t,d,5+50*(c+1),d,5+50*(c+2),3));t.stroke()}function Ca(a){if("A"<=a&&"D">=a)return Q[1];if("E"<=a&&"H">=a)return Q[2];if("1"<=a&&"4">=a)return Q[3];if("5"<=a&&
"8">=a)return Q[4]}function X(a,b,c,d,g,e){for(var h=0;h<e;h++)r(a,b,c,d,g)}function ma(a,b,c,d,g){d=50*d+30;c=50*c+35-2;t.clearRect(d-10,c-10,20,20);!0===g&&(t.beginPath(),t.arc(d,c,11,0,2*Math.PI,!1),t.fillStyle=b,t.fill());t.beginPath();K(t,d,c,12);t.font="18px Comic Sans MS, cursive, TSCu_Comic, sans-serif";t.textAlign="center";t.fillStyle="#000";t.fillText(a,d,c+8);t.stroke()}function Da(a,b,c,d){c=50*c+30;b=5+50*(b+1);t.beginPath();t.font="18px Comic Sans MS, cursive, TSCu_Comic, sans-serif";
t.textAlign="center";t.fillStyle=a;t.fillText("s",c,b);t.stroke()}function Oa(){var a=$("#bckNight"),b=window.innerWidth,c=window.innerHeight;a.width=b;a.height=c;a=bckNight.getContext("2d");var d=a.createRadialGradient(b/2,c/2,300,b/2,c/2,2*b/3);d.addColorStop(0,"#EFEFEF");d.addColorStop(1,"gray");a.fillStyle=d;a.fillRect(0,0,b,c);d=G(10,10);for(var g=0;g<d;g++)ia(a,G(b/2-300,10),G(c-10,10),3*Math.random()),ia(a,G(b/2-300,b/2+300),G(c-10,10),3*Math.random());b=Va;a=window.innerWidth;c=2.5*(a/2-300)/
10;a=(a/2-300)/10;b.beginPath();b.strokeStyle="#eee";for(var e=g=d=0;5>e;e++){for(var h=[0,0+c,c/2,0+c],l=d,f=0;4>f;f++)r(b,l,h[f],l+a/2,h[3-f]),l+=a/2;h=[3,4,6,7.5];for(l=0;4>l;l++)r(b,d+a*h[l],0,d+a*h[l],0+c);r(b,d+4.5*a,c/2,d+5*a,0+c);K(b,4.5*a,c/4,c/4-5*e);h=[g,c/2-5*(e-2),0+c-5*e];for(l=0;3>l;l++)r(b,6*a,h[l],a*(7-l%2*.25),h[l]);for(l=0;3>l;l+=2)r(b,7.5*a,h[l],7.5*a+a/2,h[l]);K(b,7.5*a+a/3,c/2,c/2-5*e,.75,1);K(b,7.5*a+a/3,c/2,c/2-5*e,0,.25);d+=5;g+=5}b.stroke()}function Pa(){p.RA.beginPath();
p.RA.fillStyle="Gainsboro";p.RA.fillRect(10,14,100,10);p.RA.fill();p.RA.beginPath();p.RA.arc(0==T?13:55,20,3,0,2*Math.PI,!1);p.RA.fillStyle="black";p.RA.fill();p.RA.strokeText("CPU",20,23);p.RA.strokeText("Human",64,23);K(p.RA,13,20,5);K(p.RA,55,20,5);p.RA.stroke()}function ia(a,b,c,d){d||(d=1);var g=10*d;d*=6;var e=Math.PI/2*3,h=Math.PI/8;a==ja&&a.clearRect(0,0,600,600);a.beginPath();a.moveTo(b,c-g);for(i=0;8>i;i++){var l=b+Math.cos(e)*g;var f=c+Math.sin(e)*g;a.lineTo(l,f);e+=h;l=b+Math.cos(e)*d;
f=c+Math.sin(e)*d;a.lineTo(l,f);e+=h}a.lineTo(b,c-g);a.closePath();a.lineWidth=3;a.strokeStyle="#FFFF00";a.stroke();a.fillStyle="#FFFFcc";a.fill()}function Ma(a,b,c,d,g){c=1<c?1:2;1==c&&Qa("elec");ia(ja,a+V,b+W,c);0<V&&a>=d||0>V&&a<=d||0<W&&b>=g||0>W&&b<=g?Wa(d,g):requestAnimationFrame(function(){Ma(a+V,b+W,c,d,g)})}function Wa(a,b){ia(ja,a,b-25,3);var c="white",d=setInterval(function(){c="white"===c?"black":"white";n[0].setColor(c);n[0].drawPlayer(a,b-100/3)},100);setTimeout(function(){clearInterval(d);
ja.clearRect(0,0,600,600);n[0].rp();var a=x[z][w];if(!1===n[a].canKill)for(a=0;a<I.length;a++){var b=B[H[I[a]]];n[I[a]].dpc(b[0],b[1]);n[I[a]].sd(0)}else for(b=0;b<I.length;b++)n[I[b]].playerDied(),La(a);0<I.length&&3>I[0]&&L("meElectr",I[0]);ea()},1E3)}function Fa(a){var b,c,d=setInterval(function(){b=G(6,1);c=G(6,1);q.clearRect(0,0,ra.width,ra.height);ba(0,b);1<a&&ba(1,c)},100);setTimeout(function(){clearInterval(d);F=[b,c];pa.innerHTML=F[0];J=0},1E3)}function P(a,
b,c,d,g){K(a,b,c,d);a.arc(b,c,d,0,2*Math.PI,!1)}function ba(a,b){var c=43*a+2;q.beginPath();q.moveTo(c+4,2);q.lineTo(c+40-4,2);q.quadraticCurveTo(c+40,2,c+40,6);q.lineTo(c+40,38);q.quadraticCurveTo(c+40,42,c+40-4,42);q.lineTo(c+4,42);q.quadraticCurveTo(c,42,c,38);q.lineTo(c,6);q.quadraticCurveTo(c,2,c+4,2);q.closePath();q.fillStyle="rgb(204,51,0)";q.fill();q.stroke();q.beginPath();1==b%2&&P(q,c+20,22,4);var d=c+10;c=c+40-10;if(0==b%2||4<=b)P(q,d,12,4),P(q,c,32,4);3<=b&&(P(q,c,12,4),P(q,d,32,4));6==
b&&(P(q,c,22,4),P(q,d,22,4));q.fillStyle="white";q.fill();q.stroke()}function Ua(a,b){function c(a,b){m=a;u=b;d(50*b+30,5+50*a+50/3)}function d(a,b){var c=50/6;f.beginPath();f.clearRect(0,0,600,600);P(f,a,b,c);f.fillStyle=k;f.fill();c=b;for(var d=50/3,e=0;5>e;e++)2<e&&(c=b+50/6+5,d=5),r(f,a,c,a+e%2*-16+8*+(0<e),c+d),0==e%2&&(c+=d);f.stroke()}function g(a){oldcpp=u;u=a;q=50*a+30;n=0;p=oldcpp>u?-3:3;v=oldcpp>u?1:2;x=setInterval(function(){h+=l;if(8<h||0>h)l=-l;8<h&&(h=8);0>h&&(h=0);n+=p;var a=50/6,
b=50*oldcpp+30+n,d=5+50*m+50/3;f.beginPath();f.clearRect(0,0,600,600);K(f,b,d,a);f.arc(b,d,a-1,0,2*Math.PI,!1);f.fillStyle=k;f.fill();a=d+50/3;r(f,b,d,b,a);r(f,b,a,b-8+h,5+50*(m+1));r(f,b,a,b+8-h,5+50*(m+1));r(f,b,d+50/6+5,b-8+h,d+50/6+12);r(f,b,d+50/6+5,b+8-h,d+50/6+12);f.stroke();if(0<p&&b>=q||0>p&&b<=q)clearInterval(x),v=-1,c(m,u)},50)}function e(a){oldrpp=m;m=a;t=5+50*a+50/3;n=0;p=oldrpp>m?-5:5;v=oldrpp>m?3:4;x=setInterval(function(){n+=p;var a=50/6,b=50*u+30,d=5+50*oldrpp+50/3+n;f.beginPath();
f.clearRect(0,0,600,600);K(f,b,d,a);f.arc(b,d,a-1,0,2*Math.PI,!1);f.fillStyle=k;f.fill();var e=d+100/3;r(f,b,d,b,e);r(f,b,e,b-1,e+1);r(f,b,e,b+1,e+1);e-=d+a;var g=d+a+e/3;r(f,b,d+a,b+16/3,g);r(f,b+16/3,g,b,d+a+e-3);f.stroke();if(0<p&&d>=t||0>p&&d<=t)clearInterval(x),v=-1,c(m,u)},50)}var h=0,l=2,f=a,m,u,k=b,n=0,p=2,q,t,x,v=-1,w=0;this.sd=function(a){w=a};this.gd=function(){return w};this.setColor=function(a){f.strokeStyle="black";f.fillStyle=a};this.setColor(b);this.gc=function(){return[m,
u]};this.setCoords=function(a,b){m=a;u=b};this.movePlayer=function(a){"L"!=a&&"R"!=a||g("L"==a?u-1:u+1);"U"!=a&&"D"!=a||e("U"==a?m-1:m+1);w++;return[m,u]};this.rp=function(){f.clearRect(0,0,600,600)};this.dpc=c;this.drawPlayer=d;this.endMoveInProgress=function(){clearInterval(x);0<v&&c(m,u)};var y=this.canKill=!1;this.delMark=function(){f.clearRect(5+50*u,5+50*m-12-1,50,19)};this.drawMark=function(){f.beginPath();var a=5+50*u+50/3,b=5+50*m;f.moveTo(a,b);f.lineTo(a+50/6,b+6);
f.lineTo(a+50/3,b);f.closePath();f.fill();for(var c=0;2>c;c++)r(f,a+50/6,b,a+50/6,b-12,2);f.stroke()};this.playerDied=function(){y=!0;f.beginPath();f.clearRect(0,0,600,600);f.fill();f.stroke()};this.isDead=function(){return y}}function Xa(a,b){function c(a,b,c){e.clearRect(0,0,30,30);e.beginPath();P(e,g[0],g[1],13);e.fillStyle=h;e.fill();e.fillRect(g[0],g[1],1,1);e.stroke();if(!b){b=[];for(var d=0;3>=d;d++)b[d]=G(5,-2);e.beginPath();K(e,7.5+b[0],9.5+b[1],6);K(e,22.5+b[2],9.5+b[3],6);e.stroke()}d=
void 0==c?2:1;e.fillStyle="white";for(var f=0;2>f;f++)e.beginPath(),e.arc(30*(2*f+1)/4+b[2*f],9.5+b[2*f+1],5,0,d*Math.PI),void 0!==c&&e.quadraticCurveTo(30*(2*f+1)/4,-.5+c,30*(2*f+1)/4+5+b[2*f],9.5+b[2*f+1]),e.fill(),e.stroke();e.beginPath();0===a&&(e.beginPath(),e.moveTo(7.5,21.5),e.bezierCurveTo(7.5,23.5,22.5,23.5,22.5,22.5),e.stroke());1===a&&(e.beginPath(),e.moveTo(7.5,19),e.bezierCurveTo(7.5,25,22.5,25,22.5,19),e.quadraticCurveTo(12,22.5,7.5,19),e.fill(),e.stroke());2===a&&(e.beginPath(),e.moveTo(7.5,
25.5),e.quadraticCurveTo(12,19,22.5,25.5),e.quadraticCurveTo(12,19.5,7.5,25.5),e.stroke());3===a&&(K(e,15,22.5,3),e.arc(15,22.5,3,0,2*Math.PI,!1),e.fill());4===a&&r(e,7.5,22.5,22.5,22.5);e.stroke()}function d(a){for(var b=[],d=0;3>=d;d++)b[d]=G(5,-2);var e=1,g=7,h=setInterval(function(){e+=g;20<=e&&(g=-g);2>=e&&(clearInterval(h),b=void 0,e=2);c(a,b,e)},50)}var g=[15,15],e=a,h=b;return{drawFace:c,blinkTwice:function(a){d(a);setTimeout(function(){return d(a)},700)},smileShake:function(a){var b=setInterval(function(){e.save();
e.translate(0,G(6,-3));c(a);e.restore()},100);setTimeout(function(){clearInterval(b);c(a)},2500)}}}function sa(a){for(var b=a.length-1;0<b;b--){var c=Math.floor(Math.random()*(b+1)),d=$jscomp.makeIterator([a[c],a[b]]);a[b]=d.next().value;a[c]=d.next().value}}function L(a,b){if(1!=ta)if(void 0===convs[a])console.log("und convs["+a+"]");else{var c=convs[a].counter;++convs[a].counter>=convs[a].length&&(convs[a].counter=0,"st"===a&&(a="oo",c=0));var d="";if(Array.isArray(convs[a][c])){ta=
!0;for(var g=-2E3,e=0,h=0;h<convs[a][c].length;h++){var l=$jscomp.makeIterator(ua(convs[a][c][h]));d=l.next().value;face=l.next().value;plNo=l.next().value;time=l.next().value;nextConv=l.next().value;anim=l.next().value;if(!plNo){do plNo=G(4,1);while(plNo==e)}e=plNo;face||(face=0);g=time=time?g+1E3*time:g+2E3;"meElectr"==a&&(plNo=b);Ya(plNo,d,face,time,anim,3)}setTimeout(function(){ta=!1;"rf"===a?setTimeout(function(){return L("rules")},8E3):"rules"===a?setTimeout(function(){return L("tactics")},
2E4):"oo"===a?setTimeout(function(){return L("wakeUp")},12E4):"wakeUp"===a?setTimeout(function(){return L("rules")},1E4):setTimeout(function(){return L("st")},6E4)},time)}else console.log(a+" is not conversation.")}}function ua(a){for(var b=a.indexOf("-"),c="",d,g,e,h,l;0<=b;){c+=a.substr(0,b);a=a.substr(b);b=a.substr(1,1);if("q"==b){var f=$jscomp.makeIterator(ka(a.substr(2)));var m=f.next().value;(f=f.next().value)||(f=G(convs[m].length));txt1=$jscomp.makeIterator(ua(convs[m][f])).next().value;
c+=txt1}if("r"==b){f=$jscomp.makeIterator(ka(a.substr(2)));m=f.next().value;(f=f.next().value)||(f=G(6,2));for(var k=0;k<f;k++)c+=m}"c"==b&&(h=$jscomp.makeIterator(ka(a.substr(2))).next().value);"t"==b&&(e=parseFloat(a.substring(2,0<=a.indexOf(" ")?a.indexOf(" "):a.length)));"p"==b&&(g=parseInt(a.substr(2,1)));"f"==b&&(d=parseInt(a.substr(2,1)));"a"==b&&(l=$jscomp.makeIterator(ka(a.substr(2))).next().value);b=a.indexOf(" ");a=0<=b?a.substr(b):"";b=a.indexOf("-")}return[c+a,d,g,e,h,l]}function ka(a){a=
a.substring(0,0<=a.indexOf(" ")?a.indexOf(" "):a.length);if("0"<=a.substr(0,1)&&"9">=a.substr(0,1)){var b=parseInt(a.substr(0,1));a=a.substr(1)}return[a,b]}function Ya(a,b,c,d,g,e){setTimeout(function(){var d=ce("div"),l=ce("div"),f=ce("div"),m=ce("canvas");m.id="face"+ ++Za;m.width=30;m.height=30;var k=3>a?l:f;(3>a?f:l).innerHTML=" ";k.appendChild(m);if(""!=b){var n=ce("span");n.append(b);k.appendChild(n)}d.appendChild(l);d.appendChild(f);va.appendChild(d);va.scrollTop=va.scrollHeight;d=gc(m);var p=
new Xa(d,Q[a]);p.drawFace(c);Qa("chat");g&&e&&setTimeout(function(){return p[g](e)},300)},d)}function qa(a,b,c){var d=[],g=$jscomp.makeIterator(n[a].gc());r1=g.next().value;c1=g.next().value;a:{g=[x[0][0],x[0][1]];var e=[];for(var h=0;2>h;h++){if(n[g[h]].isDead()){e=g[1-h];break a}e[h]=H[g[h]].charCodeAt(0)-na[g[h]].charCodeAt(0)}e=e[0]>e[1]?g[0]:e[0]<e[1]?g[1]:n[g[0]].gd()>n[g[1]].gd()?g[0]:g[1]}var l=0;g=2;b&&(l=b,g=b+1);if(!1===n[a].canKill)for(b=$jscomp.makeIterator(B[C[a]]),
goalR=b.next().value,goalC=b.next().value,b=Ra(a,goalR,goalC),h=b.length;l<g;l++){var f=c?c:F[l];d.push({plNo:-1,diceNo:l,myPath:b.substr(0,f),grade:1});var m=d.length-1,k=f-h;if(0<k){f=a;var p=goalR,r=goalC,q=l,t=k;k=n[f].canKill;var v=C[f],w=$jscomp.makeIterator(n[f].gc()),y=w.next().value;w=w.next().value;C[f]===da[f]?n[f].canKill=!0:C[f]=String.fromCharCode(C[f].charCodeAt(0)+1);n[f].setCoords(p,r);p=qa(f,q,t);n[f].canKill=k;C[f]=v;n[f].setCoords(y,w);f=p;m=d[m].myPath;d.pop();for(p=0;p<
f.length;p++)d.push({plNo:f[p].plNo,diceNo:l,myPath:m+f[p].myPath,grade:0>f[p].plNo?5:e==f[p].plNo?7:6}),C[a]==da[a]&&(d[d.length-1].grade+=3)}else if(f==h)d[m].grade=C[a]==da[a]?8:5;else{m=d[m];f=$jscomp.makeIterator(n[a].gc());r1=f.next().value;c1=f.next().value;f=m.myPath.length;M=[];wa("",r1,c1,f,!0);p=[];r=1<f?G(2,1):1;for(q=0;q<M.length;q++)m.myPath.substr(0,f-r)==M[q].myPath.substr(0,f-r)&&5<n[M[q].plNo].gd()&&p.push(M[q]);m=p;for(f=0;f<m.length;f++)d.push({plNo:m[f].plNo,diceNo:l,
myPath:m[f].myPath,grade:e==m[f].plNo?3:2})}}else{for(b=l;b<g;b++){h=c?c:F[b];M=[];wa("",r1,c1,h,!0);for(h=0;h<M.length;h++)M[h].diceNo=b;d=d.concat(M);for(h=0;h<d.length;h++)d[h].grade=e==d[h].plNo?10:9}if(0==d.length)for(c=$jscomp.makeIterator(n[e].gc()),goalR=c.next().value,goalC=c.next().value,a=Ra(a,goalR,goalC),c=l;c<g;c++)d.push({plNo:-1,diceNo:c,myPath:a.substr(0,dice),grade:1})}return d}function Ra(a,b,c){a=$jscomp.makeIterator(n[a].gc());r1=a.next().value;c1=a.next().value;
R="";xa("",r1,c1,[],b,c);return R}function xa(a,b,c,d,g,e){for(var h="",l=["U","R","L","D"],f=0;4>f;f++)0<=D[b][c].indexOf(l[f])&&(h+=l[f]);for(l=0;l<h.length;l++){var m=h.substr(l,1);f=b;var k=c;"U"==m&&f--;"D"==m&&f++;"L"==m&&k--;"R"==m&&k++;if(!d[100*f+k]){d[100*f+k]=!0;m=a+m;if(f==g&&k==e){if(""==R||R.length>m.length)R=m}else xa(m,f,k,d,g,e);d[100*f+k]=!1}}}function fa(a,b,c){for(var d=a[0].grade,g=0,e=1;e<a.length;e++)!(d<a[e].grade||d==a[e].grade&&a[g].myPath.length>a[e].myPath.length)||void 0===
b&&a[e].diceNo!=b||void 0==c&&a[e].plNo!=c||(d=a[e].grade,g=e);return a[g]}function Ka(a){for(var b={},c=0;c<F[J];b={c:b.c},c++)b.c=a.substr(c,1),aa[c]=setTimeout(function(a){return function(){return Ha(a.c)}}(b),1E3*c)}function wa(a,b,c,d,g){for(var e="",h=["U","R","L","D"],l=0;4>l;l++)0<=D[b][c].indexOf(h[l])&&(e+=h[l]);for(h=0;h<e.length;h++){var f=e.substr(h,1);l=a+f;var m=b,k=c;"U"==f&&m--;"D"==f&&m++;"L"==f&&k--;"R"==f&&k++;f=d-1;0==f?!0===g?Ja([m,k],!1)&&M.push({plNo:I[0],myPath:l}):M.push(l):
wa(l,m,k,f,g)}}function Ea(a,b,c,d){R="";xa("",a,b,[],c,d);return R.length}function Ta(){B={};for(var a=0;6>a;a++){v[a]=[];for(var b=0;12>b;b++)v[a][b]=""}H=[,"W","X","Y","Z"];for(a=1;4>=a;a++)v[0][0]="X";v[5][0]="W";v[0][11]="Y";v[5][11]="Z";B.X=[0,0];B.W=[5,0];B.Y=[0,11];B.Z=[5,11];a=[];b=[,[],[],[],[]];for(var c=[,[],[],[],[]],d=0,g=0;3>g;g++){var e=[1,2,3,4];sa(e);for(var h=0;4>h;h++){var l=e[h],f=$jscomp.makeIterator(0==g?B[H[l]]:B[a[l]]);r1=f.next().value;c1=f.next().value;a[l]=0==g?na[l]:String.fromCharCode(a[l].charCodeAt(0)+
1);b[l]=[];for(f=0;6>f;f++)for(var k=0;12>k;k++)if(""==v[f][k]){var n=Ea(r1,c1,f,k);11<=n&&13>=n&&b[l].push([f,k])}}l=!1;for(h=0;4>h;h++)if(0==b[e[h]].length&&(d++,l=!0,g--,5<d))return!1;if(!l){h=[];for(f=0;4>f;f++){k=e[f];l=!0;sa(b[k]);for(n=0;n<b[k].length;n++){var p=$jscomp.makeIterator(b[k][n]);rM=p.next().value;cM=p.next().value;""==v[rM][cM]&&0>h.indexOf(100*rM+cM)&&(c[k].push(b[k][n]),n=b[k].length,l=!1,h[k]=100*rM+cM)}if(l&&(console.log("FAILED"),d++,g--,f=4,5<d))return!1}if(!l)for(e=1;5>
e;e++)l=h[e]%100,f=parseInt(h[e]/100),v[f][l]=a[e],B[a[e]]=[f,l]}}return!0}function Qa(a){ya&&("chat"==a&&Y.play(188,"sine",.4),"elec"==a&&(setTimeout(function(){Y.play(83.07,"sawtooth",.3)},100),setTimeout(function(){Y.play(44.01,"sawtooth",.3)},175),setTimeout(function(){Y.play(62.23,"sawtooth",.3)},125),setTimeout(function(){Y.play(55.44,"sawtooth",.3)},150)))}for(var G=function(a,b){return b?Math.floor(Math.random()*a)+b:Math.floor(Math.random()*a)},n=[],x=[[1,2],[3,4]],z=0,w=0,E=-1,T=0,U=!0,
Za=0,ta=!1,D=[],v=[],B={},na=[,"A","E","1","5"],C=[,"A","E","1","5"],H=[,"W","X","Y","Z"],da=[,"C","C","3","3"],A="X.......2....|..5.....Y ---|--|---|- ..A|7............|....E |----|---|-- ....................B.. |----|-|--|- .....|F....|........... -|---|-|---- 3...........6|......... -|---|-|---- W.....C|1.........G...Z".split(" "),Q=["Black","Aqua","Blue","Coral","Red"],pa=$("#movesleft"),va=$("#cn"),oa=$("#gi"),Y=new function(a){var b,c;this.play=function(d,g,e){b=a.createOscillator();
c=a.createGain();b.connect(c);c.connect(a.destination);b.type=g;g=a.currentTime;b.frequency.value=d;c.gain.setValueAtTime(1,g);b.start(g);c.gain.exponentialRampToValueAtTime(.001,g+e);b.stop(g+e)}}(new (window.AudioContext||window.webkitAudioContext)),ya=!0,Ga=0,aa=[],Ba=!0,M=[],R="",t=gc($("#cnvMap")),S=gc($("#cnvNet")),ja=gc($("#cnvEl")),Va=gc($("#bckNight")),ra=$("#cnvDice"),q=gc(ra),O="R L U D E G NET I RA S".split(" "),p={},la=0;la<O.length;la++)p[O[la]]=gc($("#b"+O[la]));Oa();(function(){for(var a=
0;4>a;a++){var b=O[a];p[b].beginPath();p[b].fillStyle="Gainsboro";p[b].fillRect(2,2,38,38);p[b].fill();2>a?X(p[b],40/6,20,200/6,20,2):X(p[b],20,40/6,20,200/6,2);Na(p[b],1,1,39,39,2)}for(a=0;2>a;a++){b=O[a];var c=1==a?40/6:200/6;r(p[b],c,20,20,10);r(p[b],c,20,20,30)}for(a=2;4>a;a++)b=O[a],c=2==a?40/6:200/6,r(p[b],20,c,10,20),r(p[b],20,c,30,20);for(a=4;a<O.length;a++)b=O[a],p[b].beginPath(),p[b].fillStyle="Gainsboro",p[b].fillRect(2,2,122,28),p[b].fill(),Na(p[b],1,1,124,27,2);p.G.strokeText("NEW GAME",
34,20);p.NET.strokeText("NET on/off",37,20);p.S.strokeText("SOUND on/off",27,20);p.E.strokeText("PICK player",37,20);p.I.strokeText("INSTRUCTIONS",23,20);p.RA.strokeText("Enemy:",5,10);for(a=0;a<O.length;a++)p[O[a]].stroke();Pa()})();(function(){for(var a=convs.rules[0],b="",c=0;c<a.length-1;c++)txt=$jscomp.makeIterator(ua(a[c])).next().value,b+=txt+"<br /><br />";$("#instructions").innerHTML=b})();(function(){for(var a in convs)convs[a].counter=0,sa(convs[a]);setTimeout(function(){return L("helloConv")},
2E3)})();(function(){for(var a=0;6>a;a++){D[a]=[];for(var b=0;12>b;b++)D[a][b]=""}for(a=0;a<A.length;a++)if(0==a%2)for(b=0;b<A[a].length;b+=2)"."==A[a].substr(b+1,1)&&(D[a/2][b/2]+="R",D[a/2][b/2+1]+="L");else for(b=0;b<A[a].length;b++)"|"==A[a].substr(b,1)&&(D[(a-1)/2][b]+="D",D[(a-1)/2+1][b]+="U");Aa();k()})();var Sa=!1,za="",I=[],V=0,W=0,F=[0,0],J;return{newGame:y,toggleNet:function(){if(Sa=!Sa){S.beginPath();S.clearRect(0,0,600,600);S.strokeStyle="#aaa";for(var a=5,b=0;12>=b;b++)r(S,a,5,a,305),
a+=50;a=5;for(b=0;6>=b;b++)r(S,5,a,605,a),a+=50;S.stroke()}else S.clearRect(0,0,600,600)},toggleEnemy:function(){if(U||0!=confirm("You can change opponent only if you finish the game or resign. Do you want to resign?"))T=1-T,Pa(),E=-1,U=!0},buttonInput:function(a){N(a)},keyboardInput:function(a){var b=String.fromCharCode(a);za+=b;0<=za.toUpperCase().indexOf("YES")&&(za="",L("rf"));N(13==a||32==a?"E":37==a?"L":38==a?"U":39==a?"R":40==a?"D":"")},drawBckg:Oa,toggleSound:function(){ya=!ya}}}
var convs={smile:["-rhe","-rhi","-rho","-rha"],makeFun:["You dont have to play, realy, you already 'won', -qsmile","Really.. dont offend, we are just joking a little bit, but you give us so much inspiration, -qsmile","Are you stupid or something?","This electricity is sooo bright. Brighter then you, -qsmile","I guess who's not going to win this game, -qsmile"],helloConv:["-p1 -qhello;-p3 -qhello;-p4 -qhello;-p2 -qhello;-p1 Welcome to the game 'Wired'. Btw. we can talk to you but you can NOT talk to us. Do you understand?;-t4 -p1 Type YES if you do.".split(";")],
hello:["Hi","Hello","Bonjour","Yo!"],rules:["This is a turn by turn game. Your goal is to pick up all coins of your color in right order, which will get you an electroshocker, and kill your enemies. There are two teams, blue and red, and 2 players in each team. Yours is blue. In every turn you got two dices thrown, you move both players, and you can choose what player will play what dice.;-t22 When you finish moves for one of the players, if some enemy player is on the same line (vertical or horizontal), you will electrify him, and he will go back to the field where he picked up his last coin. if he did not collect any coin, he will return to his 'Start' field.;-t22 If you already complete all coins, you now have an electroshocker, then you will kill that enemy, and when you kill both of them, you are the winner.;-t20 If both enemy players can be electrified after your move, only the closer one will got hit. Which means, that you too can use one player for protection, and the other one to chase all coins;-t20 Also, you can use keyboard - spaceor enter to pick a player and arrows to move.;-t6 Now click 'New Game', then pick a pleyer, and move him.".split(";")],
rf:[["-p1 He actually typed YES. -rhe","-p4 -f1 -asmileShake -qsmile","-p3 -f1 Are you stupid or something?","-p2 OK, OK, OK, Remember you can NOT talk to us. Let us tell you the rules now..."]],tactics:["-p2 Tell him about tactics.;-p1 -t3 Yeah, there are 3 types of tactics: 1.you can CHASE ELECTROSHOCKER with both of your players.;-p1 -t7 2.you can join them and put the one as a PROTECTION to your main player.;-p1 -t10 3.you can send one player just to ATTACK the enemy, and other to chase an electroshocker.;-p3 -t10 Hey, i have a BETTER IDEA! Why dont you use one player to chase an electroshocker, but the other for ATTACK AND PROTECTION! Ha??;-p2 -t10 I have an idea too! Why dont you use your other player to ATTACK AND CHASE an electroshocker!;-p3 -t4 -f2 That's BRILLIANT!;-p4 -t10 UOOOOU!! I just got the best idea EVER!;-p1 -t2 What?;-p3 -t1 What?;-p2 -t1 What?;-p4 -t7 I forgot. -ablinkTwice -f2;-p2 -t2 -f3 -ablinkTwice".split(";")],
st:["Let me tell you a little about our God, THE DICER.;-p1 -t5 He is the one that put the numbers on our dices, and the only one who have enough wisdom to do it right. ;-p1 -t11 You may think that you get the random numbers on the dice, but actually He plans ahead what number will show you.;-p4 -f2 -t5 -ablinkTwice;-p1 -t5 With the provided number, you just move us around.;-p1 -t12 So now you think that you have a freedom to choose, and He wants you to feel that way...;-p1 -t12 and now you think that you are the one in charge of everything...;-p4 -t5 -f1 IN CHARGE, hehe, Get it?!;-p3 -f1 -asmileShake -qsmile;-t2 -p1 -f2 Why do you have to ruin every story i say... oooohh.".split(";"),
"-p3 Do you know the rule for boring games?;-p2 -t4 No.;-p4 No.;-p3 So this is for you my human friend: 'There are no boring games, just boring players!';-p4 -f1 -asmileShake -qsmile;-p2 -f1 -asmileShake -qmakeFun".split(";"),"-p1 Did you know, that when you are on the field where you took your last coin, electricity can NOT hurt you. ;-t4 Really?;-t2 -p1 Yea. You are, like, not on the wire line. Like you are OFFLINE.;-p1 -t3 OFFLINE. Get it?!;-p1 -ablinkTwice;-p1 -t3 No you don't.;-p3 This is a lame joke, dude.;-p4 Yeah, really dude.;-p2 I think that, his wife make him say it;-p3 -f1 -asmileShake -qsmile;-p4 -f1 -asmileShake -qsmile".split(";")],
oo:[["Out of memory","Out of mem,&y","..t o. m&,..","..."]],wakeUp:["-rA This was a good nap...;-p1 -t5 Wake up guys!;-t5 -p4 I'm up...but still sleepy;-p2 -t10 -qhello , what's up?;-t5 I see some guy playing.;Oh.;-t5 Wow, Who knows how long he plays this game.;-t5 You are right, Helloooo, are you lost?;Maybe he is stuck in this one game for days...;-t5 He is like a lost soul maybe...;Hey guy, do you need help?;Maybe we should tell him the rules again?;Yeah, we probably should...".split(";")],
newGame:[["New Game! Great!"]],winGame:[["-p1 -f1 -asmileShake WHOHOOO, WE WIN!","-p2 -f1 -asmileShake YEEAAAAAAAAAAA!!","-p4 Congratulations!","-p3 Great job dude!"],["-p1 -f1 -asmileShake Great job man!","-p2 -f1 -asmileShake YEEAAAAAAAAAAA!!","-p3 You are not as stupid, as you look...","-p4 GG","-p3 Play another if you're not afraid of losing."],["-p1 -f1 -asmileShake TATARARATATATA!","-p2 -f1 -asmileShake WOOOOOOOOO!!","-p3 -f2 My vocabulary is very short, but i think some f word, or something.",
"-p4 -f2 BLURP"],["-p1 -f1 -asmileShake Excelent game!","-p2 -f1 -asmileShake You are AWESOME!!","-p3 Dont be so full of yourself, we only have like 2kb of logic.","-p4 He is right you know!","-p3 -t1 -f2 -ablinkTwice"]],lg:[["Do you know that Guns'n'roses song: ","Dont you cryyyyy tonight, i still love you baby...","-f1 -asmileShake -qmakeFun","-f1 -qsmile"],["Wow, you lost on level easy..","I guess that cant be done by anyone..","-f1 -asmileShake -qmakeFun","-csmile"],["Good game dude!","Now find some electricity and do what every loser needs to do with it.",
"-f1 -asmileShake -qmakeFun","-csmile"],["Don't worry, this game is not about winning.","Yeah, its about LOSING!","-f1 -asmileShake -qmakeFun","-csmile"]],meElectr:[["-f2 Hey, I have an idea. Why dont you go to the wall in your room... and put your fingers in two small holes in the wall, then you can say that you 'can feel our pain'."],["-f2 Thanks for this man, are you stupid or something?"],["-f2 This electricity is sooo bright. Brighter then you are."],["-f2 I guess who's not going to win this game"],
["-f2 Thanks, i saw the light... aaaaaah"],["-f2 Why do you want to hurt me, what did i do to you??"],["-f2 O Dicer, save me from this man!"]]},game=new Game;window.onresize=game.drawBckg;</script></html>