Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var i=0,x=0,p=0,r=0,s="",m=s,t=" XO!":do
- i=instr(m,"!"):if i=0then read x,p,s:m="":_
- while s[i]:r=s[i]-48:i+=1:m+=chr(t[3and r\16],_
- t[3and r\4],t[3and r])+iif(i mod x,"",!"\n"):_
- wend:r=p:s=m:x=x*3+1:if x=1then end
- cls:?m:locate 1+p\x,1+p mod x,0:?"@
- dim as byte k(7)={-1,1,0,0,0,0,x,-x}
- i=k(7and((getkey-97)\3)):var n=p+i,c=@m[n],d=@m[n+i]
- if i then:select case*c\9:case 3:p=n:case 8,4
- if*d=32then*d=*c:*c=32:p=n
- if*d=33then*c=*d+(*c=79):*d=43:p=n
- end select:else p=r:m=s:endif:loop
- data 3,71,"5E041E41150=E5MB4MBTE@40ED0",_
- 4,29,"1EE010101810EDA0B010@IA@OP@@O00@EEE@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement