X=['5px Ariel',(f='fill')+'Text',f+'Rect',f+'Style'];v=a.canvas,w=v.width=v.height=400;M=Math,p=x=y=s=f=J=0,S=25,d=1,T=45;W=Array(S);L=W.length;for(i=0;i<L;i++){W[i]=Array(R(w),R(w));}c.onclick=function(j){!x&&(s=f=0,Y());A=(j.clientX-c.offsetLeft);B=(j.clientY-c.offsetTop);A>=x&&(A<x+S&&B>y&&B<y+S&&(s+=1,Y()));};setInterval(I,T);function Y(){!p&&(x=R(w-S),y=R(w-S),J=0);}function I(){a[X[3]]="#000";a[X[2]](0,0,w,w);a[X[3]]="#fff";x&&((J+=T)>1500-(d*150)&&(++f>4&&(x=y=0,p=1,setTimeout(function(){p=0;},999)),x&&(Y())),a[X[2]](x-1,y-1,S+2,S+2),a.font=2+X[0],a[X[1]]("\u2739",x+3,y+7),a[X[3]]="#0F0",a[X[2]](x,y,S,S),a[X[3]]="#F00",a[X[1]]("\u2746",x+3,y+21));a.font=1+X[0];a[X[1]]('S: '+s+' / M: '+f+' / D: '+d,0,15);for(i=0;i<L;i++){V=W[i][0],H=W[i][1];W[i]=(V<0||H>w?Array(R(1,w),R(-99)):Array(R(V+2,V-2),R(H+3,H+3)));a[X[1]]("\u2744",W[i][0],W[i][1]);}}window.onkeypress=function(j){j=(j.keyCode||j.charCode)-48;(!x&&j>0&&j<6?d=j:0);};function R(t,f){return M.floor(M.random()*(t-(f=f||1))+f);}
WD1bJzVweCBBcmllbCcsKGY9J2ZpbGwnKSsnVGV4dCcsZisnUmVjdCcsZisnU3R5bGUnXTt2PWEuY2FudmFzLHc9di53aWR0aD12LmhlaWdodD00MDA7TT1NYXRoLHA9eD15PXM9Zj1KPTAsUz0yNSxkPTEsVD00NTtXPUFycmF5KFMpO0w9Vy5sZW5ndGg7Zm9yKGk9MDtpPEw7aSsrKXtXW2ldPUFycmF5KFIodyksUih3KSk7fWMub25jbGljaz1mdW5jdGlvbihqKXsheCYmKHM9Zj0wLFkoKSk7QT0oai5jbGllbnRYLWMub2Z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