Advertisement
Mysoft

Untitled

Nov 25th, 2024
20
0
15 hours
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var x=0,p=0,r=0,s="",m=s:do:
  2. if instr(m,"!")=0then read x,p,m:r=p:s=m:if m=""then end
  3. cls:?m:locate 1+p\x,1+p mod x,0:?"@
  4. dim as byte k(7)={-1,1,0,0,0,0,x,-x}:
  5. var i=k(7and((getkey-97)\3)),n=p+i,c=@m[n],d=@m[n+i]
  6. if i then:select case*c\9:case 3:p=n:case 8,4
  7. if*d=32then*d=*c:*c=32:p=n
  8. if*d=33then*c=*d+(*c=79):*d=43:p=n
  9. end select:else p=r:m=s:endif:loop
  10. data 10,71,!" XXXXX   \n X   XXXX\n X   X  X\n XX    !X\n" _
  11. "XXX XXX!X\nX O X X!X\nX OOX XXX\nX   X    \nXXXXX    \n", _
  12. 11,29,!"  XXXXXXX \n  X     X \n  X O   X \nXXXXX X X \n" _
  13. "X O     X \nX  XOXX XX\nX!!O  X  X\nX!!      X\nXXXXXXXXXX\n",0,0,"
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement