Advertisement
Guest User

Halp?

a guest
Apr 16th, 2014
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. .J2048
  2. Fix 5
  3. //The following two lines implement a predetermined test board. Tweak or abolish this as necessary.
  4. Data(0,0,0,0,0,1,1,2,6,5,4,3,7,8,9,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)->GDB1
  5. Copy(GDB1,L1,32)
  6. DRAW()
  7. While 1
  8. If getKey->K?<5
  9. If K=2
  10. LEFT()
  11. End
  12. //More slides will come once the LEFT is done.
  13. Copy(L1+16,L1,16)
  14. Fill(L1,16,16,0)
  15. End
  16. DRAW()
  17. EndIf getKey(15)
  18. Fix 4
  19. Return
  20.  
  21. Lbl LEFT
  22. 0->r1
  23. For(4)
  24. {r1+L1}->{r1+16+L1}
  25. 1->r2
  26. For(3)
  27. If {r1+r2+L1}
  28. ALEFT()
  29. End
  30. r2++
  31. End
  32. r1+4->r1
  33. End
  34. Return
  35. Lbl ALEFT
  36. 0->r3
  37. Repeat {r1+r2-r3+16+L1}??r3=r2
  38. r3++
  39. End
  40. If {r1+r2+L1}={r1+r2-r3+16+L1}
  41. {r1+r2-r3+16+L1}++
  42. 0->{r1+r2+L1}
  43.  
  44. //I know something is to be added here. What that is, I need your help to find out.
  45.  
  46. Return
  47. ElseIf {r1+r2-r3+16+L1}=0
  48. {r1+r2+L1}->{r1+r2-r3+16+L1}
  49. Return
  50. End
  51. {r1+r2+L1}->{r1+r2-r3+17+L1}
  52. Return
  53. Lbl DRAW
  54. ClrDraw
  55. 0->r1
  56. For(4)
  57. and 0->r2
  58. For(4)
  59. If {r1/16*4+(r2/19)+L1}->r3
  60. Text(r3<10+(r3<7)+(r3<4)*2+r2+2,r1+4,e^(r3)>Dec)
  61. End
  62. RectI(r2,r1,19,16)
  63. RectI(r2+1,r1+1,17,14)
  64. r2+19->r2
  65. End
  66. r1+16->r1
  67. End
  68. DispGraph
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement