Advertisement
Agentleader1

Slot Machine Game for TI-84 Graphing Calculator

Sep 24th, 2014
799
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. Slot Machine Program/Game for TI-84 Graphing Calculator created by Agentleader1
  2.  
  3. For download:
  4. https://drive.google.com/file/d/0B6snKcuexXqaeVdJd2M2VlRaQmc/edit?usp=sharing
  5. then open it with TI-Connect and import it onto your TI-84 calculator.
  6.  
  7. For editing:
  8. Go to http://bit.ly/ZdY0se
  9.  
  10. Source Code:
  11. **Just remember, I created the whole thing from scratch. I take full credit**
  12.  
  13. Update 1.0:
  14.  
  15. 100->M
  16. Lbl A
  17. ClrHome
  18. Output(1,1,"================")
  19. Output(4,3,"PRESS ENTER")
  20. Output(5,5,"TO PLAY")
  21. Output(8,1,"================")
  22. Pause
  23. ClrHome
  24. Output(1,2,"UP- HIGHER BET")
  25. Output(8,1,"DOWN - LOWER BET")
  26. Output(3,3,"ENTER- DONE")
  27. Output(6,3,"MODE- EXIT")
  28. Output(5,3,"MONEY:")
  29. Output(5,11,M)
  30. 0->B
  31. 0->K
  32. While K!=105
  33. getKey->K
  34. If K=34
  35. Then
  36. If B!=0
  37. B-1->B
  38. End
  39. If K=25
  40. Then
  41. If B!=M
  42. B+1->B
  43. End
  44. If K=22
  45. Then
  46. ClrHome
  47. Stop
  48. End
  49. Output(4,5,"BET:")
  50. Output(4,11,B)
  51. End
  52. ClrHome
  53. randInt(1,5)->D
  54. randInt(1,5)->E
  55. randInt(1,5)->F
  56. 0->X
  57. While X!=10
  58. Output(4,6,randInt(1,5))
  59. Output(4,9,randInt(1,5))
  60. Output(4,12,randInt(1,5))
  61. X+1->X
  62. End
  63. Output(4,6,D)
  64. 0->X
  65. While X!=10
  66. Output(4,9,randInt(1,5))
  67. Output(4,12,randInt(1,5))
  68. X+1->X
  69. End
  70. Output(4,9,E)
  71. 0->X
  72. While X!=10
  73. Output(4,12,randInt(1,5))
  74. X+1->X
  75. End
  76. Output(4,12,F)
  77. If D=E and E=F
  78. Then
  79. Output(5,5,"CONGRATS")
  80. Pause
  81. M+(B*2)->M
  82. Goto A
  83. Else
  84. Output(5,7,"LOSER")
  85. Pause
  86. M-B->M
  87. Goto A
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement