Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.34 KB | None | 0 0
  1. const skipGame1 = 3
  2. const skipGame2 = 3
  3. const skipGame3 = 3
  4. const skipGame4 = 3
  5. const skipGame5 = 3
  6. const skipGame6 = 3
  7. const skipGame7 = 0
  8.  
  9. const base = 10
  10. const maxBet = 7
  11. const maxWin = 5
  12. const maxBetStop = 1
  13. const maxwinstop = 1
  14. const multiple = 2
  15. const uprate = 2
  16. const lgreenstop = 1
  17. const seed = 1
  18.  
  19. let Bet1 = false
  20. let currentBet = base
  21. let winCount = 0
  22. let lossStreak = 0
  23. let history = new Array(0)
  24. let forlog
  25. let skipCount = 0
  26. let stopping = false
  27.  
  28. while (true) {
  29. if (stopping) {
  30. if (skipCount++ % 2 == 0) {
  31. const {multiplier} = await this.bet(100,1.01)
  32. if (multiplier >= 2) {
  33. this.stop()
  34. }
  35. } else {
  36. const {multiplier} = await this.skip()
  37. if (multiplier >= 2) {
  38. this.stop()
  39. }
  40. }
  41. continue
  42. }
  43. if (Bet1) {
  44. const {multiplier} = await this.bet(Math.round(currentBet) * 100, multiple)
  45. if (multiplier < multiple) {
  46. lossStreak++
  47. currentBet *= uprate
  48. if (lossStreak >= maxBet) {
  49. if (maxBetStop) {
  50. if (lgreenstop) {
  51. stopping = true
  52. } else {
  53. this.stop()
  54. }
  55. } else {
  56. winCount = 0
  57. lossStreak = 0
  58. currentBet = base
  59. Bet1 = false
  60. history = new Array(0)
  61. }
  62. }
  63. } else {
  64. winCount++
  65. currentBet = base
  66. lossStreak = 0
  67. if (winCount >= maxWin) {
  68. if (maxwinstop) {
  69. if (lgreenstop) {
  70. stopping = true
  71. } else {
  72. this.stop()
  73. }
  74. } else {
  75. winCount = 0
  76. Bet1 = false
  77. history = new Array(0)
  78. }
  79. }
  80. }
  81. } else {
  82. let conditions = new Array(7)
  83. let rear = 0
  84. let redStreak = 0
  85. if (skipGame1 <= 0) {
  86. conditions[0] = true
  87. } else {
  88. conditions[0] = false
  89. rear++
  90. }
  91. if (skipGame2 <= 0) {
  92. conditions[1] = true
  93. } else {
  94. conditions[1] = false
  95. rear++
  96. }
  97. if (skipGame3 <= 0) {
  98. conditions[2] = true
  99. } else {
  100. conditions[2] = false
  101. rear++
  102. }
  103. if (skipGame4 <= 0) {
  104. conditions[3] = true
  105. } else {
  106. conditions[3] = false
  107. rear++
  108. }
  109. if (skipGame5 <= 0) {
  110. conditions[4] = true
  111. } else {
  112. conditions[4] = false
  113. rear++
  114. }
  115. if (skipGame6 <= 0) {
  116. conditions[5] = true
  117. } else {
  118. conditions[5] = false
  119. rear++
  120. }
  121. if (skipGame7 <= 0) {
  122. conditions[6] = true
  123. } else {
  124. conditions[6] = false
  125. rear++
  126. }
  127. let bswitch = true
  128. forlog = new Array(rear)
  129. let sr = 0
  130. for (let i = 0; i < history.length; i++) {
  131. if (bswitch) {
  132. if (history[i] < 2) {
  133. forlog[rear]++
  134. if (i==0) {
  135. break
  136. }
  137. } else {
  138. if (rear==0) {
  139. break
  140. }
  141. bswitch = false
  142. }
  143. } else {
  144. if (history[i] < 2) {
  145. sr++
  146. if (rear == 1) {
  147. if (sr >= skipGame1) {
  148. rear--
  149. forlog[rear] = sr
  150. conditions[rear] = true
  151. sr = 0
  152. bswitch = true
  153. }
  154. } else if (rear == 2) {
  155. if (sr >= skipGame2) {
  156. rear--
  157. forlog[rear] = sr
  158. conditions[rear] = true
  159. sr = 0
  160. bswitch = true
  161. }
  162. } else if (rear == 3) {
  163. if (sr >= skipGame3) {
  164. rear--
  165. forlog[rear] = sr
  166. conditions[rear] = true
  167. sr = 0
  168. bswitch = true
  169. }
  170. } else if (rear == 4) {
  171. if (sr >= skipGame4) {
  172. rear--
  173. forlog[rear] = sr
  174. conditions[rear] = true
  175. sr = 0
  176. bswitch = true
  177. }
  178. } else if (rear == 5) {
  179. if (sr >= skipGame5) {
  180. rear--
  181. forlog[rear] = sr
  182. conditions[rear] = true
  183. sr = 0
  184. bswitch = true
  185. }
  186. } else if (rear == 6) {
  187. if (sr >= skipGame6) {
  188. rear--
  189. forlog[rear] = sr
  190. conditions[rear] = true
  191. sr = 0
  192. bswitch = true
  193. }
  194. } else if (rear == 7) {
  195. if (sr >= skipGame7) {
  196. rear--
  197. forlog[rear] = sr
  198. conditions[rear] = true
  199. sr = 0
  200. bswitch = true
  201. }
  202. }
  203. } else {
  204. break
  205. }
  206. }
  207. }
  208. let condition = true
  209. for (let i = 0; i < conditions.length; i++) {
  210. if (!conditions[i]) {
  211. condition = false
  212. break
  213. }
  214. }
  215. if (condition) {
  216. this.log(`${forlog.join(" ")}`)
  217. Bet1 = true
  218. continue
  219. }
  220. if (skipCount++ % 2 == 0) {
  221. const {multiplier} = await this.bet(100,1.01)
  222. history.unshift(multiplier)
  223. } else {
  224. const {multiplier} = await this.skip()
  225. history.unshift(multiplier)
  226. }
  227. }
  228. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement