Advertisement
Weregoose

Black Mamba

Nov 29th, 2011
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. PROGRAM:BMAMBA
  2. :FnOff
  3. :ClrHome
  4. :ClrDraw
  5. :GridOff
  6. :AxesOff
  7. :PlotsOff
  8. :ZStandard
  9. :84→Xmin
  10. :-72→Ymin
  11. :ZInteger
  12. :30→nMin:30→PV
  13. :46→nMax:44→FV
  14. :26→I%
  15. :Horizontal 0
  16. :Vertical 0
  17. :Vertical 94
  18. :Horizontal Ymin
  19. :Pxl-On(30,45
  20. :For(n,0,E9
  21. :2randInt(1,30→P/Y
  22. :2randInt(1,46→C/Y
  23. :0
  24. :Repeat pxl-Test(nMin,nMax
  25. :If Ans
  26. :Then
  27. :PV+2(pxl-Test(PV+1,FV)-pxl-Test(PV-1,FV→PMT
  28. :FV+2(pxl-Test(PV,FV+1)-pxl-Test(PV,FV-1
  29. :Pt-Off(FV,-PV,3
  30. :Ans→FV
  31. :PMT→PV
  32. :End
  33. :getKey
  34. :If Ans
  35. :Ans→I%
  36. :(I%=34)-(I%=25→PMT
  37. :(I%=26)-(I%=24
  38. :Pxl-On(nMin+PMT,nMax+Ans
  39. :Pxl-On(nMin,nMax
  40. :Pxl-On(P/Y,C/Y
  41. :nMax+2Ans→nMax
  42. :nMin+2PMT→nMin
  43. :End
  44. :If nMin=P/Y and nMax=C/Y
  45. :End
  46. :Disp "Score:
  47. :Output(1,7,n
  48.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement