Advertisement
thewindmage420

Untitled

May 12th, 2025
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. ClrHome
  2. For(F,1,40)
  3. For(G,1,40)
  4. 0→[J](F,G)
  5. End
  6. End
  7. 12→N
  8. seq(0,I,1,N)→L₁
  9. seq(0,I,1,N)→L₂
  10. seq(0,I,1,N)→L₃
  11. seq(0,I,1,N)→L₄
  12. " .#"→Str1
  13.  
  14. For(R,1,N)
  15. Lbl A
  16. randInt(4,8)→A
  17. randInt(4,8)→B
  18. randInt(2,40-A-1)→C
  19. randInt(2,40-B-1)→D
  20. 0→E
  21. For(S,D-1,D+B)
  22. For(T,C-1,C+A)
  23. If S≥1 and S≤40 and T≥1 and T≤40 and [J](S,T)≠0:1→E
  24. End
  25. End
  26. If E=1:Goto A
  27. C+int(A/2)→L₃(R)
  28. D+int(B/2)→L₄(R)
  29. For(S,D,D+B-1)
  30. For(T,C,C+A-1)
  31. 1→[J](S,T)
  32. End
  33. End
  34. End
  35.  
  36.  
  37. For(R,2,N)
  38. L₃(R-1)→E
  39. L₄(R-1)→F
  40. L₃(R)→G
  41. L₄(R)→H
  42. randInt(0,1)→Z
  43. If Z=0
  44. Then
  45. For(W,min(E,G),max(E,G))
  46. 2→[J](F,W)
  47. End
  48. For(W,min(F,H),max(F,H))
  49. 2→[J](W,G)
  50. End
  51. End
  52. If Z=1
  53. Then
  54. For(W,min(F,H),max(F,H))
  55. 2→[J](W,E)
  56. End
  57. For(W,min(E,G),max(E,G))
  58. 2→[J](H,W)
  59. End
  60. End
  61. End
  62.  
  63. L₃(1)→O
  64. L₄(1)→M
  65.  
  66. Lbl B
  67. O>8:O-7→U
  68. If O≤8:1→U
  69. If U>25:25→U
  70. M>4:M-3→V
  71. If M≤4:1→V
  72. If V>33:33→V
  73.  
  74. ClrDraw
  75. AxesOff
  76. DispGraph
  77. For(F,V,V+7)
  78. For(G,U,U+15)
  79. If F≥1 and F≤40 and G≥1 and G≤40
  80. Then
  81. If F=M and G=O
  82. Then
  83. Text((F-V)*8,(G-U)*6,"@")
  84. Else
  85. [J](F,G)→C
  86. Text((F-V)*8,(G-U)*6,sub(Str1,1+C,1))
  87. End
  88. End
  89. End
  90. End
  91.  
  92. Repeat K
  93. getKey→K
  94. End
  95.  
  96. If K=24 and O>1 and [J](M,O-1)≠0:O-1→O
  97. If K=26 and O<40 and [J](M,O+1)≠0:O+1→O
  98. If K=25 and M>1 and [J](M-1,O)≠0:M-1→M
  99. If K=34 and M<40 and [J](M+1,O)≠0:M+1→M
  100.  
  101. Goto B
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement