tx · AtWq4HAQwicWFwyqqE6wAikXtJ8zqdJ4CEBGDJKs1HsW 3NA7cHZ9oBicev5AEn3BidRAyitA3HdjRbE: -0.05000000 Waves 2019.11.27 04:51 [783044] smart account 3NA7cHZ9oBicev5AEn3BidRAyitA3HdjRbE > SELF 0.00000000 Waves
{ "type": 13, "id": "AtWq4HAQwicWFwyqqE6wAikXtJ8zqdJ4CEBGDJKs1HsW", "fee": 5000000, "feeAssetId": null, "timestamp": 1574819498298, "version": 1, "sender": "3NA7cHZ9oBicev5AEn3BidRAyitA3HdjRbE", "senderPublicKey": "FEmBffz5oKcY5pLrHbwcj8jxovWVvTYCeNRzNT6uHBJc", "proofs": [ "49B2bGUcRTDfNWVtkrMefmYbGvJ9SuL27aK2xK32NrWLKyaZp5N9g8eveeKsXoMtBo934sVCWsrygmqXCmcQTwAE" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAALQAAAAAJUlNBUFVCTElDCQACWwAAAAECAAABj2Jhc2U2NDpNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQWc0ZEFSNlhiQkRBUzloci9FajNkSnY2RmZjNDY2eC9tT0dNV1UzbHJBQnMzcWE4QkhtdUpHbmtmYnBFZjJ2QXdZVE9XUHZ2emZNMTBPQmJmbG9TeXEzYzlNS3Z5VGUxbHVCTEdxVzR2WlVYSXl2U2d6MWxpeVVWZWZJUXkzZHlGOWpiZVRaYkMwYmJjVC83TzNERUwrMDF6NkErckRDYWNTWjBsR29sU1E2QW5oTHh6SWtWcE9RSmJyQm1DK3grWnVaUENNV3pKeW5kNWFlT243amFqL21rUlZ5eGU2Zy8wT2hXejROaWlaWGV1TVJCKzhtS3kwZldEL1VsSWxaV0hzQVMyWm1ya1hLcWpMcTAvMHdyOElMSmt6bmpTcWRuSTVJYmpnM3VRcmovNEFOK2k5cjI4YVE3My9aa1B0WTVTYncwQU9pQUJCdTdnSG1xOWF5VnhaUUlEQVFBQgAAAA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kAAZEAAAACBQAAAARiZXRzAAAAAAAAAAABAQAAABBJbmNyZW1lbnRHYW1lTnVtAAAAAAQAAAAHZ2FtZU51bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAA9HQU1FU0NPVU5URVJLRVkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAADbnVtBQAAAAckbWF0Y2gwBQAAAANudW0AAAAAAAAAAAAJAABkAAAAAgUAAAAHZ2FtZU51bQAAAAAAAAAAAQAAAAEAAAABaQEAAAAMcGxheVJvdWxldHRlAAAAAQAAAARiZXRzBAAAAAFzCQAEtQAAAAIFAAAABGJldHMCAAAAAV8JAAACAAAAAQkAAaQAAAABCQABkAAAAAEFAAAAAXMAAAAAlk1TEA==", "chainId": 84, "height": 783044, "spentComplexity": 0 } View: original | compacted Prev: 2d3rbucSbqAbET6jDG5TT4M2Fy5MVsSAJfb8Mg7TzwqY Next: 8S6KSj1MipKzqbdjr3Fs39mAsZRA49aRVqRwsKUuCT15 Diff:
Old | New | Differences | |
---|---|---|---|
533 | 533 | ||
534 | 534 | @Callable(i) | |
535 | 535 | func playRoulette (bets) = { | |
536 | - | let s = split(bets, " | |
536 | + | let s = split(bets, "_") | |
537 | 537 | throw(toString(size(s))) | |
538 | 538 | } | |
539 | 539 |
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 STATESUBMITTED = "SUBMITTED" | |
23 | 23 | ||
24 | 24 | let STATEWON = "WON" | |
25 | 25 | ||
26 | 26 | let STATELOST = "LOST" | |
27 | 27 | ||
28 | 28 | let BETMIN = (1 * WAVELET) | |
29 | 29 | ||
30 | 30 | let BETMAX = (20000000 * WAVELET) | |
31 | 31 | ||
32 | 32 | let TSTRAIGHT = 1 | |
33 | 33 | ||
34 | 34 | let TSPLIT = 2 | |
35 | 35 | ||
36 | 36 | let TSTREET = 3 | |
37 | 37 | ||
38 | 38 | let TCORNER = 4 | |
39 | 39 | ||
40 | 40 | let TLINE = 5 | |
41 | 41 | ||
42 | 42 | let TCOLUMN = 6 | |
43 | 43 | ||
44 | 44 | let TDOZEN = 7 | |
45 | 45 | ||
46 | 46 | let TRED = 8 | |
47 | 47 | ||
48 | 48 | let TBLACK = 9 | |
49 | 49 | ||
50 | 50 | let TODD = 10 | |
51 | 51 | ||
52 | 52 | let TEVEN = 11 | |
53 | 53 | ||
54 | 54 | let T1TO18 = 12 | |
55 | 55 | ||
56 | 56 | let T19TO36 = 13 | |
57 | 57 | ||
58 | 58 | let HORIZONTAL = 1 | |
59 | 59 | ||
60 | 60 | let VERTICAL = 2 | |
61 | 61 | ||
62 | 62 | func is0to36 (num) = if (if ((num >= 0)) | |
63 | 63 | then (37 > num) | |
64 | 64 | else false) | |
65 | 65 | then true | |
66 | 66 | else throw("Invalid range, try between 0 and 36. Game aborted!") | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func isSplit (num1,num2,direction) = if ((direction == HORIZONTAL)) | |
70 | 70 | then if (if (if (if (if ((num1 > 0)) | |
71 | 71 | then (34 > num1) | |
72 | 72 | else false) | |
73 | 73 | then true | |
74 | 74 | else if ((num1 == 0)) | |
75 | 75 | then (num2 == 1) | |
76 | 76 | else false) | |
77 | 77 | then true | |
78 | 78 | else if ((num1 == 0)) | |
79 | 79 | then (num2 == 2) | |
80 | 80 | else false) | |
81 | 81 | then true | |
82 | 82 | else if ((num1 == 0)) | |
83 | 83 | then (num2 == 3) | |
84 | 84 | else false) | |
85 | 85 | then true | |
86 | 86 | else throw("Invalid split hotizontal move. Game aborted!") | |
87 | 87 | else if ((direction == VERTICAL)) | |
88 | 88 | then if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((num1 == 1)) | |
89 | 89 | then true | |
90 | 90 | else (num1 == 2)) | |
91 | 91 | then true | |
92 | 92 | else (num1 == 4)) | |
93 | 93 | then true | |
94 | 94 | else (num1 == 5)) | |
95 | 95 | then true | |
96 | 96 | else (num1 == 7)) | |
97 | 97 | then true | |
98 | 98 | else (num1 == 8)) | |
99 | 99 | then true | |
100 | 100 | else (num1 == 10)) | |
101 | 101 | then true | |
102 | 102 | else (num1 == 11)) | |
103 | 103 | then true | |
104 | 104 | else (num1 == 13)) | |
105 | 105 | then true | |
106 | 106 | else (num1 == 14)) | |
107 | 107 | then true | |
108 | 108 | else (num1 == 16)) | |
109 | 109 | then true | |
110 | 110 | else (num1 == 17)) | |
111 | 111 | then true | |
112 | 112 | else (num1 == 19)) | |
113 | 113 | then true | |
114 | 114 | else (num1 == 20)) | |
115 | 115 | then true | |
116 | 116 | else (num1 == 22)) | |
117 | 117 | then true | |
118 | 118 | else (num1 == 23)) | |
119 | 119 | then true | |
120 | 120 | else (num1 == 25)) | |
121 | 121 | then true | |
122 | 122 | else (num1 == 26)) | |
123 | 123 | then true | |
124 | 124 | else (num1 == 28)) | |
125 | 125 | then true | |
126 | 126 | else (num1 == 29)) | |
127 | 127 | then true | |
128 | 128 | else (num1 == 31)) | |
129 | 129 | then true | |
130 | 130 | else (num1 == 32)) | |
131 | 131 | then true | |
132 | 132 | else (num1 == 34)) | |
133 | 133 | then true | |
134 | 134 | else (num1 == 35)) | |
135 | 135 | then true | |
136 | 136 | else throw("Invalid split vertical move. Game aborted!") | |
137 | 137 | else throw("Invalid split move. Game aborted!") | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func isStreet (num1,num2) = if (if (if (if (if (if (if (if (if (if (if (if (if (if ((num1 == 1)) | |
141 | 141 | then true | |
142 | 142 | else (num1 == 4)) | |
143 | 143 | then true | |
144 | 144 | else (num1 == 7)) | |
145 | 145 | then true | |
146 | 146 | else (num1 == 10)) | |
147 | 147 | then true | |
148 | 148 | else (num1 == 13)) | |
149 | 149 | then true | |
150 | 150 | else (num1 == 16)) | |
151 | 151 | then true | |
152 | 152 | else (num1 == 19)) | |
153 | 153 | then true | |
154 | 154 | else (num1 == 22)) | |
155 | 155 | then true | |
156 | 156 | else (num1 == 25)) | |
157 | 157 | then true | |
158 | 158 | else (num1 == 28)) | |
159 | 159 | then true | |
160 | 160 | else (num1 == 31)) | |
161 | 161 | then true | |
162 | 162 | else (num1 == 34)) | |
163 | 163 | then true | |
164 | 164 | else if ((num1 == 0)) | |
165 | 165 | then (num2 == 1) | |
166 | 166 | else false) | |
167 | 167 | then true | |
168 | 168 | else if ((num1 == 0)) | |
169 | 169 | then (num2 == 3) | |
170 | 170 | else false) | |
171 | 171 | then true | |
172 | 172 | else throw("Invalid street move. Game aborted!") | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func isCorner (num1,num2) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((num1 == 1)) | |
176 | 176 | then true | |
177 | 177 | else (num1 == 2)) | |
178 | 178 | then true | |
179 | 179 | else (num1 == 4)) | |
180 | 180 | then true | |
181 | 181 | else (num1 == 5)) | |
182 | 182 | then true | |
183 | 183 | else (num1 == 7)) | |
184 | 184 | then true | |
185 | 185 | else (num1 == 8)) | |
186 | 186 | then true | |
187 | 187 | else (num1 == 10)) | |
188 | 188 | then true | |
189 | 189 | else (num1 == 11)) | |
190 | 190 | then true | |
191 | 191 | else (num1 == 13)) | |
192 | 192 | then true | |
193 | 193 | else (num1 == 14)) | |
194 | 194 | then true | |
195 | 195 | else (num1 == 16)) | |
196 | 196 | then true | |
197 | 197 | else (num1 == 17)) | |
198 | 198 | then true | |
199 | 199 | else (num1 == 19)) | |
200 | 200 | then true | |
201 | 201 | else (num1 == 20)) | |
202 | 202 | then true | |
203 | 203 | else (num1 == 22)) | |
204 | 204 | then true | |
205 | 205 | else (num1 == 23)) | |
206 | 206 | then true | |
207 | 207 | else (num1 == 25)) | |
208 | 208 | then true | |
209 | 209 | else (num1 == 26)) | |
210 | 210 | then true | |
211 | 211 | else (num1 == 28)) | |
212 | 212 | then true | |
213 | 213 | else (num1 == 29)) | |
214 | 214 | then true | |
215 | 215 | else (num1 == 31)) | |
216 | 216 | then true | |
217 | 217 | else (num1 == 32)) | |
218 | 218 | then true | |
219 | 219 | else if ((num1 == 0)) | |
220 | 220 | then (num2 == 1) | |
221 | 221 | else false) | |
222 | 222 | then true | |
223 | 223 | else throw("Invalid corner move. Game aborted!") | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func isLine (num) = if (if (if (if (if (if (if (if (if (if (if ((num == 1)) | |
227 | 227 | then true | |
228 | 228 | else (num == 4)) | |
229 | 229 | then true | |
230 | 230 | else (num == 7)) | |
231 | 231 | then true | |
232 | 232 | else (num == 10)) | |
233 | 233 | then true | |
234 | 234 | else (num == 13)) | |
235 | 235 | then true | |
236 | 236 | else (num == 16)) | |
237 | 237 | then true | |
238 | 238 | else (num == 19)) | |
239 | 239 | then true | |
240 | 240 | else (num == 22)) | |
241 | 241 | then true | |
242 | 242 | else (num == 25)) | |
243 | 243 | then true | |
244 | 244 | else (num == 28)) | |
245 | 245 | then true | |
246 | 246 | else (num == 31)) | |
247 | 247 | then true | |
248 | 248 | else throw("Invalid line move. Game aborted!") | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func isColumn (num,column) = if ((column == 1)) | |
252 | 252 | then if (if (if (if (if (if (if (if (if (if (if (if ((num == 1)) | |
253 | 253 | then true | |
254 | 254 | else (num == 4)) | |
255 | 255 | then true | |
256 | 256 | else (num == 7)) | |
257 | 257 | then true | |
258 | 258 | else (num == 10)) | |
259 | 259 | then true | |
260 | 260 | else (num == 13)) | |
261 | 261 | then true | |
262 | 262 | else (num == 16)) | |
263 | 263 | then true | |
264 | 264 | else (num == 19)) | |
265 | 265 | then true | |
266 | 266 | else (num == 22)) | |
267 | 267 | then true | |
268 | 268 | else (num == 25)) | |
269 | 269 | then true | |
270 | 270 | else (num == 28)) | |
271 | 271 | then true | |
272 | 272 | else (num == 31)) | |
273 | 273 | then true | |
274 | 274 | else (num == 34)) | |
275 | 275 | then true | |
276 | 276 | else throw("Invalid column 1 move. Game aborted!") | |
277 | 277 | else if ((column == 2)) | |
278 | 278 | then if (if (if (if (if (if (if (if (if (if (if (if ((num == 2)) | |
279 | 279 | then true | |
280 | 280 | else (num == 5)) | |
281 | 281 | then true | |
282 | 282 | else (num == 8)) | |
283 | 283 | then true | |
284 | 284 | else (num == 11)) | |
285 | 285 | then true | |
286 | 286 | else (num == 14)) | |
287 | 287 | then true | |
288 | 288 | else (num == 17)) | |
289 | 289 | then true | |
290 | 290 | else (num == 20)) | |
291 | 291 | then true | |
292 | 292 | else (num == 23)) | |
293 | 293 | then true | |
294 | 294 | else (num == 26)) | |
295 | 295 | then true | |
296 | 296 | else (num == 29)) | |
297 | 297 | then true | |
298 | 298 | else (num == 32)) | |
299 | 299 | then true | |
300 | 300 | else (num == 35)) | |
301 | 301 | then true | |
302 | 302 | else throw("Invalid column 2 move. Game aborted!") | |
303 | 303 | else if ((column == 3)) | |
304 | 304 | then if (if (if (if (if (if (if (if (if (if (if (if ((num == 3)) | |
305 | 305 | then true | |
306 | 306 | else (num == 6)) | |
307 | 307 | then true | |
308 | 308 | else (num == 9)) | |
309 | 309 | then true | |
310 | 310 | else (num == 12)) | |
311 | 311 | then true | |
312 | 312 | else (num == 15)) | |
313 | 313 | then true | |
314 | 314 | else (num == 18)) | |
315 | 315 | then true | |
316 | 316 | else (num == 21)) | |
317 | 317 | then true | |
318 | 318 | else (num == 24)) | |
319 | 319 | then true | |
320 | 320 | else (num == 27)) | |
321 | 321 | then true | |
322 | 322 | else (num == 30)) | |
323 | 323 | then true | |
324 | 324 | else (num == 33)) | |
325 | 325 | then true | |
326 | 326 | else (num == 36)) | |
327 | 327 | then true | |
328 | 328 | else throw("Invalid column 3 move. Game aborted!") | |
329 | 329 | else throw("Invalid column move. Game aborted!") | |
330 | 330 | ||
331 | 331 | ||
332 | 332 | func isDozen (num,dozen) = if ((dozen == 1)) | |
333 | 333 | then if (if ((num > 0)) | |
334 | 334 | then (13 > num) | |
335 | 335 | else false) | |
336 | 336 | then true | |
337 | 337 | else throw("Invalid dozen 1 move. Game aborted!") | |
338 | 338 | else if ((dozen == 2)) | |
339 | 339 | then if (if ((num > 12)) | |
340 | 340 | then (25 > num) | |
341 | 341 | else false) | |
342 | 342 | then true | |
343 | 343 | else throw("Invalid dozen 2 move. Game aborted!") | |
344 | 344 | else if ((dozen == 3)) | |
345 | 345 | then if (if ((num > 24)) | |
346 | 346 | then (37 > num) | |
347 | 347 | else false) | |
348 | 348 | then true | |
349 | 349 | else throw("Invalid dozen 3 move. Game aborted!") | |
350 | 350 | else throw("Invalid dozen move. Game aborted!") | |
351 | 351 | ||
352 | 352 | ||
353 | 353 | func isRed (num) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((num == 1)) | |
354 | 354 | then true | |
355 | 355 | else (num == 3)) | |
356 | 356 | then true | |
357 | 357 | else (num == 5)) | |
358 | 358 | then true | |
359 | 359 | else (num == 7)) | |
360 | 360 | then true | |
361 | 361 | else (num == 9)) | |
362 | 362 | then true | |
363 | 363 | else (num == 12)) | |
364 | 364 | then true | |
365 | 365 | else (num == 14)) | |
366 | 366 | then true | |
367 | 367 | else (num == 16)) | |
368 | 368 | then true | |
369 | 369 | else (num == 18)) | |
370 | 370 | then true | |
371 | 371 | else (num == 19)) | |
372 | 372 | then true | |
373 | 373 | else (num == 21)) | |
374 | 374 | then true | |
375 | 375 | else (num == 23)) | |
376 | 376 | then true | |
377 | 377 | else (num == 25)) | |
378 | 378 | then true | |
379 | 379 | else (num == 27)) | |
380 | 380 | then true | |
381 | 381 | else (num == 30)) | |
382 | 382 | then true | |
383 | 383 | else (num == 32)) | |
384 | 384 | then true | |
385 | 385 | else (num == 34)) | |
386 | 386 | then true | |
387 | 387 | else (num == 36)) | |
388 | 388 | then true | |
389 | 389 | else throw("Invalid color, expected red color, try again. Game aborted!") | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | func isBlack (num) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((num == 2)) | |
393 | 393 | then true | |
394 | 394 | else (num == 4)) | |
395 | 395 | then true | |
396 | 396 | else (num == 6)) | |
397 | 397 | then true | |
398 | 398 | else (num == 8)) | |
399 | 399 | then true | |
400 | 400 | else (num == 10)) | |
401 | 401 | then true | |
402 | 402 | else (num == 11)) | |
403 | 403 | then true | |
404 | 404 | else (num == 13)) | |
405 | 405 | then true | |
406 | 406 | else (num == 15)) | |
407 | 407 | then true | |
408 | 408 | else (num == 17)) | |
409 | 409 | then true | |
410 | 410 | else (num == 20)) | |
411 | 411 | then true | |
412 | 412 | else (num == 22)) | |
413 | 413 | then true | |
414 | 414 | else (num == 24)) | |
415 | 415 | then true | |
416 | 416 | else (num == 26)) | |
417 | 417 | then true | |
418 | 418 | else (num == 28)) | |
419 | 419 | then true | |
420 | 420 | else (num == 29)) | |
421 | 421 | then true | |
422 | 422 | else (num == 31)) | |
423 | 423 | then true | |
424 | 424 | else (num == 33)) | |
425 | 425 | then true | |
426 | 426 | else (num == 35)) | |
427 | 427 | then true | |
428 | 428 | else throw("Invalid color, expected black color, try again. Game aborted!") | |
429 | 429 | ||
430 | 430 | ||
431 | 431 | func isOdd (num) = if (((num % 2) != 0)) | |
432 | 432 | then true | |
433 | 433 | else throw("Invalid move, number is not odd. Game aborted!") | |
434 | 434 | ||
435 | 435 | ||
436 | 436 | func isEven (num) = if (((num % 2) == 0)) | |
437 | 437 | then true | |
438 | 438 | else throw("Invalid move, number is not even. Game aborted!") | |
439 | 439 | ||
440 | 440 | ||
441 | 441 | func is1to18 (num) = if (if ((num > 0)) | |
442 | 442 | then (19 > num) | |
443 | 443 | else false) | |
444 | 444 | then true | |
445 | 445 | else throw("Invalid range for 1to18, try between 1 and 18. Game aborted!") | |
446 | 446 | ||
447 | 447 | ||
448 | 448 | func is19to36 (num) = if (if ((num > 18)) | |
449 | 449 | then (37 > num) | |
450 | 450 | else false) | |
451 | 451 | then true | |
452 | 452 | else throw("Invalid range for 19to36, try between 1 and 18. Game aborted!") | |
453 | 453 | ||
454 | 454 | ||
455 | 455 | func validateBet (bet) = { | |
456 | 456 | let betContents = split(bet, "_") | |
457 | 457 | if ((size(betContents) == 5)) | |
458 | 458 | then { | |
459 | 459 | let betType = parseIntValue(betContents[0]) | |
460 | 460 | let betAmount = parseIntValue(betContents[1]) | |
461 | 461 | let betNum1 = parseIntValue(betContents[2]) | |
462 | 462 | let betNum2 = parseIntValue(betContents[3]) | |
463 | 463 | let betNum3 = parseIntValue(betContents[4]) | |
464 | 464 | if (is0to36(betNum1)) | |
465 | 465 | then if ((betType == TSPLIT)) | |
466 | 466 | then if (isSplit(betNum1, betNum2, betNum3)) | |
467 | 467 | then betAmount | |
468 | 468 | else 0 | |
469 | 469 | else if ((betType == TSTREET)) | |
470 | 470 | then if (isStreet(betNum1, betNum2)) | |
471 | 471 | then betAmount | |
472 | 472 | else 0 | |
473 | 473 | else if ((betType == TCOLUMN)) | |
474 | 474 | then if (isCorner(betNum1, betNum2)) | |
475 | 475 | then betAmount | |
476 | 476 | else 0 | |
477 | 477 | else if ((betType == TLINE)) | |
478 | 478 | then if (isLine(betNum1)) | |
479 | 479 | then betAmount | |
480 | 480 | else 0 | |
481 | 481 | else if ((betType == TCOLUMN)) | |
482 | 482 | then if (isColumn(betNum1, betNum2)) | |
483 | 483 | then betAmount | |
484 | 484 | else 0 | |
485 | 485 | else if ((betType == TDOZEN)) | |
486 | 486 | then if (isDozen(betNum1, betNum2)) | |
487 | 487 | then betAmount | |
488 | 488 | else 0 | |
489 | 489 | else if ((betType == TRED)) | |
490 | 490 | then if (isRed(betNum1)) | |
491 | 491 | then betAmount | |
492 | 492 | else 0 | |
493 | 493 | else if ((betType == TBLACK)) | |
494 | 494 | then if (isBlack(betNum1)) | |
495 | 495 | then betAmount | |
496 | 496 | else 0 | |
497 | 497 | else if ((betType == TODD)) | |
498 | 498 | then if (isOdd(betNum1)) | |
499 | 499 | then betAmount | |
500 | 500 | else 0 | |
501 | 501 | else if ((betType == TEVEN)) | |
502 | 502 | then if (isEven(betNum1)) | |
503 | 503 | then betAmount | |
504 | 504 | else 0 | |
505 | 505 | else if ((betType == T1TO18)) | |
506 | 506 | then if (is1to18(betNum1)) | |
507 | 507 | then betAmount | |
508 | 508 | else 0 | |
509 | 509 | else if ((betType == T19TO36)) | |
510 | 510 | then if (is19to36(betNum1)) | |
511 | 511 | then betAmount | |
512 | 512 | else 0 | |
513 | 513 | else throw("Invalid bet type, Game aborted!") | |
514 | 514 | else throw("Invalid bet, Game aborted!") | |
515 | 515 | } | |
516 | 516 | else 0 | |
517 | 517 | } | |
518 | 518 | ||
519 | 519 | ||
520 | 520 | func validateBetsAndGetAmt (bets) = (validateBet(bets[0]) + validateBet(bets[1])) | |
521 | 521 | ||
522 | 522 | ||
523 | 523 | func IncrementGameNum () = { | |
524 | 524 | let gameNum = match getInteger(this, GAMESCOUNTERKEY) { | |
525 | 525 | case num: Int => | |
526 | 526 | num | |
527 | 527 | case _ => | |
528 | 528 | 0 | |
529 | 529 | } | |
530 | 530 | (gameNum + 1) | |
531 | 531 | } | |
532 | 532 | ||
533 | 533 | ||
534 | 534 | @Callable(i) | |
535 | 535 | func playRoulette (bets) = { | |
536 | - | let s = split(bets, " | |
536 | + | let s = split(bets, "_") | |
537 | 537 | throw(toString(size(s))) | |
538 | 538 | } | |
539 | 539 | ||
540 | 540 |
github/deemru/w8io/169f3d6 65.82 ms ◑