tx · GyDRgGApCCt653B1kpgPZRzR9UkNprXHXgMw6Qb8DfJ7 3Mz7zzdQoHabgytXU3UuTAzADXPBBLgFqu8: -0.01400000 Waves 2019.12.31 19:51 [833521] smart account 3Mz7zzdQoHabgytXU3UuTAzADXPBBLgFqu8 > SELF 0.00000000 Waves
{ "type": 13, "id": "GyDRgGApCCt653B1kpgPZRzR9UkNprXHXgMw6Qb8DfJ7", "fee": 1400000, "feeAssetId": null, "timestamp": 1577811137595, "version": 1, "sender": "3Mz7zzdQoHabgytXU3UuTAzADXPBBLgFqu8", "senderPublicKey": "6uncmj7GmSzxFAGGX8NcToqPxTxWUHW7Aj1WSbMH2qXw", "proofs": [ "2aN5vkPhFx9yhzjuL9L34Eqa8N22R3a17KJRbS4vb7tnV7LhViQLuQUycTFWSXqTfc3fUZPPtYUxwENfLbg1ZLa6" ], "script": "base64:AAIDAAAAAAAAAA4IARIECgIBARIECgIIAgAAACAAAAAACVJTQVBVQkxJQwkAAlsAAAABAgAAAY9iYXNlNjQ6TUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFnNGRBUjZYYkJEQVM5aHIvRWozZEp2NkZmYzQ2NngvbU9HTVdVM2xyQUJzM3FhOEJIbXVKR25rZmJwRWYydkF3WVRPV1B2dnpmTTEwT0JiZmxvU3lxM2M5TUt2eVRlMWx1QkxHcVc0dlpVWEl5dlNnejFsaXlVVmVmSVF5M2R5RjlqYmVUWmJDMGJiY1QvN08zREVMKzAxejZBK3JEQ2FjU1owbEdvbFNRNkFuaEx4eklrVnBPUUpickJtQyt4K1p1WlBDTVd6SnluZDVhZU9uN2phai9ta1JWeXhlNmcvME9oV3o0TmlpWlhldU1SQis4bUt5MGZXRC9VbElsWldIc0FTMlptcmtYS3FqTHEwLzB3cjhJTEprem5qU3Fkbkk1SWJqZzN1UXJqLzRBTitpOXIyOGFRNzMvWmtQdFk1U2J3MEFPaUFCQnU3Z0htcTlheVZ4WlFJREFR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AAMZ2FtZURhdGFMaXN0AAAAAAAAAAABAgAAAAFfBQAAAA5wbGF5ZXJQdWJLZXk1OAIAAAABXwkAAZEAAAACBQAAAAxnYW1lRGF0YUxpc3QAAAAAAAAAAAMCAAAAAV8FAAAAB3JhbmRTdHIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAABmdhbWVJZAUAAAAObmV3R2FtZURhdGFTdHIFAAAAA25pbAAAAACVHBm0", "chainId": 84, "height": 833521, "spentComplexity": 0 } View: original | compacted Prev: QfGXytF9t7FYLdbsdGb9zRE8L1DvXxEGfFP1abmfN2i Next: 82SGmy6XeMbhHybuwKQ1N7dB8YE4xKA1KgCGzWo22Dhz Diff:
Old | New | Differences | |
---|---|---|---|
23 | 23 | ||
24 | 24 | let BETMAX = (20000000 * WAVELET) | |
25 | 25 | ||
26 | - | func splitBet (num,bet) = if (if ((num == 0)) | |
26 | + | func straightUpBet (rand,bet) = if ((rand == bet)) | |
27 | + | then true | |
28 | + | else false | |
29 | + | ||
30 | + | ||
31 | + | func splitBet (rand,bet) = if (if ((rand == 0)) | |
27 | 32 | then if (if ((bet == 37)) | |
28 | 33 | then true | |
29 | 34 | else (bet == 38)) | |
30 | 35 | then true | |
31 | 36 | else (bet == 39) | |
32 | 37 | else false) | |
33 | - | then | |
34 | - | else if (if (( | |
38 | + | then true | |
39 | + | else if (if ((rand == 1)) | |
35 | 40 | then if (if ((bet == 37)) | |
36 | 41 | then true | |
37 | 42 | else (bet == 40)) | |
38 | 43 | then true | |
39 | 44 | else (bet == 85) | |
40 | 45 | else false) | |
41 | - | then | |
42 | - | else if (if (( | |
46 | + | then true | |
47 | + | else if (if ((rand == 1)) | |
43 | 48 | then if (if ((bet == 37)) | |
44 | 49 | then true | |
45 | 50 | else (bet == 40)) | |
46 | 51 | then true | |
47 | 52 | else (bet == 85) | |
48 | 53 | else false) | |
49 | - | then | |
50 | - | else if (if (( | |
54 | + | then true | |
55 | + | else if (if ((rand == 2)) | |
51 | 56 | then if (if (if ((bet == 38)) | |
52 | 57 | then true | |
53 | 58 | else (bet == 41)) | |
56 | 61 | then true | |
57 | 62 | else (bet == 85) | |
58 | 63 | else false) | |
59 | - | then | |
60 | - | else if (if (( | |
64 | + | then true | |
65 | + | else if (if ((rand == 3)) | |
61 | 66 | then if (if ((bet == 39)) | |
62 | 67 | then true | |
63 | 68 | else (bet == 42)) | |
64 | 69 | then true | |
65 | 70 | else (bet == 73) | |
66 | 71 | else false) | |
67 | - | then | |
68 | - | else if (if (( | |
72 | + | then true | |
73 | + | else if (if ((rand == 4)) | |
69 | 74 | then if (if ((bet == 40)) | |
70 | 75 | then true | |
71 | 76 | else (bet == 43)) | |
72 | 77 | then true | |
73 | 78 | else (bet == 86) | |
74 | 79 | else false) | |
75 | - | then | |
76 | - | else if (if (( | |
80 | + | then true | |
81 | + | else if (if ((rand == 5)) | |
77 | 82 | then if (if (if ((bet == 41)) | |
78 | 83 | then true | |
79 | 84 | else (bet == 44)) | |
82 | 87 | then true | |
83 | 88 | else (bet == 86) | |
84 | 89 | else false) | |
85 | - | then | |
86 | - | else if (if (( | |
90 | + | then true | |
91 | + | else if (if ((rand == 6)) | |
87 | 92 | then if (if ((bet == 42)) | |
88 | 93 | then true | |
89 | 94 | else (bet == 45)) | |
90 | 95 | then true | |
91 | 96 | else (bet == 74) | |
92 | 97 | else false) | |
93 | - | then | |
94 | - | else if (if (( | |
98 | + | then true | |
99 | + | else if (if ((rand == 7)) | |
95 | 100 | then if (if ((bet == 43)) | |
96 | 101 | then true | |
97 | 102 | else (bet == 46)) | |
98 | 103 | then true | |
99 | 104 | else (bet == 87) | |
100 | 105 | else false) | |
101 | - | then | |
102 | - | else if (if (( | |
106 | + | then true | |
107 | + | else if (if ((rand == 8)) | |
103 | 108 | then if (if (if ((bet == 44)) | |
104 | 109 | then true | |
105 | 110 | else (bet == 47)) | |
108 | 113 | then true | |
109 | 114 | else (bet == 87) | |
110 | 115 | else false) | |
111 | - | then | |
112 | - | else if (if (( | |
116 | + | then true | |
117 | + | else if (if ((rand == 9)) | |
113 | 118 | then if (if ((bet == 45)) | |
114 | 119 | then true | |
115 | 120 | else (bet == 48)) | |
116 | 121 | then true | |
117 | 122 | else (bet == 75) | |
118 | 123 | else false) | |
119 | - | then | |
120 | - | else if (if (( | |
124 | + | then true | |
125 | + | else if (if ((rand == 10)) | |
121 | 126 | then if (if ((bet == 46)) | |
122 | 127 | then true | |
123 | 128 | else (bet == 49)) | |
124 | 129 | then true | |
125 | 130 | else (bet == 88) | |
126 | 131 | else false) | |
127 | - | then | |
128 | - | else if (if (( | |
132 | + | then true | |
133 | + | else if (if ((rand == 11)) | |
129 | 134 | then if (if (if ((bet == 47)) | |
130 | 135 | then true | |
131 | 136 | else (bet == 50)) | |
134 | 139 | then true | |
135 | 140 | else (bet == 88) | |
136 | 141 | else false) | |
137 | - | then | |
138 | - | else if (if (( | |
142 | + | then true | |
143 | + | else if (if ((rand == 12)) | |
139 | 144 | then if (if ((bet == 48)) | |
140 | 145 | then true | |
141 | 146 | else (bet == 51)) | |
142 | 147 | then true | |
143 | 148 | else (bet == 76) | |
144 | 149 | else false) | |
145 | - | then | |
146 | - | else if (if (( | |
150 | + | then true | |
151 | + | else if (if ((rand == 13)) | |
147 | 152 | then if (if ((bet == 49)) | |
148 | 153 | then true | |
149 | 154 | else (bet == 52)) | |
150 | 155 | then true | |
151 | 156 | else (bet == 89) | |
152 | 157 | else false) | |
153 | - | then | |
154 | - | else if (if (( | |
158 | + | then true | |
159 | + | else if (if ((rand == 14)) | |
155 | 160 | then if (if (if ((bet == 50)) | |
156 | 161 | then true | |
157 | 162 | else (bet == 53)) | |
160 | 165 | then true | |
161 | 166 | else (bet == 89) | |
162 | 167 | else false) | |
163 | - | then | |
164 | - | else if (if (( | |
168 | + | then true | |
169 | + | else if (if ((rand == 15)) | |
165 | 170 | then if (if ((bet == 51)) | |
166 | 171 | then true | |
167 | 172 | else (bet == 54)) | |
168 | 173 | then true | |
169 | 174 | else (bet == 77) | |
170 | 175 | else false) | |
171 | - | then | |
172 | - | else if (if (( | |
176 | + | then true | |
177 | + | else if (if ((rand == 16)) | |
173 | 178 | then if (if ((bet == 52)) | |
174 | 179 | then true | |
175 | 180 | else (bet == 55)) | |
176 | 181 | then true | |
177 | 182 | else (bet == 90) | |
178 | 183 | else false) | |
179 | - | then | |
180 | - | else if (if (( | |
184 | + | then true | |
185 | + | else if (if ((rand == 17)) | |
181 | 186 | then if (if (if ((bet == 53)) | |
182 | 187 | then true | |
183 | 188 | else (bet == 56)) | |
186 | 191 | then true | |
187 | 192 | else (bet == 90) | |
188 | 193 | else false) | |
189 | - | then | |
190 | - | else if (if (( | |
194 | + | then true | |
195 | + | else if (if ((rand == 18)) | |
191 | 196 | then if (if ((bet == 54)) | |
192 | 197 | then true | |
193 | 198 | else (bet == 57)) | |
194 | 199 | then true | |
195 | 200 | else (bet == 78) | |
196 | 201 | else false) | |
197 | - | then | |
198 | - | else if (if (( | |
202 | + | then true | |
203 | + | else if (if ((rand == 19)) | |
199 | 204 | then if (if ((bet == 55)) | |
200 | 205 | then true | |
201 | 206 | else (bet == 58)) | |
202 | 207 | then true | |
203 | 208 | else (bet == 91) | |
204 | 209 | else false) | |
205 | - | then | |
206 | - | else if (if (( | |
210 | + | then true | |
211 | + | else if (if ((rand == 20)) | |
207 | 212 | then if (if (if ((bet == 56)) | |
208 | 213 | then true | |
209 | 214 | else (bet == 59)) | |
212 | 217 | then true | |
213 | 218 | else (bet == 91) | |
214 | 219 | else false) | |
215 | - | then | |
216 | - | else if (if (( | |
220 | + | then true | |
221 | + | else if (if ((rand == 21)) | |
217 | 222 | then if (if ((bet == 57)) | |
218 | 223 | then true | |
219 | 224 | else (bet == 60)) | |
220 | 225 | then true | |
221 | 226 | else (bet == 79) | |
222 | 227 | else false) | |
223 | - | then | |
224 | - | else if (if (( | |
228 | + | then true | |
229 | + | else if (if ((rand == 22)) | |
225 | 230 | then if (if ((bet == 58)) | |
226 | 231 | then true | |
227 | 232 | else (bet == 61)) | |
228 | 233 | then true | |
229 | 234 | else (bet == 92) | |
230 | 235 | else false) | |
231 | - | then | |
232 | - | else if (if (( | |
236 | + | then true | |
237 | + | else if (if ((rand == 23)) | |
233 | 238 | then if (if (if ((bet == 59)) | |
234 | 239 | then true | |
235 | 240 | else (bet == 62)) | |
238 | 243 | then true | |
239 | 244 | else (bet == 92) | |
240 | 245 | else false) | |
241 | - | then | |
242 | - | else if (if (( | |
246 | + | then true | |
247 | + | else if (if ((rand == 24)) | |
243 | 248 | then if (if ((bet == 60)) | |
244 | 249 | then true | |
245 | 250 | else (bet == 63)) | |
246 | 251 | then true | |
247 | 252 | else (bet == 80) | |
248 | 253 | else false) | |
249 | - | then | |
250 | - | else if (if (( | |
254 | + | then true | |
255 | + | else if (if ((rand == 25)) | |
251 | 256 | then if (if ((bet == 61)) | |
252 | 257 | then true | |
253 | 258 | else (bet == 64)) | |
254 | 259 | then true | |
255 | 260 | else (bet == 93) | |
256 | 261 | else false) | |
257 | - | then | |
258 | - | else if (if (( | |
262 | + | then true | |
263 | + | else if (if ((rand == 26)) | |
259 | 264 | then if (if (if ((bet == 62)) | |
260 | 265 | then true | |
261 | 266 | else (bet == 65)) | |
264 | 269 | then true | |
265 | 270 | else (bet == 93) | |
266 | 271 | else false) | |
267 | - | then | |
268 | - | else if (if (( | |
272 | + | then true | |
273 | + | else if (if ((rand == 27)) | |
269 | 274 | then if (if ((bet == 63)) | |
270 | 275 | then true | |
271 | 276 | else (bet == 66)) | |
272 | 277 | then true | |
273 | 278 | else (bet == 81) | |
274 | 279 | else false) | |
275 | - | then | |
276 | - | else if (if (( | |
280 | + | then true | |
281 | + | else if (if ((rand == 28)) | |
277 | 282 | then if (if ((bet == 64)) | |
278 | 283 | then true | |
279 | 284 | else (bet == 67)) | |
280 | 285 | then true | |
281 | 286 | else (bet == 94) | |
282 | 287 | else false) | |
283 | - | then | |
284 | - | else if (if (( | |
288 | + | then true | |
289 | + | else if (if ((rand == 29)) | |
285 | 290 | then if (if (if ((bet == 65)) | |
286 | 291 | then true | |
287 | 292 | else (bet == 68)) | |
290 | 295 | then true | |
291 | 296 | else (bet == 94) | |
292 | 297 | else false) | |
293 | - | then | |
294 | - | else if (if (( | |
298 | + | then true | |
299 | + | else if (if ((rand == 30)) | |
295 | 300 | then if (if ((bet == 66)) | |
296 | 301 | then true | |
297 | 302 | else (bet == 69)) | |
298 | 303 | then true | |
299 | 304 | else (bet == 82) | |
300 | 305 | else false) | |
301 | - | then | |
302 | - | else if (if (( | |
306 | + | then true | |
307 | + | else if (if ((rand == 31)) | |
303 | 308 | then if (if ((bet == 67)) | |
304 | 309 | then true | |
305 | 310 | else (bet == 70)) | |
306 | 311 | then true | |
307 | 312 | else (bet == 95) | |
308 | 313 | else false) | |
309 | - | then | |
310 | - | else if (if (( | |
314 | + | then true | |
315 | + | else if (if ((rand == 32)) | |
311 | 316 | then if (if (if ((bet == 68)) | |
312 | 317 | then true | |
313 | 318 | else (bet == 71)) | |
316 | 321 | then true | |
317 | 322 | else (bet == 95) | |
318 | 323 | else false) | |
319 | - | then | |
320 | - | else if (if (( | |
324 | + | then true | |
325 | + | else if (if ((rand == 33)) | |
321 | 326 | then if (if ((bet == 69)) | |
322 | 327 | then true | |
323 | 328 | else (bet == 72)) | |
324 | 329 | then true | |
325 | 330 | else (bet == 83) | |
326 | 331 | else false) | |
327 | - | then | |
328 | - | else if (if (( | |
332 | + | then true | |
333 | + | else if (if ((rand == 34)) | |
329 | 334 | then if ((bet == 70)) | |
330 | 335 | then true | |
331 | 336 | else (bet == 96) | |
332 | 337 | else false) | |
333 | - | then | |
334 | - | else if (if (if (( | |
338 | + | then true | |
339 | + | else if (if (if ((rand == 35)) | |
335 | 340 | then if (if ((bet == 71)) | |
336 | 341 | then true | |
337 | 342 | else (bet == 84)) | |
339 | 344 | else (bet == 96) | |
340 | 345 | else false) | |
341 | 346 | then true | |
342 | - | else if (( | |
347 | + | else if ((rand == 36)) | |
343 | 348 | then if ((bet == 72)) | |
344 | 349 | then true | |
345 | 350 | else (bet == 84) | |
346 | 351 | else false) | |
347 | - | then | |
348 | - | else if (if (( | |
352 | + | then true | |
353 | + | else if (if ((rand == 36)) | |
349 | 354 | then if ((bet == 72)) | |
350 | 355 | then true | |
351 | 356 | else (bet == 84) | |
352 | 357 | else false) | |
353 | - | then | |
354 | - | else | |
358 | + | then true | |
359 | + | else false | |
355 | 360 | ||
356 | 361 | ||
357 | - | func streetBet ( | |
358 | - | then if (if (( | |
362 | + | func streetBet (rand,bet) = if (if ((bet == 97)) | |
363 | + | then if (if ((rand == 0)) | |
359 | 364 | then true | |
360 | - | else ( | |
365 | + | else (rand == 1)) | |
361 | 366 | then true | |
362 | - | else ( | |
367 | + | else (rand == 2) | |
363 | 368 | else false) | |
364 | - | then | |
369 | + | then true | |
365 | 370 | else if (if ((bet == 98)) | |
366 | - | then if (if (( | |
371 | + | then if (if ((rand == 0)) | |
367 | 372 | then true | |
368 | - | else ( | |
373 | + | else (rand == 2)) | |
369 | 374 | then true | |
370 | - | else ( | |
375 | + | else (rand == 3) | |
371 | 376 | else false) | |
372 | - | then | |
377 | + | then true | |
373 | 378 | else if (if ((bet == 99)) | |
374 | - | then if (if (( | |
379 | + | then if (if ((rand == 1)) | |
375 | 380 | then true | |
376 | - | else ( | |
381 | + | else (rand == 2)) | |
377 | 382 | then true | |
378 | - | else ( | |
383 | + | else (rand == 3) | |
379 | 384 | else false) | |
380 | - | then | |
385 | + | then true | |
381 | 386 | else if (if ((bet == 100)) | |
382 | - | then if (if (( | |
387 | + | then if (if ((rand == 4)) | |
383 | 388 | then true | |
384 | - | else ( | |
389 | + | else (rand == 5)) | |
385 | 390 | then true | |
386 | - | else ( | |
391 | + | else (rand == 6) | |
387 | 392 | else false) | |
388 | - | then | |
393 | + | then true | |
389 | 394 | else if (if ((bet == 101)) | |
390 | - | then if (if (( | |
395 | + | then if (if ((rand == 7)) | |
391 | 396 | then true | |
392 | - | else ( | |
397 | + | else (rand == 8)) | |
393 | 398 | then true | |
394 | - | else ( | |
399 | + | else (rand == 9) | |
395 | 400 | else false) | |
396 | - | then | |
401 | + | then true | |
397 | 402 | else if (if ((bet == 102)) | |
398 | - | then if (if (( | |
403 | + | then if (if ((rand == 10)) | |
399 | 404 | then true | |
400 | - | else ( | |
405 | + | else (rand == 11)) | |
401 | 406 | then true | |
402 | - | else ( | |
407 | + | else (rand == 12) | |
403 | 408 | else false) | |
404 | - | then | |
409 | + | then true | |
405 | 410 | else if (if ((bet == 103)) | |
406 | - | then if (if (( | |
411 | + | then if (if ((rand == 13)) | |
407 | 412 | then true | |
408 | - | else ( | |
413 | + | else (rand == 14)) | |
409 | 414 | then true | |
410 | - | else ( | |
415 | + | else (rand == 15) | |
411 | 416 | else false) | |
412 | - | then | |
417 | + | then true | |
413 | 418 | else if (if ((bet == 104)) | |
414 | - | then if (if (( | |
419 | + | then if (if ((rand == 16)) | |
415 | 420 | then true | |
416 | - | else ( | |
421 | + | else (rand == 17)) | |
417 | 422 | then true | |
418 | - | else ( | |
423 | + | else (rand == 18) | |
419 | 424 | else false) | |
420 | - | then | |
425 | + | then true | |
421 | 426 | else if (if ((bet == 105)) | |
422 | - | then if (if (( | |
427 | + | then if (if ((rand == 19)) | |
423 | 428 | then true | |
424 | - | else ( | |
429 | + | else (rand == 20)) | |
425 | 430 | then true | |
426 | - | else ( | |
431 | + | else (rand == 21) | |
427 | 432 | else false) | |
428 | - | then | |
433 | + | then true | |
429 | 434 | else if (if ((bet == 106)) | |
430 | - | then if (if (( | |
435 | + | then if (if ((rand == 22)) | |
431 | 436 | then true | |
432 | - | else ( | |
437 | + | else (rand == 23)) | |
433 | 438 | then true | |
434 | - | else ( | |
439 | + | else (rand == 24) | |
435 | 440 | else false) | |
436 | - | then | |
441 | + | then true | |
437 | 442 | else if (if ((bet == 107)) | |
438 | - | then if (if (( | |
443 | + | then if (if ((rand == 25)) | |
439 | 444 | then true | |
440 | - | else ( | |
445 | + | else (rand == 26)) | |
441 | 446 | then true | |
442 | - | else ( | |
447 | + | else (rand == 27) | |
443 | 448 | else false) | |
444 | - | then | |
449 | + | then true | |
445 | 450 | else if (if ((bet == 108)) | |
446 | - | then if (if (( | |
451 | + | then if (if ((rand == 28)) | |
447 | 452 | then true | |
448 | - | else ( | |
453 | + | else (rand == 29)) | |
449 | 454 | then true | |
450 | - | else ( | |
455 | + | else (rand == 30) | |
451 | 456 | else false) | |
452 | - | then | |
457 | + | then true | |
453 | 458 | else if (if ((bet == 109)) | |
454 | - | then if (if (( | |
459 | + | then if (if ((rand == 31)) | |
455 | 460 | then true | |
456 | - | else ( | |
461 | + | else (rand == 32)) | |
457 | 462 | then true | |
458 | - | else ( | |
463 | + | else (rand == 33) | |
459 | 464 | else false) | |
460 | - | then | |
465 | + | then true | |
461 | 466 | else if (if ((bet == 110)) | |
462 | - | then if (if (( | |
467 | + | then if (if ((rand == 34)) | |
463 | 468 | then true | |
464 | - | else ( | |
469 | + | else (rand == 35)) | |
465 | 470 | then true | |
466 | - | else ( | |
471 | + | else (rand == 36) | |
467 | 472 | else false) | |
468 | - | then | |
469 | - | else | |
473 | + | then true | |
474 | + | else false | |
470 | 475 | ||
471 | 476 | ||
472 | - | func cornerBet ( | |
473 | - | then if (if (if (( | |
477 | + | func cornerBet (rand,bet) = if (if ((bet == 111)) | |
478 | + | then if (if (if ((rand == 0)) | |
474 | 479 | then true | |
475 | - | else ( | |
480 | + | else (rand == 1)) | |
476 | 481 | then true | |
477 | - | else ( | |
482 | + | else (rand == 2)) | |
478 | 483 | then true | |
479 | - | else ( | |
484 | + | else (rand == 3) | |
480 | 485 | else false) | |
481 | - | then | |
486 | + | then true | |
482 | 487 | else if (if ((bet == 112)) | |
483 | - | then if (if (if (( | |
488 | + | then if (if (if ((rand == 1)) | |
484 | 489 | then true | |
485 | - | else ( | |
490 | + | else (rand == 2)) | |
486 | 491 | then true | |
487 | - | else ( | |
492 | + | else (rand == 4)) | |
488 | 493 | then true | |
489 | - | else ( | |
494 | + | else (rand == 5) | |
490 | 495 | else false) | |
491 | - | then | |
496 | + | then true | |
492 | 497 | else if (if ((bet == 113)) | |
493 | - | then if (if (if (( | |
498 | + | then if (if (if ((rand == 2)) | |
494 | 499 | then true | |
495 | - | else ( | |
500 | + | else (rand == 3)) | |
496 | 501 | then true | |
497 | - | else ( | |
502 | + | else (rand == 5)) | |
498 | 503 | then true | |
499 | - | else ( | |
504 | + | else (rand == 6) | |
500 | 505 | else false) | |
501 | - | then | |
506 | + | then true | |
502 | 507 | else if (if ((bet == 114)) | |
503 | - | then if (if (if (( | |
508 | + | then if (if (if ((rand == 4)) | |
504 | 509 | then true | |
505 | - | else ( | |
510 | + | else (rand == 5)) | |
506 | 511 | then true | |
507 | - | else ( | |
512 | + | else (rand == 7)) | |
508 | 513 | then true | |
509 | - | else ( | |
514 | + | else (rand == 8) | |
510 | 515 | else false) | |
511 | - | then | |
516 | + | then true | |
512 | 517 | else if (if ((bet == 115)) | |
513 | - | then if (if (if (( | |
518 | + | then if (if (if ((rand == 5)) | |
514 | 519 | then true | |
515 | - | else ( | |
520 | + | else (rand == 6)) | |
516 | 521 | then true | |
517 | - | else ( | |
522 | + | else (rand == 8)) | |
518 | 523 | then true | |
519 | - | else ( | |
524 | + | else (rand == 9) | |
520 | 525 | else false) | |
521 | - | then | |
526 | + | then true | |
522 | 527 | else if (if ((bet == 116)) | |
523 | - | then if (if (if (( | |
528 | + | then if (if (if ((rand == 7)) | |
524 | 529 | then true | |
525 | - | else ( | |
530 | + | else (rand == 8)) | |
526 | 531 | then true | |
527 | - | else ( | |
532 | + | else (rand == 10)) | |
528 | 533 | then true | |
529 | - | else ( | |
534 | + | else (rand == 11) | |
530 | 535 | else false) | |
531 | - | then | |
536 | + | then true | |
532 | 537 | else if (if ((bet == 117)) | |
533 | - | then if (if (if (( | |
538 | + | then if (if (if ((rand == 8)) | |
534 | 539 | then true | |
535 | - | else ( | |
540 | + | else (rand == 9)) | |
536 | 541 | then true | |
537 | - | else ( | |
542 | + | else (rand == 11)) | |
538 | 543 | then true | |
539 | - | else ( | |
544 | + | else (rand == 12) | |
540 | 545 | else false) | |
541 | - | then | |
546 | + | then true | |
542 | 547 | else if (if ((bet == 118)) | |
543 | - | then if (if (if (( | |
548 | + | then if (if (if ((rand == 10)) | |
544 | 549 | then true | |
545 | - | else ( | |
550 | + | else (rand == 11)) | |
546 | 551 | then true | |
547 | - | else ( | |
552 | + | else (rand == 13)) | |
548 | 553 | then true | |
549 | - | else ( | |
554 | + | else (rand == 14) | |
550 | 555 | else false) | |
551 | - | then | |
556 | + | then true | |
552 | 557 | else if (if ((bet == 119)) | |
553 | - | then if (if (if (( | |
558 | + | then if (if (if ((rand == 11)) | |
554 | 559 | then true | |
555 | - | else ( | |
560 | + | else (rand == 12)) | |
556 | 561 | then true | |
557 | - | else ( | |
562 | + | else (rand == 14)) | |
558 | 563 | then true | |
559 | - | else ( | |
564 | + | else (rand == 15) | |
560 | 565 | else false) | |
561 | - | then | |
566 | + | then true | |
562 | 567 | else if (if ((bet == 120)) | |
563 | - | then if (if (if (( | |
568 | + | then if (if (if ((rand == 13)) | |
564 | 569 | then true | |
565 | - | else ( | |
570 | + | else (rand == 14)) | |
566 | 571 | then true | |
567 | - | else ( | |
572 | + | else (rand == 16)) | |
568 | 573 | then true | |
569 | - | else ( | |
574 | + | else (rand == 17) | |
570 | 575 | else false) | |
571 | - | then | |
576 | + | then true | |
572 | 577 | else if (if ((bet == 121)) | |
573 | - | then if (if (if (( | |
578 | + | then if (if (if ((rand == 14)) | |
574 | 579 | then true | |
575 | - | else ( | |
580 | + | else (rand == 15)) | |
576 | 581 | then true | |
577 | - | else ( | |
582 | + | else (rand == 17)) | |
578 | 583 | then true | |
579 | - | else ( | |
584 | + | else (rand == 18) | |
580 | 585 | else false) | |
581 | - | then | |
586 | + | then true | |
582 | 587 | else if (if ((bet == 122)) | |
583 | - | then if (if (if (( | |
588 | + | then if (if (if ((rand == 16)) | |
584 | 589 | then true | |
585 | - | else ( | |
590 | + | else (rand == 17)) | |
586 | 591 | then true | |
587 | - | else ( | |
592 | + | else (rand == 19)) | |
588 | 593 | then true | |
589 | - | else ( | |
594 | + | else (rand == 20) | |
590 | 595 | else false) | |
591 | - | then | |
596 | + | then true | |
592 | 597 | else if (if ((bet == 123)) | |
593 | - | then if (if (if (( | |
598 | + | then if (if (if ((rand == 17)) | |
594 | 599 | then true | |
595 | - | else ( | |
600 | + | else (rand == 18)) | |
596 | 601 | then true | |
597 | - | else ( | |
602 | + | else (rand == 20)) | |
598 | 603 | then true | |
599 | - | else ( | |
604 | + | else (rand == 21) | |
600 | 605 | else false) | |
601 | - | then | |
606 | + | then true | |
602 | 607 | else if (if ((bet == 124)) | |
603 | - | then if (if (if (( | |
608 | + | then if (if (if ((rand == 19)) | |
604 | 609 | then true | |
605 | - | else ( | |
610 | + | else (rand == 20)) | |
606 | 611 | then true | |
607 | - | else ( | |
612 | + | else (rand == 22)) | |
608 | 613 | then true | |
609 | - | else ( | |
614 | + | else (rand == 23) | |
610 | 615 | else false) | |
611 | - | then | |
616 | + | then true | |
612 | 617 | else if (if ((bet == 125)) | |
613 | - | then if (if (if (( | |
618 | + | then if (if (if ((rand == 20)) | |
614 | 619 | then true | |
615 | - | else ( | |
620 | + | else (rand == 21)) | |
616 | 621 | then true | |
617 | - | else ( | |
622 | + | else (rand == 23)) | |
618 | 623 | then true | |
619 | - | else ( | |
624 | + | else (rand == 24) | |
620 | 625 | else false) | |
621 | - | then | |
626 | + | then true | |
622 | 627 | else if (if ((bet == 126)) | |
623 | - | then if (if (if (( | |
628 | + | then if (if (if ((rand == 22)) | |
624 | 629 | then true | |
625 | - | else ( | |
630 | + | else (rand == 23)) | |
626 | 631 | then true | |
627 | - | else ( | |
632 | + | else (rand == 25)) | |
628 | 633 | then true | |
629 | - | else ( | |
634 | + | else (rand == 26) | |
630 | 635 | else false) | |
631 | - | then | |
636 | + | then true | |
632 | 637 | else if (if ((bet == 127)) | |
633 | - | then if (if (if (( | |
638 | + | then if (if (if ((rand == 23)) | |
634 | 639 | then true | |
635 | - | else ( | |
640 | + | else (rand == 24)) | |
636 | 641 | then true | |
637 | - | else ( | |
642 | + | else (rand == 26)) | |
638 | 643 | then true | |
639 | - | else ( | |
644 | + | else (rand == 27) | |
640 | 645 | else false) | |
641 | - | then | |
646 | + | then true | |
642 | 647 | else if (if ((bet == 128)) | |
643 | - | then if (if (if (( | |
648 | + | then if (if (if ((rand == 25)) | |
644 | 649 | then true | |
645 | - | else ( | |
650 | + | else (rand == 26)) | |
646 | 651 | then true | |
647 | - | else ( | |
652 | + | else (rand == 28)) | |
648 | 653 | then true | |
649 | - | else ( | |
654 | + | else (rand == 29) | |
650 | 655 | else false) | |
651 | - | then | |
656 | + | then true | |
652 | 657 | else if (if ((bet == 129)) | |
653 | - | then if (if (if (( | |
658 | + | then if (if (if ((rand == 26)) | |
654 | 659 | then true | |
655 | - | else ( | |
660 | + | else (rand == 27)) | |
656 | 661 | then true | |
657 | - | else ( | |
662 | + | else (rand == 29)) | |
658 | 663 | then true | |
659 | - | else ( | |
664 | + | else (rand == 30) | |
660 | 665 | else false) | |
661 | - | then | |
666 | + | then true | |
662 | 667 | else if (if ((bet == 130)) | |
663 | - | then if (if (if (( | |
668 | + | then if (if (if ((rand == 28)) | |
664 | 669 | then true | |
665 | - | else ( | |
670 | + | else (rand == 29)) | |
666 | 671 | then true | |
667 | - | else ( | |
672 | + | else (rand == 31)) | |
668 | 673 | then true | |
669 | - | else ( | |
674 | + | else (rand == 32) | |
670 | 675 | else false) | |
671 | - | then | |
676 | + | then true | |
672 | 677 | else if (if ((bet == 131)) | |
673 | - | then if (if (if (( | |
678 | + | then if (if (if ((rand == 29)) | |
674 | 679 | then true | |
675 | - | else ( | |
680 | + | else (rand == 30)) | |
676 | 681 | then true | |
677 | - | else ( | |
682 | + | else (rand == 32)) | |
678 | 683 | then true | |
679 | - | else ( | |
684 | + | else (rand == 33) | |
680 | 685 | else false) | |
681 | - | then | |
686 | + | then true | |
682 | 687 | else if (if ((bet == 132)) | |
683 | - | then if (if (if (( | |
688 | + | then if (if (if ((rand == 31)) | |
684 | 689 | then true | |
685 | - | else ( | |
690 | + | else (rand == 32)) | |
686 | 691 | then true | |
687 | - | else ( | |
692 | + | else (rand == 34)) | |
688 | 693 | then true | |
689 | - | else ( | |
694 | + | else (rand == 35) | |
690 | 695 | else false) | |
691 | - | then | |
696 | + | then true | |
692 | 697 | else if (if ((bet == 133)) | |
693 | - | then if (if (if (( | |
698 | + | then if (if (if ((rand == 32)) | |
694 | 699 | then true | |
695 | - | else ( | |
700 | + | else (rand == 33)) | |
696 | 701 | then true | |
697 | - | else ( | |
702 | + | else (rand == 35)) | |
698 | 703 | then true | |
699 | - | else ( | |
704 | + | else (rand == 36) | |
700 | 705 | else false) | |
701 | - | then | |
702 | - | else | |
706 | + | then true | |
707 | + | else false | |
703 | 708 | ||
704 | 709 | ||
705 | - | func lineBet ( | |
706 | - | then ( | |
710 | + | func lineBet (rand,bet) = if (if (if ((bet == 134)) | |
711 | + | then (rand >= 1) | |
707 | 712 | else false) | |
708 | - | then (6 >= | |
713 | + | then (6 >= rand) | |
709 | 714 | else false) | |
710 | - | then | |
715 | + | then true | |
711 | 716 | else if (if (if ((bet == 135)) | |
712 | - | then ( | |
717 | + | then (rand >= 4) | |
713 | 718 | else false) | |
714 | - | then (9 >= | |
719 | + | then (9 >= rand) | |
715 | 720 | else false) | |
716 | - | then | |
721 | + | then true | |
717 | 722 | else if (if (if ((bet == 136)) | |
718 | - | then ( | |
723 | + | then (rand >= 7) | |
719 | 724 | else false) | |
720 | - | then (12 >= | |
725 | + | then (12 >= rand) | |
721 | 726 | else false) | |
722 | - | then | |
727 | + | then true | |
723 | 728 | else if (if (if ((bet == 137)) | |
724 | - | then ( | |
729 | + | then (rand >= 10) | |
725 | 730 | else false) | |
726 | - | then (15 >= | |
731 | + | then (15 >= rand) | |
727 | 732 | else false) | |
728 | - | then | |
733 | + | then true | |
729 | 734 | else if (if (if ((bet == 138)) | |
730 | - | then ( | |
735 | + | then (rand >= 13) | |
731 | 736 | else false) | |
732 | - | then (18 >= | |
737 | + | then (18 >= rand) | |
733 | 738 | else false) | |
734 | - | then | |
739 | + | then true | |
735 | 740 | else if (if (if ((bet == 139)) | |
736 | - | then ( | |
741 | + | then (rand >= 16) | |
737 | 742 | else false) | |
738 | - | then (21 >= | |
743 | + | then (21 >= rand) | |
739 | 744 | else false) | |
740 | - | then | |
745 | + | then true | |
741 | 746 | else if (if (if ((bet == 140)) | |
742 | - | then ( | |
747 | + | then (rand >= 19) | |
743 | 748 | else false) | |
744 | - | then (24 >= | |
749 | + | then (24 >= rand) | |
745 | 750 | else false) | |
746 | - | then | |
751 | + | then true | |
747 | 752 | else if (if (if ((bet == 141)) | |
748 | - | then ( | |
753 | + | then (rand >= 22) | |
749 | 754 | else false) | |
750 | - | then (27 >= | |
755 | + | then (27 >= rand) | |
751 | 756 | else false) | |
752 | - | then | |
757 | + | then true | |
753 | 758 | else if (if (if ((bet == 142)) | |
754 | - | then ( | |
759 | + | then (rand >= 25) | |
755 | 760 | else false) | |
756 | - | then (30 >= | |
761 | + | then (30 >= rand) | |
757 | 762 | else false) | |
758 | - | then | |
763 | + | then true | |
759 | 764 | else if (if (if ((bet == 143)) | |
760 | - | then ( | |
765 | + | then (rand >= 28) | |
761 | 766 | else false) | |
762 | - | then (33 >= | |
767 | + | then (33 >= rand) | |
763 | 768 | else false) | |
764 | - | then | |
769 | + | then true | |
765 | 770 | else if (if (if ((bet == 144)) | |
766 | - | then ( | |
771 | + | then (rand >= 31) | |
767 | 772 | else false) | |
768 | - | then (36 >= | |
773 | + | then (36 >= rand) | |
769 | 774 | else false) | |
770 | - | then | |
771 | - | else | |
775 | + | then true | |
776 | + | else false | |
772 | 777 | ||
773 | 778 | ||
774 | - | func columnBet ( | |
775 | - | then if (if (if (if (if (if (if (if (if (if (if (if (( | |
779 | + | func columnBet (rand,bet) = if (if ((bet == 145)) | |
780 | + | then if (if (if (if (if (if (if (if (if (if (if (if ((rand == 0)) | |
776 | 781 | then true | |
777 | - | else ( | |
782 | + | else (rand == 1)) | |
778 | 783 | then true | |
779 | - | else ( | |
784 | + | else (rand == 4)) | |
780 | 785 | then true | |
781 | - | else ( | |
786 | + | else (rand == 7)) | |
782 | 787 | then true | |
783 | - | else ( | |
788 | + | else (rand == 10)) | |
784 | 789 | then true | |
785 | - | else ( | |
790 | + | else (rand == 13)) | |
786 | 791 | then true | |
787 | - | else ( | |
792 | + | else (rand == 16)) | |
788 | 793 | then true | |
789 | - | else ( | |
794 | + | else (rand == 19)) | |
790 | 795 | then true | |
791 | - | else ( | |
796 | + | else (rand == 22)) | |
792 | 797 | then true | |
793 | - | else ( | |
798 | + | else (rand == 25)) | |
794 | 799 | then true | |
795 | - | else ( | |
800 | + | else (rand == 28)) | |
796 | 801 | then true | |
797 | - | else ( | |
802 | + | else (rand == 31)) | |
798 | 803 | then true | |
799 | - | else ( | |
804 | + | else (rand == 34) | |
800 | 805 | else false) | |
801 | - | then | |
806 | + | then true | |
802 | 807 | else if (if ((bet == 146)) | |
803 | - | then if (if (if (if (if (if (if (if (if (if (if (if (( | |
808 | + | then if (if (if (if (if (if (if (if (if (if (if (if ((rand == 0)) | |
804 | 809 | then true | |
805 | - | else ( | |
810 | + | else (rand == 2)) | |
806 | 811 | then true | |
807 | - | else ( | |
812 | + | else (rand == 5)) | |
808 | 813 | then true | |
809 | - | else ( | |
814 | + | else (rand == 8)) | |
810 | 815 | then true | |
811 | - | else ( | |
816 | + | else (rand == 11)) | |
812 | 817 | then true | |
813 | - | else ( | |
818 | + | else (rand == 14)) | |
814 | 819 | then true | |
815 | - | else ( | |
820 | + | else (rand == 17)) | |
816 | 821 | then true | |
817 | - | else ( | |
822 | + | else (rand == 20)) | |
818 | 823 | then true | |
819 | - | else ( | |
824 | + | else (rand == 23)) | |
820 | 825 | then true | |
821 | - | else ( | |
826 | + | else (rand == 26)) | |
822 | 827 | then true | |
823 | - | else ( | |
828 | + | else (rand == 29)) | |
824 | 829 | then true | |
825 | - | else ( | |
830 | + | else (rand == 32)) | |
826 | 831 | then true | |
827 | - | else ( | |
832 | + | else (rand == 35) | |
828 | 833 | else false) | |
829 | - | then | |
834 | + | then true | |
830 | 835 | else if (if ((bet == 147)) | |
831 | - | then if (if (if (if (if (if (if (if (if (if (if (if (( | |
836 | + | then if (if (if (if (if (if (if (if (if (if (if (if ((rand == 0)) | |
832 | 837 | then true | |
833 | - | else ( | |
838 | + | else (rand == 3)) | |
834 | 839 | then true | |
835 | - | else ( | |
840 | + | else (rand == 6)) | |
836 | 841 | then true | |
837 | - | else ( | |
842 | + | else (rand == 9)) | |
838 | 843 | then true | |
839 | - | else ( | |
844 | + | else (rand == 12)) | |
840 | 845 | then true | |
841 | - | else ( | |
846 | + | else (rand == 15)) | |
842 | 847 | then true | |
843 | - | else ( | |
848 | + | else (rand == 18)) | |
844 | 849 | then true | |
845 | - | else ( | |
850 | + | else (rand == 21)) | |
846 | 851 | then true | |
847 | - | else ( | |
852 | + | else (rand == 24)) | |
848 | 853 | then true | |
849 | - | else ( | |
854 | + | else (rand == 27)) | |
850 | 855 | then true | |
851 | - | else ( | |
856 | + | else (rand == 30)) | |
852 | 857 | then true | |
853 | - | else ( | |
858 | + | else (rand == 33)) | |
854 | 859 | then true | |
855 | - | else ( | |
860 | + | else (rand == 36) | |
856 | 861 | else false) | |
857 | - | then | |
858 | - | else | |
862 | + | then true | |
863 | + | else false | |
859 | 864 | ||
860 | 865 | ||
861 | - | func dozenBet ( | |
862 | - | then ( | |
866 | + | func dozenBet (rand,bet) = if (if (if ((bet == 148)) | |
867 | + | then (rand >= 1) | |
863 | 868 | else false) | |
864 | - | then (12 >= | |
869 | + | then (12 >= rand) | |
865 | 870 | else false) | |
866 | - | then | |
871 | + | then true | |
867 | 872 | else if (if (if ((bet == 149)) | |
868 | - | then ( | |
873 | + | then (rand >= 13) | |
869 | 874 | else false) | |
870 | - | then (24 >= | |
875 | + | then (24 >= rand) | |
871 | 876 | else false) | |
872 | - | then | |
877 | + | then true | |
873 | 878 | else if (if (if ((bet == 150)) | |
874 | - | then ( | |
879 | + | then (rand >= 25) | |
875 | 880 | else false) | |
876 | - | then (36 >= | |
881 | + | then (36 >= rand) | |
877 | 882 | else false) | |
878 | - | then | |
879 | - | else | |
883 | + | then true | |
884 | + | else false | |
880 | 885 | ||
881 | 886 | ||
882 | - | func colorBet ( | |
883 | - | then if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (( | |
887 | + | func colorBet (rand,bet) = if (if ((bet == 151)) | |
888 | + | then if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((rand == 1)) | |
884 | 889 | then true | |
885 | - | else ( | |
890 | + | else (rand == 3)) | |
886 | 891 | then true | |
887 | - | else ( | |
892 | + | else (rand == 5)) | |
888 | 893 | then true | |
889 | - | else ( | |
894 | + | else (rand == 7)) | |
890 | 895 | then true | |
891 | - | else ( | |
896 | + | else (rand == 9)) | |
892 | 897 | then true | |
893 | - | else ( | |
898 | + | else (rand == 12)) | |
894 | 899 | then true | |
895 | - | else ( | |
900 | + | else (rand == 14)) | |
896 | 901 | then true | |
897 | - | else ( | |
902 | + | else (rand == 16)) | |
898 | 903 | then true | |
899 | - | else ( | |
904 | + | else (rand == 18)) | |
900 | 905 | then true | |
901 | - | else ( | |
906 | + | else (rand == 19)) | |
902 | 907 | then true | |
903 | - | else ( | |
908 | + | else (rand == 21)) | |
904 | 909 | then true | |
905 | - | else ( | |
910 | + | else (rand == 23)) | |
906 | 911 | then true | |
907 | - | else ( | |
912 | + | else (rand == 25)) | |
908 | 913 | then true | |
909 | - | else ( | |
914 | + | else (rand == 27)) | |
910 | 915 | then true | |
911 | - | else ( | |
916 | + | else (rand == 30)) | |
912 | 917 | then true | |
913 | - | else ( | |
918 | + | else (rand == 32)) | |
914 | 919 | then true | |
915 | - | else ( | |
920 | + | else (rand == 34)) | |
916 | 921 | then true | |
917 | - | else ( | |
922 | + | else (rand == 36) | |
918 | 923 | else false) | |
919 | - | then | |
924 | + | then true | |
920 | 925 | else if (if ((bet == 152)) | |
921 | - | then if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (( | |
926 | + | then if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((rand == 2)) | |
922 | 927 | then true | |
923 | - | else ( | |
928 | + | else (rand == 4)) | |
924 | 929 | then true | |
925 | - | else ( | |
930 | + | else (rand == 6)) | |
926 | 931 | then true | |
927 | - | else ( | |
932 | + | else (rand == 8)) | |
928 | 933 | then true | |
929 | - | else ( | |
934 | + | else (rand == 10)) | |
930 | 935 | then true | |
931 | - | else ( | |
936 | + | else (rand == 11)) | |
932 | 937 | then true | |
933 | - | else ( | |
938 | + | else (rand == 13)) | |
934 | 939 | then true | |
935 | - | else ( | |
940 | + | else (rand == 15)) | |
936 | 941 | then true | |
937 | - | else ( | |
942 | + | else (rand == 17)) | |
938 | 943 | then true | |
939 | - | else ( | |
944 | + | else (rand == 20)) | |
940 | 945 | then true | |
941 | - | else ( | |
946 | + | else (rand == 22)) | |
942 | 947 | then true | |
943 | - | else ( | |
948 | + | else (rand == 24)) | |
944 | 949 | then true | |
945 | - | else ( | |
950 | + | else (rand == 26)) | |
946 | 951 | then true | |
947 | - | else ( | |
952 | + | else (rand == 28)) | |
948 | 953 | then true | |
949 | - | else ( | |
954 | + | else (rand == 29)) | |
950 | 955 | then true | |
951 | - | else ( | |
956 | + | else (rand == 31)) | |
952 | 957 | then true | |
953 | - | else ( | |
958 | + | else (rand == 33)) | |
954 | 959 | then true | |
955 | - | else ( | |
960 | + | else (rand == 35) | |
956 | 961 | else false) | |
957 | - | then | |
958 | - | else | |
962 | + | then true | |
963 | + | else false | |
959 | 964 | ||
960 | 965 | ||
961 | - | func evenOddBet ( | |
962 | - | let rem = ( | |
963 | - | if (if (if (( | |
966 | + | func evenOddBet (rand,bet) = { | |
967 | + | let rem = (rand % 2) | |
968 | + | if (if (if ((rand > 0)) | |
964 | 969 | then (bet == 153) | |
965 | 970 | else false) | |
966 | 971 | then (rem == 0) | |
967 | 972 | else false) | |
968 | - | then | |
969 | - | else if (if (if (( | |
973 | + | then true | |
974 | + | else if (if (if ((rand > 0)) | |
970 | 975 | then (bet == 154) | |
971 | 976 | else false) | |
972 | 977 | then (rem != 0) | |
973 | 978 | else false) | |
974 | - | then | |
975 | - | else | |
979 | + | then true | |
980 | + | else false | |
976 | 981 | } | |
977 | 982 | ||
978 | 983 | ||
979 | - | func rouletteCalc (num,bet,betValuet) = if (if ((bet >= 0)) | |
984 | + | func lowHighBet (rand,bet) = if (if (if ((bet == 155)) | |
985 | + | then (rand >= 1) | |
986 | + | else false) | |
987 | + | then (18 >= rand) | |
988 | + | else false) | |
989 | + | then true | |
990 | + | else if (if (if ((bet == 156)) | |
991 | + | then (rand >= 19) | |
992 | + | else false) | |
993 | + | then (36 >= rand) | |
994 | + | else false) | |
995 | + | then true | |
996 | + | else false | |
997 | + | ||
998 | + | ||
999 | + | func rouletteWin (rand,bet) = if (if ((bet >= 0)) | |
980 | 1000 | then (36 >= bet) | |
981 | 1001 | else false) | |
982 | - | then if ((num == bet)) | |
983 | - | then (35 * betValuet) | |
984 | - | else 0 | |
1002 | + | then straightUpBet(rand, bet) | |
985 | 1003 | else if (if ((bet >= 37)) | |
986 | 1004 | then (96 >= bet) | |
987 | 1005 | else false) | |
988 | - | then | |
1006 | + | then splitBet(rand, bet) | |
989 | 1007 | else if (if ((bet >= 97)) | |
990 | 1008 | then (110 >= bet) | |
991 | 1009 | else false) | |
992 | - | then | |
1010 | + | then streetBet(rand, bet) | |
993 | 1011 | else if (if ((bet >= 111)) | |
994 | 1012 | then (133 >= bet) | |
995 | 1013 | else false) | |
996 | - | then | |
1014 | + | then cornerBet(rand, bet) | |
997 | 1015 | else if (if ((bet >= 134)) | |
998 | 1016 | then (144 >= bet) | |
999 | 1017 | else false) | |
1000 | - | then | |
1018 | + | then lineBet(rand, bet) | |
1001 | 1019 | else if (if ((bet >= 145)) | |
1002 | 1020 | then (147 >= bet) | |
1003 | 1021 | else false) | |
1004 | - | then | |
1022 | + | then columnBet(rand, bet) | |
1005 | 1023 | else if (if ((bet >= 148)) | |
1006 | 1024 | then (150 >= bet) | |
1007 | 1025 | else false) | |
1008 | - | then | |
1026 | + | then dozenBet(rand, bet) | |
1009 | 1027 | else if (if ((bet == 151)) | |
1010 | 1028 | then true | |
1011 | 1029 | else (bet == 152)) | |
1012 | - | then | |
1030 | + | then colorBet(rand, bet) | |
1013 | 1031 | else if (if ((bet == 153)) | |
1014 | 1032 | then true | |
1015 | 1033 | else (bet == 154)) | |
1016 | - | then | |
1034 | + | then evenOddBet(rand, bet) | |
1017 | 1035 | else if (if ((bet == 155)) | |
1018 | 1036 | then true | |
1019 | 1037 | else (bet == 156)) | |
1020 | - | then if (if (if ((bet == 155)) | |
1021 | - | then (num >= 1) | |
1022 | - | else false) | |
1023 | - | then (18 >= num) | |
1024 | - | else false) | |
1025 | - | then (1 * betValuet) | |
1026 | - | else if (if (if ((bet == 156)) | |
1027 | - | then (num >= 19) | |
1028 | - | else false) | |
1029 | - | then (36 >= num) | |
1030 | - | else false) | |
1031 | - | then (1 * betValuet) | |
1032 | - | else 0 | |
1033 | - | else throw("Random number out of range, 0 <= rand <= 36") | |
1038 | + | then lowHighBet(rand, bet) | |
1039 | + | else throw("Random randber out of range, 0 <= rand <= 36") | |
1034 | 1040 | ||
1035 | 1041 | ||
1036 | - | func IncrementGameNum () = { | |
1037 | - | let gameNum = match getInteger(this, GAMESCOUNTERKEY) { | |
1042 | + | func getWinAmount (bet,amount) = if (if ((bet >= 0)) | |
1043 | + | then (36 >= bet) | |
1044 | + | else false) | |
1045 | + | then (amount * 35) | |
1046 | + | else if (if ((bet >= 37)) | |
1047 | + | then (96 >= bet) | |
1048 | + | else false) | |
1049 | + | then (amount * 17) | |
1050 | + | else if (if ((bet >= 97)) | |
1051 | + | then (110 >= bet) | |
1052 | + | else false) | |
1053 | + | then (amount * 11) | |
1054 | + | else if (if ((bet >= 111)) | |
1055 | + | then (133 >= bet) | |
1056 | + | else false) | |
1057 | + | then (amount * 8) | |
1058 | + | else if (if ((bet >= 134)) | |
1059 | + | then (144 >= bet) | |
1060 | + | else false) | |
1061 | + | then (amount * 5) | |
1062 | + | else if (if ((bet >= 145)) | |
1063 | + | then (147 >= bet) | |
1064 | + | else false) | |
1065 | + | then (amount * 2) | |
1066 | + | else if (if ((bet >= 148)) | |
1067 | + | then (150 >= bet) | |
1068 | + | else false) | |
1069 | + | then (amount * 2) | |
1070 | + | else if (if ((bet == 151)) | |
1071 | + | then true | |
1072 | + | else (bet == 152)) | |
1073 | + | then (amount * 2) | |
1074 | + | else if (if ((bet == 153)) | |
1075 | + | then true | |
1076 | + | else (bet == 154)) | |
1077 | + | then amount | |
1078 | + | else if (if ((bet == 155)) | |
1079 | + | then true | |
1080 | + | else (bet == 156)) | |
1081 | + | then amount | |
1082 | + | else throw("Bet number out of range, 0 <= rand <= 156") | |
1083 | + | ||
1084 | + | ||
1085 | + | func IncrementValue (value) = { | |
1086 | + | let provNum = match getInteger(this, value) { | |
1038 | 1087 | case num: Int => | |
1039 | 1088 | num | |
1040 | 1089 | case _ => | |
1041 | 1090 | 0 | |
1042 | 1091 | } | |
1043 | - | ( | |
1092 | + | (provNum + 1) | |
1044 | 1093 | } | |
1045 | 1094 | ||
1046 | 1095 | ||
1047 | - | func | |
1096 | + | func ExtractValue (value) = match getInteger(this, value) { | |
1048 | 1097 | case a: Int => | |
1049 | 1098 | a | |
1050 | 1099 | case _ => | |
1053 | 1102 | ||
1054 | 1103 | ||
1055 | 1104 | func ValidateAndIncreaseReservedAmt (winAmt) = { | |
1056 | - | let newReservedAmount = ( | |
1105 | + | let newReservedAmount = (ExtractValue(RESERVATIONKEY) + winAmt) | |
1057 | 1106 | let balance = assetBalance(this, WBET) | |
1058 | 1107 | if ((newReservedAmount > balance)) | |
1059 | 1108 | then throw("Insufficient funds on Wavesbet Dice account. Transaction was rejected for your safety.") | |
1061 | 1110 | } | |
1062 | 1111 | ||
1063 | 1112 | ||
1113 | + | func DecreaseReservedAmt (winAmt) = { | |
1114 | + | let newReservedAmount = (ExtractValue(RESERVATIONKEY) - winAmt) | |
1115 | + | if ((0 > newReservedAmount)) | |
1116 | + | then throw("Invalid roulette account state - reserved amount is less than 0") | |
1117 | + | else DataEntry(RESERVATIONKEY, newReservedAmount) | |
1118 | + | } | |
1119 | + | ||
1120 | + | ||
1064 | 1121 | func GenerateRandInt (gameId,rsaSign) = { | |
1065 | 1122 | let rsaSigValid = rsaVerify(SHA256, toBytes(gameId), rsaSign, RSAPUBLIC) | |
1066 | 1123 | if (rsaSigValid) | |
1067 | 1124 | then { | |
1068 | - | let rand = (toInt(sha256(rsaSign)) % | |
1125 | + | let rand = (toInt(sha256(rsaSign)) % 37) | |
1069 | 1126 | if ((0 > rand)) | |
1070 | 1127 | then ((-1 * rand) + 1) | |
1071 | 1128 | else (rand + 1) | |
1081 | 1138 | else throw(("Unsupported r parameter passed: expected=[0,...,36] actual=" + toString(r))) | |
1082 | 1139 | ||
1083 | 1140 | ||
1084 | - | func validateBet (bet,betValue) = if (if ((0 > bet)) | |
1085 | - | then true | |
1086 | - | else (bet > 156)) | |
1087 | - | then throw("invalid play, play must be between 0 and 156.") | |
1088 | - | else if ((0 > betValue)) | |
1089 | - | then throw("Bet value must be greater than or equal to 0") | |
1090 | - | else if ((10 > bet)) | |
1091 | - | then ((("00" + toString(bet)) + "-") + toString(betValue)) | |
1092 | - | else if (if ((bet >= 10)) | |
1093 | - | then (100 > bet) | |
1094 | - | else false) | |
1095 | - | then ((("0" + toString(bet)) + "-") + toString(betValue)) | |
1096 | - | else ((toString(bet) + "-") + toString(betValue)) | |
1097 | - | ||
1098 | - | ||
1099 | - | func ExtractGameDataList (gameId) = { | |
1100 | - | let rawDataStr = match getString(this, gameId) { | |
1141 | + | func ExtractString (id) = { | |
1142 | + | let rawDataStr = match getString(this, id) { | |
1101 | 1143 | case str: String => | |
1102 | 1144 | str | |
1103 | 1145 | case _ => | |
1104 | - | throw(("Couldn't find | |
1146 | + | throw(("Couldn't find string by " + id)) | |
1105 | 1147 | } | |
1106 | - | split(rawDataStr, "_") | |
1148 | + | rawDataStr | |
1149 | + | } | |
1150 | + | ||
1151 | + | ||
1152 | + | func GetGameId (gameNumber) = { | |
1153 | + | let str = toString(gameNumber) | |
1154 | + | if ((0 > gameNumber)) | |
1155 | + | then throw("Game number must not have negative value, pass 0 to a new game or an existing game number") | |
1156 | + | else if ((gameNumber == 0)) | |
1157 | + | then ((toString(IncrementValue(GAMESCOUNTERKEY)) + "_") + "1") | |
1158 | + | else ((str + "_") + toString(IncrementValue(str))) | |
1159 | + | } | |
1160 | + | ||
1161 | + | ||
1162 | + | func getWriteSet (gameNumber,winAmt,gameId,gameDataStr) = { | |
1163 | + | let strGameN = toString(gameNumber) | |
1164 | + | if ((gameNumber == 0)) | |
1165 | + | then WriteSet([DataEntry(GAMESCOUNTERKEY, IncrementValue(GAMESCOUNTERKEY)), DataEntry(RESERVATIONKEY, ValidateAndIncreaseReservedAmt(winAmt)), DataEntry(strGameN, 1), DataEntry(gameId, gameDataStr)]) | |
1166 | + | else WriteSet([DataEntry(RESERVATIONKEY, ValidateAndIncreaseReservedAmt(winAmt)), DataEntry(strGameN, IncrementValue(strGameN)), DataEntry(gameId, gameDataStr)]) | |
1107 | 1167 | } | |
1108 | 1168 | ||
1109 | 1169 | ||
1110 | 1170 | @Callable(i) | |
1111 | - | func playRoulette (bet1,val1,bet2,val2,bet3,val3) = { | |
1112 | - | let gameId = toBase58String(i.transactionId) | |
1113 | - | let gameIdUsed = isDefined(getString(this, gameId)) | |
1171 | + | func playRoulette (bet,gameNumber) = { | |
1172 | + | let betId = toBase58String(i.transactionId) | |
1114 | 1173 | let payment = extract(i.payment) | |
1115 | 1174 | let feeAssetId = isDefined(i.feeAssetId) | |
1116 | 1175 | let playerBalance = wavesBalance(i.caller) | |
1117 | - | let playAmount = (((val1 + val2) + val3) * WAVELET) | |
1176 | + | let gameId = GetGameId(gameNumber) | |
1177 | + | let gameIdUsed = isDefined(getString(this, gameId)) | |
1178 | + | let winAmt = getWinAmount(bet, payment.amount) | |
1118 | 1179 | if ((payment.assetId != WBET)) | |
1119 | 1180 | then throw("Payment should be in Wavesbet") | |
1120 | 1181 | else if ((1000000 > playerBalance)) | |
1123 | 1184 | then throw("Transaction's fee must be in Waves. Game aborted.") | |
1124 | 1185 | else if (gameIdUsed) | |
1125 | 1186 | then throw("Passed gameId had been used before. Game aborted.") | |
1126 | - | else if ((playAmount != payment.amount)) | |
1127 | - | then throw("Payment value is different from bet value. ") | |
1128 | - | else { | |
1129 | - | let newGameNum = IncrementGameNum() | |
1130 | - | let playerPubKey58 = toBase58String(i.callerPublicKey) | |
1131 | - | let gameDataStr = (((((((("SUBMITTED" + "_") + playerPubKey58) + "_") + validateBet(bet1, val1)) + "_") + validateBet(bet2, val2)) + "_") + validateBet(bet3, val3)) | |
1132 | - | ScriptResult(WriteSet([DataEntry(GAMESCOUNTERKEY, newGameNum), DataEntry(gameId, gameDataStr)]), TransferSet(nil)) | |
1133 | - | } | |
1187 | + | else { | |
1188 | + | let playerPubKey58 = toBase58String(i.callerPublicKey) | |
1189 | + | let gameDataStr = (((((("SUBMITTED" + "_") + toString(bet)) + "_") + playerPubKey58) + "_") + toString(winAmt)) | |
1190 | + | ScriptResult(getWriteSet(gameNumber, winAmt, gameId, gameDataStr), TransferSet(nil)) | |
1191 | + | } | |
1134 | 1192 | } | |
1135 | 1193 | ||
1136 | 1194 | ||
1137 | 1195 | ||
1138 | 1196 | @Callable(i) | |
1139 | 1197 | func withdraw (gameId,rsaSig) = { | |
1140 | - | let gameDataList = | |
1198 | + | let gameDataList = split(ExtractString(gameId), "_") | |
1141 | 1199 | let gameState = gameDataList[0] | |
1142 | - | let playerPubKey58 = gameDataList[1] | |
1200 | + | let bet = parseIntValue(gameDataList[1]) | |
1201 | + | let playerPubKey58 = gameDataList[2] | |
1202 | + | let winAmt = parseIntValue(gameDataList[3]) | |
1143 | 1203 | let playerAddress = addressFromPublicKey(fromBase58String(playerPubKey58)) | |
1204 | + | let decreasedReserves = DecreaseReservedAmt(winAmt) | |
1144 | 1205 | if ((gameState != "SUBMITTED")) | |
1145 | 1206 | then throw("Invalid game state for passed gameId. Game aborted. ") | |
1146 | 1207 | else { | |
1147 | - | let rand = GenerateRandInt(gameId, rsaSig) | |
1208 | + | let prov = split(gameId, "_") | |
1209 | + | let game = prov[0] | |
1210 | + | let gameNum = ExtractString(game) | |
1211 | + | let rand = GenerateRandInt(ExtractString(gameNum), rsaSig) | |
1148 | 1212 | let randStr = RandToStr(rand) | |
1149 | - | let result1 = rouletteCalc(rand, parseIntValue(take(gameDataList[2], 3)), parseIntValue(drop(gameDataList[2], 4))) | |
1150 | - | let result2 = rouletteCalc(rand, parseIntValue(take(gameDataList[3], 3)), parseIntValue(drop(gameDataList[3], 4))) | |
1151 | - | let result3 = rouletteCalc(rand, parseIntValue(take(gameDataList[4], 3)), parseIntValue(drop(gameDataList[4], 4))) | |
1152 | - | let winAmt = (((result1 + result2) + result3) * WAVELET) | |
1153 | - | if ((winAmt > 0)) | |
1213 | + | if (rouletteWin(rand, bet)) | |
1154 | 1214 | then { | |
1155 | - | let newGameDataStr = (((((((( | |
1156 | - | ScriptResult(WriteSet([DataEntry(gameId, newGameDataStr)]), TransferSet([ScriptTransfer(playerAddress, winAmt, WBET)])) | |
1215 | + | let newGameDataStr = (((((((("WON" + "_") + gameDataList[1]) + "_") + playerPubKey58) + "_") + gameDataList[3]) + "_") + randStr) | |
1216 | + | ScriptResult(WriteSet([DataEntry(gameId, newGameDataStr), decreasedReserves]), TransferSet([ScriptTransfer(playerAddress, winAmt, WBET)])) | |
1157 | 1217 | } | |
1158 | 1218 | else { | |
1159 | - | let newGameDataStr = (((((((( | |
1219 | + | let newGameDataStr = (((((((("LOST" + "_") + gameDataList[1]) + "_") + playerPubKey58) + "_") + gameDataList[3]) + "_") + randStr) | |
1160 | 1220 | WriteSet([DataEntry(gameId, newGameDataStr)]) | |
1161 | 1221 | } | |
1162 | 1222 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let RSAPUBLIC = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAg4dAR6XbBDAS9hr/Ej3dJv6Ffc466x/mOGMWU3lrABs3qa8BHmuJGnkfbpEf2vAwYTOWPvvzfM10OBbfloSyq3c9MKvyTe1luBLGqW4vZUXIyvSgz1liyUVefIQy3dyF9jbeTZbC0bbcT/7O3DEL+01z6A+rDCacSZ0lGolSQ6AnhLxzIkVpOQJbrBmC+x+ZuZPCMWzJynd5aeOn7jaj/mkRVyxe6g/0OhWz4NiiZXeuMRB+8mKy0fWD/UlIlZWHsAS2ZmrkXKqjLq0/0wr8ILJkznjSqdnI5Ibjg3uQrj/4AN+i9r28aQ73/ZkPtY5Sbw0AOiABBu7gHmq9ayVxZQIDAQAB") | |
5 | 5 | ||
6 | 6 | let GAMESCOUNTERKEY = "$GAME_NUM" | |
7 | 7 | ||
8 | 8 | let RESERVATIONKEY = "$RESERVED_AMOUNT" | |
9 | 9 | ||
10 | 10 | let WBET = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw' | |
11 | 11 | ||
12 | 12 | let WALLETWAVESBET = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8') | |
13 | 13 | ||
14 | 14 | let WALLETMCAFEE = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8') | |
15 | 15 | ||
16 | 16 | let WAVELET = 100000000 | |
17 | 17 | ||
18 | 18 | let FEEWAVESBET = 4 | |
19 | 19 | ||
20 | 20 | let FEEMCAFEE = 2 | |
21 | 21 | ||
22 | 22 | let BETMIN = (1 * WAVELET) | |
23 | 23 | ||
24 | 24 | let BETMAX = (20000000 * WAVELET) | |
25 | 25 | ||
26 | - | func splitBet (num,bet) = if (if ((num == 0)) | |
26 | + | func straightUpBet (rand,bet) = if ((rand == bet)) | |
27 | + | then true | |
28 | + | else false | |
29 | + | ||
30 | + | ||
31 | + | func splitBet (rand,bet) = if (if ((rand == 0)) | |
27 | 32 | then if (if ((bet == 37)) | |
28 | 33 | then true | |
29 | 34 | else (bet == 38)) | |
30 | 35 | then true | |
31 | 36 | else (bet == 39) | |
32 | 37 | else false) | |
33 | - | then | |
34 | - | else if (if (( | |
38 | + | then true | |
39 | + | else if (if ((rand == 1)) | |
35 | 40 | then if (if ((bet == 37)) | |
36 | 41 | then true | |
37 | 42 | else (bet == 40)) | |
38 | 43 | then true | |
39 | 44 | else (bet == 85) | |
40 | 45 | else false) | |
41 | - | then | |
42 | - | else if (if (( | |
46 | + | then true | |
47 | + | else if (if ((rand == 1)) | |
43 | 48 | then if (if ((bet == 37)) | |
44 | 49 | then true | |
45 | 50 | else (bet == 40)) | |
46 | 51 | then true | |
47 | 52 | else (bet == 85) | |
48 | 53 | else false) | |
49 | - | then | |
50 | - | else if (if (( | |
54 | + | then true | |
55 | + | else if (if ((rand == 2)) | |
51 | 56 | then if (if (if ((bet == 38)) | |
52 | 57 | then true | |
53 | 58 | else (bet == 41)) | |
54 | 59 | then true | |
55 | 60 | else (bet == 73)) | |
56 | 61 | then true | |
57 | 62 | else (bet == 85) | |
58 | 63 | else false) | |
59 | - | then | |
60 | - | else if (if (( | |
64 | + | then true | |
65 | + | else if (if ((rand == 3)) | |
61 | 66 | then if (if ((bet == 39)) | |
62 | 67 | then true | |
63 | 68 | else (bet == 42)) | |
64 | 69 | then true | |
65 | 70 | else (bet == 73) | |
66 | 71 | else false) | |
67 | - | then | |
68 | - | else if (if (( | |
72 | + | then true | |
73 | + | else if (if ((rand == 4)) | |
69 | 74 | then if (if ((bet == 40)) | |
70 | 75 | then true | |
71 | 76 | else (bet == 43)) | |
72 | 77 | then true | |
73 | 78 | else (bet == 86) | |
74 | 79 | else false) | |
75 | - | then | |
76 | - | else if (if (( | |
80 | + | then true | |
81 | + | else if (if ((rand == 5)) | |
77 | 82 | then if (if (if ((bet == 41)) | |
78 | 83 | then true | |
79 | 84 | else (bet == 44)) | |
80 | 85 | then true | |
81 | 86 | else (bet == 74)) | |
82 | 87 | then true | |
83 | 88 | else (bet == 86) | |
84 | 89 | else false) | |
85 | - | then | |
86 | - | else if (if (( | |
90 | + | then true | |
91 | + | else if (if ((rand == 6)) | |
87 | 92 | then if (if ((bet == 42)) | |
88 | 93 | then true | |
89 | 94 | else (bet == 45)) | |
90 | 95 | then true | |
91 | 96 | else (bet == 74) | |
92 | 97 | else false) | |
93 | - | then | |
94 | - | else if (if (( | |
98 | + | then true | |
99 | + | else if (if ((rand == 7)) | |
95 | 100 | then if (if ((bet == 43)) | |
96 | 101 | then true | |
97 | 102 | else (bet == 46)) | |
98 | 103 | then true | |
99 | 104 | else (bet == 87) | |
100 | 105 | else false) | |
101 | - | then | |
102 | - | else if (if (( | |
106 | + | then true | |
107 | + | else if (if ((rand == 8)) | |
103 | 108 | then if (if (if ((bet == 44)) | |
104 | 109 | then true | |
105 | 110 | else (bet == 47)) | |
106 | 111 | then true | |
107 | 112 | else (bet == 75)) | |
108 | 113 | then true | |
109 | 114 | else (bet == 87) | |
110 | 115 | else false) | |
111 | - | then | |
112 | - | else if (if (( | |
116 | + | then true | |
117 | + | else if (if ((rand == 9)) | |
113 | 118 | then if (if ((bet == 45)) | |
114 | 119 | then true | |
115 | 120 | else (bet == 48)) | |
116 | 121 | then true | |
117 | 122 | else (bet == 75) | |
118 | 123 | else false) | |
119 | - | then | |
120 | - | else if (if (( | |
124 | + | then true | |
125 | + | else if (if ((rand == 10)) | |
121 | 126 | then if (if ((bet == 46)) | |
122 | 127 | then true | |
123 | 128 | else (bet == 49)) | |
124 | 129 | then true | |
125 | 130 | else (bet == 88) | |
126 | 131 | else false) | |
127 | - | then | |
128 | - | else if (if (( | |
132 | + | then true | |
133 | + | else if (if ((rand == 11)) | |
129 | 134 | then if (if (if ((bet == 47)) | |
130 | 135 | then true | |
131 | 136 | else (bet == 50)) | |
132 | 137 | then true | |
133 | 138 | else (bet == 76)) | |
134 | 139 | then true | |
135 | 140 | else (bet == 88) | |
136 | 141 | else false) | |
137 | - | then | |
138 | - | else if (if (( | |
142 | + | then true | |
143 | + | else if (if ((rand == 12)) | |
139 | 144 | then if (if ((bet == 48)) | |
140 | 145 | then true | |
141 | 146 | else (bet == 51)) | |
142 | 147 | then true | |
143 | 148 | else (bet == 76) | |
144 | 149 | else false) | |
145 | - | then | |
146 | - | else if (if (( | |
150 | + | then true | |
151 | + | else if (if ((rand == 13)) | |
147 | 152 | then if (if ((bet == 49)) | |
148 | 153 | then true | |
149 | 154 | else (bet == 52)) | |
150 | 155 | then true | |
151 | 156 | else (bet == 89) | |
152 | 157 | else false) | |
153 | - | then | |
154 | - | else if (if (( | |
158 | + | then true | |
159 | + | else if (if ((rand == 14)) | |
155 | 160 | then if (if (if ((bet == 50)) | |
156 | 161 | then true | |
157 | 162 | else (bet == 53)) | |
158 | 163 | then true | |
159 | 164 | else (bet == 77)) | |
160 | 165 | then true | |
161 | 166 | else (bet == 89) | |
162 | 167 | else false) | |
163 | - | then | |
164 | - | else if (if (( | |
168 | + | then true | |
169 | + | else if (if ((rand == 15)) | |
165 | 170 | then if (if ((bet == 51)) | |
166 | 171 | then true | |
167 | 172 | else (bet == 54)) | |
168 | 173 | then true | |
169 | 174 | else (bet == 77) | |
170 | 175 | else false) | |
171 | - | then | |
172 | - | else if (if (( | |
176 | + | then true | |
177 | + | else if (if ((rand == 16)) | |
173 | 178 | then if (if ((bet == 52)) | |
174 | 179 | then true | |
175 | 180 | else (bet == 55)) | |
176 | 181 | then true | |
177 | 182 | else (bet == 90) | |
178 | 183 | else false) | |
179 | - | then | |
180 | - | else if (if (( | |
184 | + | then true | |
185 | + | else if (if ((rand == 17)) | |
181 | 186 | then if (if (if ((bet == 53)) | |
182 | 187 | then true | |
183 | 188 | else (bet == 56)) | |
184 | 189 | then true | |
185 | 190 | else (bet == 78)) | |
186 | 191 | then true | |
187 | 192 | else (bet == 90) | |
188 | 193 | else false) | |
189 | - | then | |
190 | - | else if (if (( | |
194 | + | then true | |
195 | + | else if (if ((rand == 18)) | |
191 | 196 | then if (if ((bet == 54)) | |
192 | 197 | then true | |
193 | 198 | else (bet == 57)) | |
194 | 199 | then true | |
195 | 200 | else (bet == 78) | |
196 | 201 | else false) | |
197 | - | then | |
198 | - | else if (if (( | |
202 | + | then true | |
203 | + | else if (if ((rand == 19)) | |
199 | 204 | then if (if ((bet == 55)) | |
200 | 205 | then true | |
201 | 206 | else (bet == 58)) | |
202 | 207 | then true | |
203 | 208 | else (bet == 91) | |
204 | 209 | else false) | |
205 | - | then | |
206 | - | else if (if (( | |
210 | + | then true | |
211 | + | else if (if ((rand == 20)) | |
207 | 212 | then if (if (if ((bet == 56)) | |
208 | 213 | then true | |
209 | 214 | else (bet == 59)) | |
210 | 215 | then true | |
211 | 216 | else (bet == 79)) | |
212 | 217 | then true | |
213 | 218 | else (bet == 91) | |
214 | 219 | else false) | |
215 | - | then | |
216 | - | else if (if (( | |
220 | + | then true | |
221 | + | else if (if ((rand == 21)) | |
217 | 222 | then if (if ((bet == 57)) | |
218 | 223 | then true | |
219 | 224 | else (bet == 60)) | |
220 | 225 | then true | |
221 | 226 | else (bet == 79) | |
222 | 227 | else false) | |
223 | - | then | |
224 | - | else if (if (( | |
228 | + | then true | |
229 | + | else if (if ((rand == 22)) | |
225 | 230 | then if (if ((bet == 58)) | |
226 | 231 | then true | |
227 | 232 | else (bet == 61)) | |
228 | 233 | then true | |
229 | 234 | else (bet == 92) | |
230 | 235 | else false) | |
231 | - | then | |
232 | - | else if (if (( | |
236 | + | then true | |
237 | + | else if (if ((rand == 23)) | |
233 | 238 | then if (if (if ((bet == 59)) | |
234 | 239 | then true | |
235 | 240 | else (bet == 62)) | |
236 | 241 | then true | |
237 | 242 | else (bet == 80)) | |
238 | 243 | then true | |
239 | 244 | else (bet == 92) | |
240 | 245 | else false) | |
241 | - | then | |
242 | - | else if (if (( | |
246 | + | then true | |
247 | + | else if (if ((rand == 24)) | |
243 | 248 | then if (if ((bet == 60)) | |
244 | 249 | then true | |
245 | 250 | else (bet == 63)) | |
246 | 251 | then true | |
247 | 252 | else (bet == 80) | |
248 | 253 | else false) | |
249 | - | then | |
250 | - | else if (if (( | |
254 | + | then true | |
255 | + | else if (if ((rand == 25)) | |
251 | 256 | then if (if ((bet == 61)) | |
252 | 257 | then true | |
253 | 258 | else (bet == 64)) | |
254 | 259 | then true | |
255 | 260 | else (bet == 93) | |
256 | 261 | else false) | |
257 | - | then | |
258 | - | else if (if (( | |
262 | + | then true | |
263 | + | else if (if ((rand == 26)) | |
259 | 264 | then if (if (if ((bet == 62)) | |
260 | 265 | then true | |
261 | 266 | else (bet == 65)) | |
262 | 267 | then true | |
263 | 268 | else (bet == 81)) | |
264 | 269 | then true | |
265 | 270 | else (bet == 93) | |
266 | 271 | else false) | |
267 | - | then | |
268 | - | else if (if (( | |
272 | + | then true | |
273 | + | else if (if ((rand == 27)) | |
269 | 274 | then if (if ((bet == 63)) | |
270 | 275 | then true | |
271 | 276 | else (bet == 66)) | |
272 | 277 | then true | |
273 | 278 | else (bet == 81) | |
274 | 279 | else false) | |
275 | - | then | |
276 | - | else if (if (( | |
280 | + | then true | |
281 | + | else if (if ((rand == 28)) | |
277 | 282 | then if (if ((bet == 64)) | |
278 | 283 | then true | |
279 | 284 | else (bet == 67)) | |
280 | 285 | then true | |
281 | 286 | else (bet == 94) | |
282 | 287 | else false) | |
283 | - | then | |
284 | - | else if (if (( | |
288 | + | then true | |
289 | + | else if (if ((rand == 29)) | |
285 | 290 | then if (if (if ((bet == 65)) | |
286 | 291 | then true | |
287 | 292 | else (bet == 68)) | |
288 | 293 | then true | |
289 | 294 | else (bet == 82)) | |
290 | 295 | then true | |
291 | 296 | else (bet == 94) | |
292 | 297 | else false) | |
293 | - | then | |
294 | - | else if (if (( | |
298 | + | then true | |
299 | + | else if (if ((rand == 30)) | |
295 | 300 | then if (if ((bet == 66)) | |
296 | 301 | then true | |
297 | 302 | else (bet == 69)) | |
298 | 303 | then true | |
299 | 304 | else (bet == 82) | |
300 | 305 | else false) | |
301 | - | then | |
302 | - | else if (if (( | |
306 | + | then true | |
307 | + | else if (if ((rand == 31)) | |
303 | 308 | then if (if ((bet == 67)) | |
304 | 309 | then true | |
305 | 310 | else (bet == 70)) | |
306 | 311 | then true | |
307 | 312 | else (bet == 95) | |
308 | 313 | else false) | |
309 | - | then | |
310 | - | else if (if (( | |
314 | + | then true | |
315 | + | else if (if ((rand == 32)) | |
311 | 316 | then if (if (if ((bet == 68)) | |
312 | 317 | then true | |
313 | 318 | else (bet == 71)) | |
314 | 319 | then true | |
315 | 320 | else (bet == 83)) | |
316 | 321 | then true | |
317 | 322 | else (bet == 95) | |
318 | 323 | else false) | |
319 | - | then | |
320 | - | else if (if (( | |
324 | + | then true | |
325 | + | else if (if ((rand == 33)) | |
321 | 326 | then if (if ((bet == 69)) | |
322 | 327 | then true | |
323 | 328 | else (bet == 72)) | |
324 | 329 | then true | |
325 | 330 | else (bet == 83) | |
326 | 331 | else false) | |
327 | - | then | |
328 | - | else if (if (( | |
332 | + | then true | |
333 | + | else if (if ((rand == 34)) | |
329 | 334 | then if ((bet == 70)) | |
330 | 335 | then true | |
331 | 336 | else (bet == 96) | |
332 | 337 | else false) | |
333 | - | then | |
334 | - | else if (if (if (( | |
338 | + | then true | |
339 | + | else if (if (if ((rand == 35)) | |
335 | 340 | then if (if ((bet == 71)) | |
336 | 341 | then true | |
337 | 342 | else (bet == 84)) | |
338 | 343 | then true | |
339 | 344 | else (bet == 96) | |
340 | 345 | else false) | |
341 | 346 | then true | |
342 | - | else if (( | |
347 | + | else if ((rand == 36)) | |
343 | 348 | then if ((bet == 72)) | |
344 | 349 | then true | |
345 | 350 | else (bet == 84) | |
346 | 351 | else false) | |
347 | - | then | |
348 | - | else if (if (( | |
352 | + | then true | |
353 | + | else if (if ((rand == 36)) | |
349 | 354 | then if ((bet == 72)) | |
350 | 355 | then true | |
351 | 356 | else (bet == 84) | |
352 | 357 | else false) | |
353 | - | then | |
354 | - | else | |
358 | + | then true | |
359 | + | else false | |
355 | 360 | ||
356 | 361 | ||
357 | - | func streetBet ( | |
358 | - | then if (if (( | |
362 | + | func streetBet (rand,bet) = if (if ((bet == 97)) | |
363 | + | then if (if ((rand == 0)) | |
359 | 364 | then true | |
360 | - | else ( | |
365 | + | else (rand == 1)) | |
361 | 366 | then true | |
362 | - | else ( | |
367 | + | else (rand == 2) | |
363 | 368 | else false) | |
364 | - | then | |
369 | + | then true | |
365 | 370 | else if (if ((bet == 98)) | |
366 | - | then if (if (( | |
371 | + | then if (if ((rand == 0)) | |
367 | 372 | then true | |
368 | - | else ( | |
373 | + | else (rand == 2)) | |
369 | 374 | then true | |
370 | - | else ( | |
375 | + | else (rand == 3) | |
371 | 376 | else false) | |
372 | - | then | |
377 | + | then true | |
373 | 378 | else if (if ((bet == 99)) | |
374 | - | then if (if (( | |
379 | + | then if (if ((rand == 1)) | |
375 | 380 | then true | |
376 | - | else ( | |
381 | + | else (rand == 2)) | |
377 | 382 | then true | |
378 | - | else ( | |
383 | + | else (rand == 3) | |
379 | 384 | else false) | |
380 | - | then | |
385 | + | then true | |
381 | 386 | else if (if ((bet == 100)) | |
382 | - | then if (if (( | |
387 | + | then if (if ((rand == 4)) | |
383 | 388 | then true | |
384 | - | else ( | |
389 | + | else (rand == 5)) | |
385 | 390 | then true | |
386 | - | else ( | |
391 | + | else (rand == 6) | |
387 | 392 | else false) | |
388 | - | then | |
393 | + | then true | |
389 | 394 | else if (if ((bet == 101)) | |
390 | - | then if (if (( | |
395 | + | then if (if ((rand == 7)) | |
391 | 396 | then true | |
392 | - | else ( | |
397 | + | else (rand == 8)) | |
393 | 398 | then true | |
394 | - | else ( | |
399 | + | else (rand == 9) | |
395 | 400 | else false) | |
396 | - | then | |
401 | + | then true | |
397 | 402 | else if (if ((bet == 102)) | |
398 | - | then if (if (( | |
403 | + | then if (if ((rand == 10)) | |
399 | 404 | then true | |
400 | - | else ( | |
405 | + | else (rand == 11)) | |
401 | 406 | then true | |
402 | - | else ( | |
407 | + | else (rand == 12) | |
403 | 408 | else false) | |
404 | - | then | |
409 | + | then true | |
405 | 410 | else if (if ((bet == 103)) | |
406 | - | then if (if (( | |
411 | + | then if (if ((rand == 13)) | |
407 | 412 | then true | |
408 | - | else ( | |
413 | + | else (rand == 14)) | |
409 | 414 | then true | |
410 | - | else ( | |
415 | + | else (rand == 15) | |
411 | 416 | else false) | |
412 | - | then | |
417 | + | then true | |
413 | 418 | else if (if ((bet == 104)) | |
414 | - | then if (if (( | |
419 | + | then if (if ((rand == 16)) | |
415 | 420 | then true | |
416 | - | else ( | |
421 | + | else (rand == 17)) | |
417 | 422 | then true | |
418 | - | else ( | |
423 | + | else (rand == 18) | |
419 | 424 | else false) | |
420 | - | then | |
425 | + | then true | |
421 | 426 | else if (if ((bet == 105)) | |
422 | - | then if (if (( | |
427 | + | then if (if ((rand == 19)) | |
423 | 428 | then true | |
424 | - | else ( | |
429 | + | else (rand == 20)) | |
425 | 430 | then true | |
426 | - | else ( | |
431 | + | else (rand == 21) | |
427 | 432 | else false) | |
428 | - | then | |
433 | + | then true | |
429 | 434 | else if (if ((bet == 106)) | |
430 | - | then if (if (( | |
435 | + | then if (if ((rand == 22)) | |
431 | 436 | then true | |
432 | - | else ( | |
437 | + | else (rand == 23)) | |
433 | 438 | then true | |
434 | - | else ( | |
439 | + | else (rand == 24) | |
435 | 440 | else false) | |
436 | - | then | |
441 | + | then true | |
437 | 442 | else if (if ((bet == 107)) | |
438 | - | then if (if (( | |
443 | + | then if (if ((rand == 25)) | |
439 | 444 | then true | |
440 | - | else ( | |
445 | + | else (rand == 26)) | |
441 | 446 | then true | |
442 | - | else ( | |
447 | + | else (rand == 27) | |
443 | 448 | else false) | |
444 | - | then | |
449 | + | then true | |
445 | 450 | else if (if ((bet == 108)) | |
446 | - | then if (if (( | |
451 | + | then if (if ((rand == 28)) | |
447 | 452 | then true | |
448 | - | else ( | |
453 | + | else (rand == 29)) | |
449 | 454 | then true | |
450 | - | else ( | |
455 | + | else (rand == 30) | |
451 | 456 | else false) | |
452 | - | then | |
457 | + | then true | |
453 | 458 | else if (if ((bet == 109)) | |
454 | - | then if (if (( | |
459 | + | then if (if ((rand == 31)) | |
455 | 460 | then true | |
456 | - | else ( | |
461 | + | else (rand == 32)) | |
457 | 462 | then true | |
458 | - | else ( | |
463 | + | else (rand == 33) | |
459 | 464 | else false) | |
460 | - | then | |
465 | + | then true | |
461 | 466 | else if (if ((bet == 110)) | |
462 | - | then if (if (( | |
467 | + | then if (if ((rand == 34)) | |
463 | 468 | then true | |
464 | - | else ( | |
469 | + | else (rand == 35)) | |
465 | 470 | then true | |
466 | - | else ( | |
471 | + | else (rand == 36) | |
467 | 472 | else false) | |
468 | - | then | |
469 | - | else | |
473 | + | then true | |
474 | + | else false | |
470 | 475 | ||
471 | 476 | ||
472 | - | func cornerBet ( | |
473 | - | then if (if (if (( | |
477 | + | func cornerBet (rand,bet) = if (if ((bet == 111)) | |
478 | + | then if (if (if ((rand == 0)) | |
474 | 479 | then true | |
475 | - | else ( | |
480 | + | else (rand == 1)) | |
476 | 481 | then true | |
477 | - | else ( | |
482 | + | else (rand == 2)) | |
478 | 483 | then true | |
479 | - | else ( | |
484 | + | else (rand == 3) | |
480 | 485 | else false) | |
481 | - | then | |
486 | + | then true | |
482 | 487 | else if (if ((bet == 112)) | |
483 | - | then if (if (if (( | |
488 | + | then if (if (if ((rand == 1)) | |
484 | 489 | then true | |
485 | - | else ( | |
490 | + | else (rand == 2)) | |
486 | 491 | then true | |
487 | - | else ( | |
492 | + | else (rand == 4)) | |
488 | 493 | then true | |
489 | - | else ( | |
494 | + | else (rand == 5) | |
490 | 495 | else false) | |
491 | - | then | |
496 | + | then true | |
492 | 497 | else if (if ((bet == 113)) | |
493 | - | then if (if (if (( | |
498 | + | then if (if (if ((rand == 2)) | |
494 | 499 | then true | |
495 | - | else ( | |
500 | + | else (rand == 3)) | |
496 | 501 | then true | |
497 | - | else ( | |
502 | + | else (rand == 5)) | |
498 | 503 | then true | |
499 | - | else ( | |
504 | + | else (rand == 6) | |
500 | 505 | else false) | |
501 | - | then | |
506 | + | then true | |
502 | 507 | else if (if ((bet == 114)) | |
503 | - | then if (if (if (( | |
508 | + | then if (if (if ((rand == 4)) | |
504 | 509 | then true | |
505 | - | else ( | |
510 | + | else (rand == 5)) | |
506 | 511 | then true | |
507 | - | else ( | |
512 | + | else (rand == 7)) | |
508 | 513 | then true | |
509 | - | else ( | |
514 | + | else (rand == 8) | |
510 | 515 | else false) | |
511 | - | then | |
516 | + | then true | |
512 | 517 | else if (if ((bet == 115)) | |
513 | - | then if (if (if (( | |
518 | + | then if (if (if ((rand == 5)) | |
514 | 519 | then true | |
515 | - | else ( | |
520 | + | else (rand == 6)) | |
516 | 521 | then true | |
517 | - | else ( | |
522 | + | else (rand == 8)) | |
518 | 523 | then true | |
519 | - | else ( | |
524 | + | else (rand == 9) | |
520 | 525 | else false) | |
521 | - | then | |
526 | + | then true | |
522 | 527 | else if (if ((bet == 116)) | |
523 | - | then if (if (if (( | |
528 | + | then if (if (if ((rand == 7)) | |
524 | 529 | then true | |
525 | - | else ( | |
530 | + | else (rand == 8)) | |
526 | 531 | then true | |
527 | - | else ( | |
532 | + | else (rand == 10)) | |
528 | 533 | then true | |
529 | - | else ( | |
534 | + | else (rand == 11) | |
530 | 535 | else false) | |
531 | - | then | |
536 | + | then true | |
532 | 537 | else if (if ((bet == 117)) | |
533 | - | then if (if (if (( | |
538 | + | then if (if (if ((rand == 8)) | |
534 | 539 | then true | |
535 | - | else ( | |
540 | + | else (rand == 9)) | |
536 | 541 | then true | |
537 | - | else ( | |
542 | + | else (rand == 11)) | |
538 | 543 | then true | |
539 | - | else ( | |
544 | + | else (rand == 12) | |
540 | 545 | else false) | |
541 | - | then | |
546 | + | then true | |
542 | 547 | else if (if ((bet == 118)) | |
543 | - | then if (if (if (( | |
548 | + | then if (if (if ((rand == 10)) | |
544 | 549 | then true | |
545 | - | else ( | |
550 | + | else (rand == 11)) | |
546 | 551 | then true | |
547 | - | else ( | |
552 | + | else (rand == 13)) | |
548 | 553 | then true | |
549 | - | else ( | |
554 | + | else (rand == 14) | |
550 | 555 | else false) | |
551 | - | then | |
556 | + | then true | |
552 | 557 | else if (if ((bet == 119)) | |
553 | - | then if (if (if (( | |
558 | + | then if (if (if ((rand == 11)) | |
554 | 559 | then true | |
555 | - | else ( | |
560 | + | else (rand == 12)) | |
556 | 561 | then true | |
557 | - | else ( | |
562 | + | else (rand == 14)) | |
558 | 563 | then true | |
559 | - | else ( | |
564 | + | else (rand == 15) | |
560 | 565 | else false) | |
561 | - | then | |
566 | + | then true | |
562 | 567 | else if (if ((bet == 120)) | |
563 | - | then if (if (if (( | |
568 | + | then if (if (if ((rand == 13)) | |
564 | 569 | then true | |
565 | - | else ( | |
570 | + | else (rand == 14)) | |
566 | 571 | then true | |
567 | - | else ( | |
572 | + | else (rand == 16)) | |
568 | 573 | then true | |
569 | - | else ( | |
574 | + | else (rand == 17) | |
570 | 575 | else false) | |
571 | - | then | |
576 | + | then true | |
572 | 577 | else if (if ((bet == 121)) | |
573 | - | then if (if (if (( | |
578 | + | then if (if (if ((rand == 14)) | |
574 | 579 | then true | |
575 | - | else ( | |
580 | + | else (rand == 15)) | |
576 | 581 | then true | |
577 | - | else ( | |
582 | + | else (rand == 17)) | |
578 | 583 | then true | |
579 | - | else ( | |
584 | + | else (rand == 18) | |
580 | 585 | else false) | |
581 | - | then | |
586 | + | then true | |
582 | 587 | else if (if ((bet == 122)) | |
583 | - | then if (if (if (( | |
588 | + | then if (if (if ((rand == 16)) | |
584 | 589 | then true | |
585 | - | else ( | |
590 | + | else (rand == 17)) | |
586 | 591 | then true | |
587 | - | else ( | |
592 | + | else (rand == 19)) | |
588 | 593 | then true | |
589 | - | else ( | |
594 | + | else (rand == 20) | |
590 | 595 | else false) | |
591 | - | then | |
596 | + | then true | |
592 | 597 | else if (if ((bet == 123)) | |
593 | - | then if (if (if (( | |
598 | + | then if (if (if ((rand == 17)) | |
594 | 599 | then true | |
595 | - | else ( | |
600 | + | else (rand == 18)) | |
596 | 601 | then true | |
597 | - | else ( | |
602 | + | else (rand == 20)) | |
598 | 603 | then true | |
599 | - | else ( | |
604 | + | else (rand == 21) | |
600 | 605 | else false) | |
601 | - | then | |
606 | + | then true | |
602 | 607 | else if (if ((bet == 124)) | |
603 | - | then if (if (if (( | |
608 | + | then if (if (if ((rand == 19)) | |
604 | 609 | then true | |
605 | - | else ( | |
610 | + | else (rand == 20)) | |
606 | 611 | then true | |
607 | - | else ( | |
612 | + | else (rand == 22)) | |
608 | 613 | then true | |
609 | - | else ( | |
614 | + | else (rand == 23) | |
610 | 615 | else false) | |
611 | - | then | |
616 | + | then true | |
612 | 617 | else if (if ((bet == 125)) | |
613 | - | then if (if (if (( | |
618 | + | then if (if (if ((rand == 20)) | |
614 | 619 | then true | |
615 | - | else ( | |
620 | + | else (rand == 21)) | |
616 | 621 | then true | |
617 | - | else ( | |
622 | + | else (rand == 23)) | |
618 | 623 | then true | |
619 | - | else ( | |
624 | + | else (rand == 24) | |
620 | 625 | else false) | |
621 | - | then | |
626 | + | then true | |
622 | 627 | else if (if ((bet == 126)) | |
623 | - | then if (if (if (( | |
628 | + | then if (if (if ((rand == 22)) | |
624 | 629 | then true | |
625 | - | else ( | |
630 | + | else (rand == 23)) | |
626 | 631 | then true | |
627 | - | else ( | |
632 | + | else (rand == 25)) | |
628 | 633 | then true | |
629 | - | else ( | |
634 | + | else (rand == 26) | |
630 | 635 | else false) | |
631 | - | then | |
636 | + | then true | |
632 | 637 | else if (if ((bet == 127)) | |
633 | - | then if (if (if (( | |
638 | + | then if (if (if ((rand == 23)) | |
634 | 639 | then true | |
635 | - | else ( | |
640 | + | else (rand == 24)) | |
636 | 641 | then true | |
637 | - | else ( | |
642 | + | else (rand == 26)) | |
638 | 643 | then true | |
639 | - | else ( | |
644 | + | else (rand == 27) | |
640 | 645 | else false) | |
641 | - | then | |
646 | + | then true | |
642 | 647 | else if (if ((bet == 128)) | |
643 | - | then if (if (if (( | |
648 | + | then if (if (if ((rand == 25)) | |
644 | 649 | then true | |
645 | - | else ( | |
650 | + | else (rand == 26)) | |
646 | 651 | then true | |
647 | - | else ( | |
652 | + | else (rand == 28)) | |
648 | 653 | then true | |
649 | - | else ( | |
654 | + | else (rand == 29) | |
650 | 655 | else false) | |
651 | - | then | |
656 | + | then true | |
652 | 657 | else if (if ((bet == 129)) | |
653 | - | then if (if (if (( | |
658 | + | then if (if (if ((rand == 26)) | |
654 | 659 | then true | |
655 | - | else ( | |
660 | + | else (rand == 27)) | |
656 | 661 | then true | |
657 | - | else ( | |
662 | + | else (rand == 29)) | |
658 | 663 | then true | |
659 | - | else ( | |
664 | + | else (rand == 30) | |
660 | 665 | else false) | |
661 | - | then | |
666 | + | then true | |
662 | 667 | else if (if ((bet == 130)) | |
663 | - | then if (if (if (( | |
668 | + | then if (if (if ((rand == 28)) | |
664 | 669 | then true | |
665 | - | else ( | |
670 | + | else (rand == 29)) | |
666 | 671 | then true | |
667 | - | else ( | |
672 | + | else (rand == 31)) | |
668 | 673 | then true | |
669 | - | else ( | |
674 | + | else (rand == 32) | |
670 | 675 | else false) | |
671 | - | then | |
676 | + | then true | |
672 | 677 | else if (if ((bet == 131)) | |
673 | - | then if (if (if (( | |
678 | + | then if (if (if ((rand == 29)) | |
674 | 679 | then true | |
675 | - | else ( | |
680 | + | else (rand == 30)) | |
676 | 681 | then true | |
677 | - | else ( | |
682 | + | else (rand == 32)) | |
678 | 683 | then true | |
679 | - | else ( | |
684 | + | else (rand == 33) | |
680 | 685 | else false) | |
681 | - | then | |
686 | + | then true | |
682 | 687 | else if (if ((bet == 132)) | |
683 | - | then if (if (if (( | |
688 | + | then if (if (if ((rand == 31)) | |
684 | 689 | then true | |
685 | - | else ( | |
690 | + | else (rand == 32)) | |
686 | 691 | then true | |
687 | - | else ( | |
692 | + | else (rand == 34)) | |
688 | 693 | then true | |
689 | - | else ( | |
694 | + | else (rand == 35) | |
690 | 695 | else false) | |
691 | - | then | |
696 | + | then true | |
692 | 697 | else if (if ((bet == 133)) | |
693 | - | then if (if (if (( | |
698 | + | then if (if (if ((rand == 32)) | |
694 | 699 | then true | |
695 | - | else ( | |
700 | + | else (rand == 33)) | |
696 | 701 | then true | |
697 | - | else ( | |
702 | + | else (rand == 35)) | |
698 | 703 | then true | |
699 | - | else ( | |
704 | + | else (rand == 36) | |
700 | 705 | else false) | |
701 | - | then | |
702 | - | else | |
706 | + | then true | |
707 | + | else false | |
703 | 708 | ||
704 | 709 | ||
705 | - | func lineBet ( | |
706 | - | then ( | |
710 | + | func lineBet (rand,bet) = if (if (if ((bet == 134)) | |
711 | + | then (rand >= 1) | |
707 | 712 | else false) | |
708 | - | then (6 >= | |
713 | + | then (6 >= rand) | |
709 | 714 | else false) | |
710 | - | then | |
715 | + | then true | |
711 | 716 | else if (if (if ((bet == 135)) | |
712 | - | then ( | |
717 | + | then (rand >= 4) | |
713 | 718 | else false) | |
714 | - | then (9 >= | |
719 | + | then (9 >= rand) | |
715 | 720 | else false) | |
716 | - | then | |
721 | + | then true | |
717 | 722 | else if (if (if ((bet == 136)) | |
718 | - | then ( | |
723 | + | then (rand >= 7) | |
719 | 724 | else false) | |
720 | - | then (12 >= | |
725 | + | then (12 >= rand) | |
721 | 726 | else false) | |
722 | - | then | |
727 | + | then true | |
723 | 728 | else if (if (if ((bet == 137)) | |
724 | - | then ( | |
729 | + | then (rand >= 10) | |
725 | 730 | else false) | |
726 | - | then (15 >= | |
731 | + | then (15 >= rand) | |
727 | 732 | else false) | |
728 | - | then | |
733 | + | then true | |
729 | 734 | else if (if (if ((bet == 138)) | |
730 | - | then ( | |
735 | + | then (rand >= 13) | |
731 | 736 | else false) | |
732 | - | then (18 >= | |
737 | + | then (18 >= rand) | |
733 | 738 | else false) | |
734 | - | then | |
739 | + | then true | |
735 | 740 | else if (if (if ((bet == 139)) | |
736 | - | then ( | |
741 | + | then (rand >= 16) | |
737 | 742 | else false) | |
738 | - | then (21 >= | |
743 | + | then (21 >= rand) | |
739 | 744 | else false) | |
740 | - | then | |
745 | + | then true | |
741 | 746 | else if (if (if ((bet == 140)) | |
742 | - | then ( | |
747 | + | then (rand >= 19) | |
743 | 748 | else false) | |
744 | - | then (24 >= | |
749 | + | then (24 >= rand) | |
745 | 750 | else false) | |
746 | - | then | |
751 | + | then true | |
747 | 752 | else if (if (if ((bet == 141)) | |
748 | - | then ( | |
753 | + | then (rand >= 22) | |
749 | 754 | else false) | |
750 | - | then (27 >= | |
755 | + | then (27 >= rand) | |
751 | 756 | else false) | |
752 | - | then | |
757 | + | then true | |
753 | 758 | else if (if (if ((bet == 142)) | |
754 | - | then ( | |
759 | + | then (rand >= 25) | |
755 | 760 | else false) | |
756 | - | then (30 >= | |
761 | + | then (30 >= rand) | |
757 | 762 | else false) | |
758 | - | then | |
763 | + | then true | |
759 | 764 | else if (if (if ((bet == 143)) | |
760 | - | then ( | |
765 | + | then (rand >= 28) | |
761 | 766 | else false) | |
762 | - | then (33 >= | |
767 | + | then (33 >= rand) | |
763 | 768 | else false) | |
764 | - | then | |
769 | + | then true | |
765 | 770 | else if (if (if ((bet == 144)) | |
766 | - | then ( | |
771 | + | then (rand >= 31) | |
767 | 772 | else false) | |
768 | - | then (36 >= | |
773 | + | then (36 >= rand) | |
769 | 774 | else false) | |
770 | - | then | |
771 | - | else | |
775 | + | then true | |
776 | + | else false | |
772 | 777 | ||
773 | 778 | ||
774 | - | func columnBet ( | |
775 | - | then if (if (if (if (if (if (if (if (if (if (if (if (( | |
779 | + | func columnBet (rand,bet) = if (if ((bet == 145)) | |
780 | + | then if (if (if (if (if (if (if (if (if (if (if (if ((rand == 0)) | |
776 | 781 | then true | |
777 | - | else ( | |
782 | + | else (rand == 1)) | |
778 | 783 | then true | |
779 | - | else ( | |
784 | + | else (rand == 4)) | |
780 | 785 | then true | |
781 | - | else ( | |
786 | + | else (rand == 7)) | |
782 | 787 | then true | |
783 | - | else ( | |
788 | + | else (rand == 10)) | |
784 | 789 | then true | |
785 | - | else ( | |
790 | + | else (rand == 13)) | |
786 | 791 | then true | |
787 | - | else ( | |
792 | + | else (rand == 16)) | |
788 | 793 | then true | |
789 | - | else ( | |
794 | + | else (rand == 19)) | |
790 | 795 | then true | |
791 | - | else ( | |
796 | + | else (rand == 22)) | |
792 | 797 | then true | |
793 | - | else ( | |
798 | + | else (rand == 25)) | |
794 | 799 | then true | |
795 | - | else ( | |
800 | + | else (rand == 28)) | |
796 | 801 | then true | |
797 | - | else ( | |
802 | + | else (rand == 31)) | |
798 | 803 | then true | |
799 | - | else ( | |
804 | + | else (rand == 34) | |
800 | 805 | else false) | |
801 | - | then | |
806 | + | then true | |
802 | 807 | else if (if ((bet == 146)) | |
803 | - | then if (if (if (if (if (if (if (if (if (if (if (if (( | |
808 | + | then if (if (if (if (if (if (if (if (if (if (if (if ((rand == 0)) | |
804 | 809 | then true | |
805 | - | else ( | |
810 | + | else (rand == 2)) | |
806 | 811 | then true | |
807 | - | else ( | |
812 | + | else (rand == 5)) | |
808 | 813 | then true | |
809 | - | else ( | |
814 | + | else (rand == 8)) | |
810 | 815 | then true | |
811 | - | else ( | |
816 | + | else (rand == 11)) | |
812 | 817 | then true | |
813 | - | else ( | |
818 | + | else (rand == 14)) | |
814 | 819 | then true | |
815 | - | else ( | |
820 | + | else (rand == 17)) | |
816 | 821 | then true | |
817 | - | else ( | |
822 | + | else (rand == 20)) | |
818 | 823 | then true | |
819 | - | else ( | |
824 | + | else (rand == 23)) | |
820 | 825 | then true | |
821 | - | else ( | |
826 | + | else (rand == 26)) | |
822 | 827 | then true | |
823 | - | else ( | |
828 | + | else (rand == 29)) | |
824 | 829 | then true | |
825 | - | else ( | |
830 | + | else (rand == 32)) | |
826 | 831 | then true | |
827 | - | else ( | |
832 | + | else (rand == 35) | |
828 | 833 | else false) | |
829 | - | then | |
834 | + | then true | |
830 | 835 | else if (if ((bet == 147)) | |
831 | - | then if (if (if (if (if (if (if (if (if (if (if (if (( | |
836 | + | then if (if (if (if (if (if (if (if (if (if (if (if ((rand == 0)) | |
832 | 837 | then true | |
833 | - | else ( | |
838 | + | else (rand == 3)) | |
834 | 839 | then true | |
835 | - | else ( | |
840 | + | else (rand == 6)) | |
836 | 841 | then true | |
837 | - | else ( | |
842 | + | else (rand == 9)) | |
838 | 843 | then true | |
839 | - | else ( | |
844 | + | else (rand == 12)) | |
840 | 845 | then true | |
841 | - | else ( | |
846 | + | else (rand == 15)) | |
842 | 847 | then true | |
843 | - | else ( | |
848 | + | else (rand == 18)) | |
844 | 849 | then true | |
845 | - | else ( | |
850 | + | else (rand == 21)) | |
846 | 851 | then true | |
847 | - | else ( | |
852 | + | else (rand == 24)) | |
848 | 853 | then true | |
849 | - | else ( | |
854 | + | else (rand == 27)) | |
850 | 855 | then true | |
851 | - | else ( | |
856 | + | else (rand == 30)) | |
852 | 857 | then true | |
853 | - | else ( | |
858 | + | else (rand == 33)) | |
854 | 859 | then true | |
855 | - | else ( | |
860 | + | else (rand == 36) | |
856 | 861 | else false) | |
857 | - | then | |
858 | - | else | |
862 | + | then true | |
863 | + | else false | |
859 | 864 | ||
860 | 865 | ||
861 | - | func dozenBet ( | |
862 | - | then ( | |
866 | + | func dozenBet (rand,bet) = if (if (if ((bet == 148)) | |
867 | + | then (rand >= 1) | |
863 | 868 | else false) | |
864 | - | then (12 >= | |
869 | + | then (12 >= rand) | |
865 | 870 | else false) | |
866 | - | then | |
871 | + | then true | |
867 | 872 | else if (if (if ((bet == 149)) | |
868 | - | then ( | |
873 | + | then (rand >= 13) | |
869 | 874 | else false) | |
870 | - | then (24 >= | |
875 | + | then (24 >= rand) | |
871 | 876 | else false) | |
872 | - | then | |
877 | + | then true | |
873 | 878 | else if (if (if ((bet == 150)) | |
874 | - | then ( | |
879 | + | then (rand >= 25) | |
875 | 880 | else false) | |
876 | - | then (36 >= | |
881 | + | then (36 >= rand) | |
877 | 882 | else false) | |
878 | - | then | |
879 | - | else | |
883 | + | then true | |
884 | + | else false | |
880 | 885 | ||
881 | 886 | ||
882 | - | func colorBet ( | |
883 | - | then if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (( | |
887 | + | func colorBet (rand,bet) = if (if ((bet == 151)) | |
888 | + | then if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((rand == 1)) | |
884 | 889 | then true | |
885 | - | else ( | |
890 | + | else (rand == 3)) | |
886 | 891 | then true | |
887 | - | else ( | |
892 | + | else (rand == 5)) | |
888 | 893 | then true | |
889 | - | else ( | |
894 | + | else (rand == 7)) | |
890 | 895 | then true | |
891 | - | else ( | |
896 | + | else (rand == 9)) | |
892 | 897 | then true | |
893 | - | else ( | |
898 | + | else (rand == 12)) | |
894 | 899 | then true | |
895 | - | else ( | |
900 | + | else (rand == 14)) | |
896 | 901 | then true | |
897 | - | else ( | |
902 | + | else (rand == 16)) | |
898 | 903 | then true | |
899 | - | else ( | |
904 | + | else (rand == 18)) | |
900 | 905 | then true | |
901 | - | else ( | |
906 | + | else (rand == 19)) | |
902 | 907 | then true | |
903 | - | else ( | |
908 | + | else (rand == 21)) | |
904 | 909 | then true | |
905 | - | else ( | |
910 | + | else (rand == 23)) | |
906 | 911 | then true | |
907 | - | else ( | |
912 | + | else (rand == 25)) | |
908 | 913 | then true | |
909 | - | else ( | |
914 | + | else (rand == 27)) | |
910 | 915 | then true | |
911 | - | else ( | |
916 | + | else (rand == 30)) | |
912 | 917 | then true | |
913 | - | else ( | |
918 | + | else (rand == 32)) | |
914 | 919 | then true | |
915 | - | else ( | |
920 | + | else (rand == 34)) | |
916 | 921 | then true | |
917 | - | else ( | |
922 | + | else (rand == 36) | |
918 | 923 | else false) | |
919 | - | then | |
924 | + | then true | |
920 | 925 | else if (if ((bet == 152)) | |
921 | - | then if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (( | |
926 | + | then if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((rand == 2)) | |
922 | 927 | then true | |
923 | - | else ( | |
928 | + | else (rand == 4)) | |
924 | 929 | then true | |
925 | - | else ( | |
930 | + | else (rand == 6)) | |
926 | 931 | then true | |
927 | - | else ( | |
932 | + | else (rand == 8)) | |
928 | 933 | then true | |
929 | - | else ( | |
934 | + | else (rand == 10)) | |
930 | 935 | then true | |
931 | - | else ( | |
936 | + | else (rand == 11)) | |
932 | 937 | then true | |
933 | - | else ( | |
938 | + | else (rand == 13)) | |
934 | 939 | then true | |
935 | - | else ( | |
940 | + | else (rand == 15)) | |
936 | 941 | then true | |
937 | - | else ( | |
942 | + | else (rand == 17)) | |
938 | 943 | then true | |
939 | - | else ( | |
944 | + | else (rand == 20)) | |
940 | 945 | then true | |
941 | - | else ( | |
946 | + | else (rand == 22)) | |
942 | 947 | then true | |
943 | - | else ( | |
948 | + | else (rand == 24)) | |
944 | 949 | then true | |
945 | - | else ( | |
950 | + | else (rand == 26)) | |
946 | 951 | then true | |
947 | - | else ( | |
952 | + | else (rand == 28)) | |
948 | 953 | then true | |
949 | - | else ( | |
954 | + | else (rand == 29)) | |
950 | 955 | then true | |
951 | - | else ( | |
956 | + | else (rand == 31)) | |
952 | 957 | then true | |
953 | - | else ( | |
958 | + | else (rand == 33)) | |
954 | 959 | then true | |
955 | - | else ( | |
960 | + | else (rand == 35) | |
956 | 961 | else false) | |
957 | - | then | |
958 | - | else | |
962 | + | then true | |
963 | + | else false | |
959 | 964 | ||
960 | 965 | ||
961 | - | func evenOddBet ( | |
962 | - | let rem = ( | |
963 | - | if (if (if (( | |
966 | + | func evenOddBet (rand,bet) = { | |
967 | + | let rem = (rand % 2) | |
968 | + | if (if (if ((rand > 0)) | |
964 | 969 | then (bet == 153) | |
965 | 970 | else false) | |
966 | 971 | then (rem == 0) | |
967 | 972 | else false) | |
968 | - | then | |
969 | - | else if (if (if (( | |
973 | + | then true | |
974 | + | else if (if (if ((rand > 0)) | |
970 | 975 | then (bet == 154) | |
971 | 976 | else false) | |
972 | 977 | then (rem != 0) | |
973 | 978 | else false) | |
974 | - | then | |
975 | - | else | |
979 | + | then true | |
980 | + | else false | |
976 | 981 | } | |
977 | 982 | ||
978 | 983 | ||
979 | - | func rouletteCalc (num,bet,betValuet) = if (if ((bet >= 0)) | |
984 | + | func lowHighBet (rand,bet) = if (if (if ((bet == 155)) | |
985 | + | then (rand >= 1) | |
986 | + | else false) | |
987 | + | then (18 >= rand) | |
988 | + | else false) | |
989 | + | then true | |
990 | + | else if (if (if ((bet == 156)) | |
991 | + | then (rand >= 19) | |
992 | + | else false) | |
993 | + | then (36 >= rand) | |
994 | + | else false) | |
995 | + | then true | |
996 | + | else false | |
997 | + | ||
998 | + | ||
999 | + | func rouletteWin (rand,bet) = if (if ((bet >= 0)) | |
980 | 1000 | then (36 >= bet) | |
981 | 1001 | else false) | |
982 | - | then if ((num == bet)) | |
983 | - | then (35 * betValuet) | |
984 | - | else 0 | |
1002 | + | then straightUpBet(rand, bet) | |
985 | 1003 | else if (if ((bet >= 37)) | |
986 | 1004 | then (96 >= bet) | |
987 | 1005 | else false) | |
988 | - | then | |
1006 | + | then splitBet(rand, bet) | |
989 | 1007 | else if (if ((bet >= 97)) | |
990 | 1008 | then (110 >= bet) | |
991 | 1009 | else false) | |
992 | - | then | |
1010 | + | then streetBet(rand, bet) | |
993 | 1011 | else if (if ((bet >= 111)) | |
994 | 1012 | then (133 >= bet) | |
995 | 1013 | else false) | |
996 | - | then | |
1014 | + | then cornerBet(rand, bet) | |
997 | 1015 | else if (if ((bet >= 134)) | |
998 | 1016 | then (144 >= bet) | |
999 | 1017 | else false) | |
1000 | - | then | |
1018 | + | then lineBet(rand, bet) | |
1001 | 1019 | else if (if ((bet >= 145)) | |
1002 | 1020 | then (147 >= bet) | |
1003 | 1021 | else false) | |
1004 | - | then | |
1022 | + | then columnBet(rand, bet) | |
1005 | 1023 | else if (if ((bet >= 148)) | |
1006 | 1024 | then (150 >= bet) | |
1007 | 1025 | else false) | |
1008 | - | then | |
1026 | + | then dozenBet(rand, bet) | |
1009 | 1027 | else if (if ((bet == 151)) | |
1010 | 1028 | then true | |
1011 | 1029 | else (bet == 152)) | |
1012 | - | then | |
1030 | + | then colorBet(rand, bet) | |
1013 | 1031 | else if (if ((bet == 153)) | |
1014 | 1032 | then true | |
1015 | 1033 | else (bet == 154)) | |
1016 | - | then | |
1034 | + | then evenOddBet(rand, bet) | |
1017 | 1035 | else if (if ((bet == 155)) | |
1018 | 1036 | then true | |
1019 | 1037 | else (bet == 156)) | |
1020 | - | then if (if (if ((bet == 155)) | |
1021 | - | then (num >= 1) | |
1022 | - | else false) | |
1023 | - | then (18 >= num) | |
1024 | - | else false) | |
1025 | - | then (1 * betValuet) | |
1026 | - | else if (if (if ((bet == 156)) | |
1027 | - | then (num >= 19) | |
1028 | - | else false) | |
1029 | - | then (36 >= num) | |
1030 | - | else false) | |
1031 | - | then (1 * betValuet) | |
1032 | - | else 0 | |
1033 | - | else throw("Random number out of range, 0 <= rand <= 36") | |
1038 | + | then lowHighBet(rand, bet) | |
1039 | + | else throw("Random randber out of range, 0 <= rand <= 36") | |
1034 | 1040 | ||
1035 | 1041 | ||
1036 | - | func IncrementGameNum () = { | |
1037 | - | let gameNum = match getInteger(this, GAMESCOUNTERKEY) { | |
1042 | + | func getWinAmount (bet,amount) = if (if ((bet >= 0)) | |
1043 | + | then (36 >= bet) | |
1044 | + | else false) | |
1045 | + | then (amount * 35) | |
1046 | + | else if (if ((bet >= 37)) | |
1047 | + | then (96 >= bet) | |
1048 | + | else false) | |
1049 | + | then (amount * 17) | |
1050 | + | else if (if ((bet >= 97)) | |
1051 | + | then (110 >= bet) | |
1052 | + | else false) | |
1053 | + | then (amount * 11) | |
1054 | + | else if (if ((bet >= 111)) | |
1055 | + | then (133 >= bet) | |
1056 | + | else false) | |
1057 | + | then (amount * 8) | |
1058 | + | else if (if ((bet >= 134)) | |
1059 | + | then (144 >= bet) | |
1060 | + | else false) | |
1061 | + | then (amount * 5) | |
1062 | + | else if (if ((bet >= 145)) | |
1063 | + | then (147 >= bet) | |
1064 | + | else false) | |
1065 | + | then (amount * 2) | |
1066 | + | else if (if ((bet >= 148)) | |
1067 | + | then (150 >= bet) | |
1068 | + | else false) | |
1069 | + | then (amount * 2) | |
1070 | + | else if (if ((bet == 151)) | |
1071 | + | then true | |
1072 | + | else (bet == 152)) | |
1073 | + | then (amount * 2) | |
1074 | + | else if (if ((bet == 153)) | |
1075 | + | then true | |
1076 | + | else (bet == 154)) | |
1077 | + | then amount | |
1078 | + | else if (if ((bet == 155)) | |
1079 | + | then true | |
1080 | + | else (bet == 156)) | |
1081 | + | then amount | |
1082 | + | else throw("Bet number out of range, 0 <= rand <= 156") | |
1083 | + | ||
1084 | + | ||
1085 | + | func IncrementValue (value) = { | |
1086 | + | let provNum = match getInteger(this, value) { | |
1038 | 1087 | case num: Int => | |
1039 | 1088 | num | |
1040 | 1089 | case _ => | |
1041 | 1090 | 0 | |
1042 | 1091 | } | |
1043 | - | ( | |
1092 | + | (provNum + 1) | |
1044 | 1093 | } | |
1045 | 1094 | ||
1046 | 1095 | ||
1047 | - | func | |
1096 | + | func ExtractValue (value) = match getInteger(this, value) { | |
1048 | 1097 | case a: Int => | |
1049 | 1098 | a | |
1050 | 1099 | case _ => | |
1051 | 1100 | 0 | |
1052 | 1101 | } | |
1053 | 1102 | ||
1054 | 1103 | ||
1055 | 1104 | func ValidateAndIncreaseReservedAmt (winAmt) = { | |
1056 | - | let newReservedAmount = ( | |
1105 | + | let newReservedAmount = (ExtractValue(RESERVATIONKEY) + winAmt) | |
1057 | 1106 | let balance = assetBalance(this, WBET) | |
1058 | 1107 | if ((newReservedAmount > balance)) | |
1059 | 1108 | then throw("Insufficient funds on Wavesbet Dice account. Transaction was rejected for your safety.") | |
1060 | 1109 | else newReservedAmount | |
1061 | 1110 | } | |
1062 | 1111 | ||
1063 | 1112 | ||
1113 | + | func DecreaseReservedAmt (winAmt) = { | |
1114 | + | let newReservedAmount = (ExtractValue(RESERVATIONKEY) - winAmt) | |
1115 | + | if ((0 > newReservedAmount)) | |
1116 | + | then throw("Invalid roulette account state - reserved amount is less than 0") | |
1117 | + | else DataEntry(RESERVATIONKEY, newReservedAmount) | |
1118 | + | } | |
1119 | + | ||
1120 | + | ||
1064 | 1121 | func GenerateRandInt (gameId,rsaSign) = { | |
1065 | 1122 | let rsaSigValid = rsaVerify(SHA256, toBytes(gameId), rsaSign, RSAPUBLIC) | |
1066 | 1123 | if (rsaSigValid) | |
1067 | 1124 | then { | |
1068 | - | let rand = (toInt(sha256(rsaSign)) % | |
1125 | + | let rand = (toInt(sha256(rsaSign)) % 37) | |
1069 | 1126 | if ((0 > rand)) | |
1070 | 1127 | then ((-1 * rand) + 1) | |
1071 | 1128 | else (rand + 1) | |
1072 | 1129 | } | |
1073 | 1130 | else throw("Invalid RSA signature") | |
1074 | 1131 | } | |
1075 | 1132 | ||
1076 | 1133 | ||
1077 | 1134 | func RandToStr (r) = if (if ((r >= 1)) | |
1078 | 1135 | then (36 >= r) | |
1079 | 1136 | else false) | |
1080 | 1137 | then toString(r) | |
1081 | 1138 | else throw(("Unsupported r parameter passed: expected=[0,...,36] actual=" + toString(r))) | |
1082 | 1139 | ||
1083 | 1140 | ||
1084 | - | func validateBet (bet,betValue) = if (if ((0 > bet)) | |
1085 | - | then true | |
1086 | - | else (bet > 156)) | |
1087 | - | then throw("invalid play, play must be between 0 and 156.") | |
1088 | - | else if ((0 > betValue)) | |
1089 | - | then throw("Bet value must be greater than or equal to 0") | |
1090 | - | else if ((10 > bet)) | |
1091 | - | then ((("00" + toString(bet)) + "-") + toString(betValue)) | |
1092 | - | else if (if ((bet >= 10)) | |
1093 | - | then (100 > bet) | |
1094 | - | else false) | |
1095 | - | then ((("0" + toString(bet)) + "-") + toString(betValue)) | |
1096 | - | else ((toString(bet) + "-") + toString(betValue)) | |
1097 | - | ||
1098 | - | ||
1099 | - | func ExtractGameDataList (gameId) = { | |
1100 | - | let rawDataStr = match getString(this, gameId) { | |
1141 | + | func ExtractString (id) = { | |
1142 | + | let rawDataStr = match getString(this, id) { | |
1101 | 1143 | case str: String => | |
1102 | 1144 | str | |
1103 | 1145 | case _ => | |
1104 | - | throw(("Couldn't find | |
1146 | + | throw(("Couldn't find string by " + id)) | |
1105 | 1147 | } | |
1106 | - | split(rawDataStr, "_") | |
1148 | + | rawDataStr | |
1149 | + | } | |
1150 | + | ||
1151 | + | ||
1152 | + | func GetGameId (gameNumber) = { | |
1153 | + | let str = toString(gameNumber) | |
1154 | + | if ((0 > gameNumber)) | |
1155 | + | then throw("Game number must not have negative value, pass 0 to a new game or an existing game number") | |
1156 | + | else if ((gameNumber == 0)) | |
1157 | + | then ((toString(IncrementValue(GAMESCOUNTERKEY)) + "_") + "1") | |
1158 | + | else ((str + "_") + toString(IncrementValue(str))) | |
1159 | + | } | |
1160 | + | ||
1161 | + | ||
1162 | + | func getWriteSet (gameNumber,winAmt,gameId,gameDataStr) = { | |
1163 | + | let strGameN = toString(gameNumber) | |
1164 | + | if ((gameNumber == 0)) | |
1165 | + | then WriteSet([DataEntry(GAMESCOUNTERKEY, IncrementValue(GAMESCOUNTERKEY)), DataEntry(RESERVATIONKEY, ValidateAndIncreaseReservedAmt(winAmt)), DataEntry(strGameN, 1), DataEntry(gameId, gameDataStr)]) | |
1166 | + | else WriteSet([DataEntry(RESERVATIONKEY, ValidateAndIncreaseReservedAmt(winAmt)), DataEntry(strGameN, IncrementValue(strGameN)), DataEntry(gameId, gameDataStr)]) | |
1107 | 1167 | } | |
1108 | 1168 | ||
1109 | 1169 | ||
1110 | 1170 | @Callable(i) | |
1111 | - | func playRoulette (bet1,val1,bet2,val2,bet3,val3) = { | |
1112 | - | let gameId = toBase58String(i.transactionId) | |
1113 | - | let gameIdUsed = isDefined(getString(this, gameId)) | |
1171 | + | func playRoulette (bet,gameNumber) = { | |
1172 | + | let betId = toBase58String(i.transactionId) | |
1114 | 1173 | let payment = extract(i.payment) | |
1115 | 1174 | let feeAssetId = isDefined(i.feeAssetId) | |
1116 | 1175 | let playerBalance = wavesBalance(i.caller) | |
1117 | - | let playAmount = (((val1 + val2) + val3) * WAVELET) | |
1176 | + | let gameId = GetGameId(gameNumber) | |
1177 | + | let gameIdUsed = isDefined(getString(this, gameId)) | |
1178 | + | let winAmt = getWinAmount(bet, payment.amount) | |
1118 | 1179 | if ((payment.assetId != WBET)) | |
1119 | 1180 | then throw("Payment should be in Wavesbet") | |
1120 | 1181 | else if ((1000000 > playerBalance)) | |
1121 | 1182 | then throw("There are not enough waves, it takes 0.01 Waves to bet. Game aborted.") | |
1122 | 1183 | else if (feeAssetId) | |
1123 | 1184 | then throw("Transaction's fee must be in Waves. Game aborted.") | |
1124 | 1185 | else if (gameIdUsed) | |
1125 | 1186 | then throw("Passed gameId had been used before. Game aborted.") | |
1126 | - | else if ((playAmount != payment.amount)) | |
1127 | - | then throw("Payment value is different from bet value. ") | |
1128 | - | else { | |
1129 | - | let newGameNum = IncrementGameNum() | |
1130 | - | let playerPubKey58 = toBase58String(i.callerPublicKey) | |
1131 | - | let gameDataStr = (((((((("SUBMITTED" + "_") + playerPubKey58) + "_") + validateBet(bet1, val1)) + "_") + validateBet(bet2, val2)) + "_") + validateBet(bet3, val3)) | |
1132 | - | ScriptResult(WriteSet([DataEntry(GAMESCOUNTERKEY, newGameNum), DataEntry(gameId, gameDataStr)]), TransferSet(nil)) | |
1133 | - | } | |
1187 | + | else { | |
1188 | + | let playerPubKey58 = toBase58String(i.callerPublicKey) | |
1189 | + | let gameDataStr = (((((("SUBMITTED" + "_") + toString(bet)) + "_") + playerPubKey58) + "_") + toString(winAmt)) | |
1190 | + | ScriptResult(getWriteSet(gameNumber, winAmt, gameId, gameDataStr), TransferSet(nil)) | |
1191 | + | } | |
1134 | 1192 | } | |
1135 | 1193 | ||
1136 | 1194 | ||
1137 | 1195 | ||
1138 | 1196 | @Callable(i) | |
1139 | 1197 | func withdraw (gameId,rsaSig) = { | |
1140 | - | let gameDataList = | |
1198 | + | let gameDataList = split(ExtractString(gameId), "_") | |
1141 | 1199 | let gameState = gameDataList[0] | |
1142 | - | let playerPubKey58 = gameDataList[1] | |
1200 | + | let bet = parseIntValue(gameDataList[1]) | |
1201 | + | let playerPubKey58 = gameDataList[2] | |
1202 | + | let winAmt = parseIntValue(gameDataList[3]) | |
1143 | 1203 | let playerAddress = addressFromPublicKey(fromBase58String(playerPubKey58)) | |
1204 | + | let decreasedReserves = DecreaseReservedAmt(winAmt) | |
1144 | 1205 | if ((gameState != "SUBMITTED")) | |
1145 | 1206 | then throw("Invalid game state for passed gameId. Game aborted. ") | |
1146 | 1207 | else { | |
1147 | - | let rand = GenerateRandInt(gameId, rsaSig) | |
1208 | + | let prov = split(gameId, "_") | |
1209 | + | let game = prov[0] | |
1210 | + | let gameNum = ExtractString(game) | |
1211 | + | let rand = GenerateRandInt(ExtractString(gameNum), rsaSig) | |
1148 | 1212 | let randStr = RandToStr(rand) | |
1149 | - | let result1 = rouletteCalc(rand, parseIntValue(take(gameDataList[2], 3)), parseIntValue(drop(gameDataList[2], 4))) | |
1150 | - | let result2 = rouletteCalc(rand, parseIntValue(take(gameDataList[3], 3)), parseIntValue(drop(gameDataList[3], 4))) | |
1151 | - | let result3 = rouletteCalc(rand, parseIntValue(take(gameDataList[4], 3)), parseIntValue(drop(gameDataList[4], 4))) | |
1152 | - | let winAmt = (((result1 + result2) + result3) * WAVELET) | |
1153 | - | if ((winAmt > 0)) | |
1213 | + | if (rouletteWin(rand, bet)) | |
1154 | 1214 | then { | |
1155 | - | let newGameDataStr = (((((((( | |
1156 | - | ScriptResult(WriteSet([DataEntry(gameId, newGameDataStr)]), TransferSet([ScriptTransfer(playerAddress, winAmt, WBET)])) | |
1215 | + | let newGameDataStr = (((((((("WON" + "_") + gameDataList[1]) + "_") + playerPubKey58) + "_") + gameDataList[3]) + "_") + randStr) | |
1216 | + | ScriptResult(WriteSet([DataEntry(gameId, newGameDataStr), decreasedReserves]), TransferSet([ScriptTransfer(playerAddress, winAmt, WBET)])) | |
1157 | 1217 | } | |
1158 | 1218 | else { | |
1159 | - | let newGameDataStr = (((((((( | |
1219 | + | let newGameDataStr = (((((((("LOST" + "_") + gameDataList[1]) + "_") + playerPubKey58) + "_") + gameDataList[3]) + "_") + randStr) | |
1160 | 1220 | WriteSet([DataEntry(gameId, newGameDataStr)]) | |
1161 | 1221 | } | |
1162 | 1222 | } | |
1163 | 1223 | } | |
1164 | 1224 | ||
1165 | 1225 |
github/deemru/w8io/169f3d6 597.90 ms ◑