Little game made in 560 characters of javascript.

Discover the rules as you go

j=[];u=o=>{(b=$('body')).html((e='<button onclick="')+'m(0)">⟲'+e+'j[0]?u(a=j.pop()):0">⤺');a.map((r,x)=>{b.append('<br>');r.map((c,y)=>b.append(e+(c!='x'?`j.push(a.map(o=>[...o]));(q=a[x=${x}])[y=${y}]!='>'?(n=1,a.map((r,w)=>r.map((c,z)=>{if((o=w-x)*o+(o=y-z)*o==c*c)q[y]-=-c;n&=c!=0}))):(q[y]=q[y+1]|0,a[x][y+1]='>');u(n?(j=[],m(1)):0)">`+c:'">_')))})};m=o=>{n=0;u(a=l[i+=o].split`k`.map(a=>a.split``))};l=(btoa("ÓMdÒM4ÓItÇI1ÇY4—LqÇqÒI4ÇMdÓt”I4ÇYu“Lt“IDÓM6M4ÓyuÓI$ÇM$ÓIDÖI4ÒQӉtÇI1ÇI1ÇI4ÓY1Ç%Ómė8’I1Çy$’M%")+'ÜkWIN!').replace(/E/g,'>').split`l`;m(i=0)

You can also play it on https://jsfiddle.net/jacklance/t0vupbf3/1/ or paste it into the console on any page with a body 

StatusReleased
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(7 total ratings)
AuthorJackLance

Comments

Log in with itch.io to leave a comment.

(+2)

Impressive.  Reminds me of the IOCCC.  Not sure what the logic is behind how the third puzzle combines the two numbers, but I did somehow stumble upon the solution...

BTW the undo feature sometimes seems to take two clicks per action to actually undo, but not always...maybe that's part of one of the puzzles?