f=g=h=m=l=d=j=k=0;r='length';w='width';s='height';ff='font';fs='fillStyle';tb='textBaseline';t=[0,0];mr=Math.random;dH=function(x,y,o){o=o||'red';a[fs]=o;a[ff]='99px Arial';a[tb]='top';a.fillText('♥',x,y)};dT=function(){a.clearRect(0,0,c[w],c[s]);a[fs]='#00f';a[ff]='bold 16px Arial';a[tb]='top';a.fillText('H'+t[0]+'C'+t[1]+' '+l+'♥ ',0,0)};dS=function(){dT();a.fillText('GO!',80,0);y=n=0;for(i=1;i<=h;i++){x=(++n)*55;f?dH(x,y)+(d[i]=i):((i in d)?dH(x,y):dH(x,y,'#fff'));if(n==11){n=0;y+=70}}f=0};p=function(){f=g=1;m=k=0;d={};l=0|(mr()*9+2);v=l+2;h=j=0|mr()*(67-v)+v;dS()};onclick=function(e){if(k){p()}else{y=e.offsetY;if(y<40){q()}else{cl=(0|((e.offsetX-60)/55)+11*(0|((y-40)/70)))+1;if(cl in d){delete(d[cl]);dS();m++;j--}if(!j){+t[0]++;dT();z()}else if(m>=l)q()}}};q=function(){if(!g&&!m){return}m=g=0;u=j%(l+1)||0|(mr()*l)+1;for(e=0;e<u;e++){for(n in d){if(d.hasOwnProperty(n)){delete(d[n]);dS();j--}break}}if(!j){+t[1]++;dT();z()}};z=function(){a.fillText('⟲',80,0);k=1};c[w]=innerWidth;c[s]=innerHeight;p();
Zj1nPWg9bT1sPWQ9aj1rPTA7cj0nbGVuZ3RoJzt3PSd3aWR0aCc7cz0naGVpZ2h0JztmZj0nZm9udCc7ZnM9J2ZpbGxTdHlsZSc7dGI9J3RleHRCYXNlbGluZSc7dD1bMCwwXTttcj1NYXRoLnJhbmRvbTtkSD1mdW5jdGlvbih4LHksbyl7bz1vfHwncmVkJzthW2ZzXT1vO2FbZmZdPSc5OXB4IEFyaWFsJzthW3RiXT0ndG9wJzthLmZpbGxUZXh0KCfimaUnLHgseSl9O2RUPWZ1bmN0aW9uKCl7YS5jbGVhclJlY3QoMCwwLGNbd10sY1tzXSk7YVtm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