tx · 4BkvEErH8kEpMzRAVDeuP2GizBCcDqNFxZCbRVGQVxk8

3NA7cHZ9oBicev5AEn3BidRAyitA3HdjRbE:  -0.05000000 Waves

2019.11.27 05:48 [783098] smart account 3NA7cHZ9oBicev5AEn3BidRAyitA3HdjRbE > SELF 0.00000000 Waves

{ "type": 13, "id": "4BkvEErH8kEpMzRAVDeuP2GizBCcDqNFxZCbRVGQVxk8", "fee": 5000000, "feeAssetId": null, "timestamp": 1574822920441, "version": 1, "sender": "3NA7cHZ9oBicev5AEn3BidRAyitA3HdjRbE", "senderPublicKey": "FEmBffz5oKcY5pLrHbwcj8jxovWVvTYCeNRzNT6uHBJc", "proofs": [ "4Vx2Yi53vga5LqZDTwUZDV2QU7Gepu2AArY4aYvLMUnicGG82VJ2XgHcwY2H49HB54hwph5j6YsXkJJPTxFCh48U" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAJwAAAAAJUlNBUFVCTElDCQACWwAAAAECAAABj2Jhc2U2NDpNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQWc0ZEFSNlhiQkRBUzloci9FajNkSnY2RmZjNDY2eC9tT0dNV1UzbHJBQnMzcWE4QkhtdUpHbmtmYnBFZjJ2QXdZVE9XUHZ2emZNMTBPQmJmbG9TeXEzYzlNS3Z5VGUxbHVCTEdxVzR2WlVYSXl2U2d6MWxpeVVWZWZJUXkzZHlGOWpiZVRaYkMwYmJjVC83TzNERUwrMDF6NkErckRDYWNTWjBsR29sU1E2QW5oTHh6SWtWcE9RSmJyQm1DK3grWnVaUENNV3pKeW5kNWFlT243amFqL21rUlZ5eGU2Zy8wT2hXejROaWlaWGV1TVJCKzhtS3kwZldEL1VsSWxaV0hzQVMyWm1ya1hLcWpMcTAvMHdyOElMSmt6bmpTcWRuSTVJYmpnM3VRcmovNEFOK2k5cjI4YVE3My9aa1B0WTVTYncwQU9pQUJCdTdnSG1xOWF5VnhaUUlEQVFBQgAAAA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dmFsaWRhdGVCZXRBbmRHZXRBbXQAAAABCQABkQAAAAIFAAAABGJldHMAAAAAAAAAAAEBAAAAEEluY3JlbWVudEdhbWVOdW0AAAAABAAAAAdnYW1lTnVtBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAD0dBTUVTQ09VTlRFUktFWQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAANudW0FAAAAByRtYXRjaDAFAAAAA251bQAAAAAAAAAAAAkAAGQAAAACBQAAAAdnYW1lTnVtAAAAAAAAAAABAAAAAQAAAAFpAQAAAAxwbGF5Um91bGV0dGUAAAABAAAABGJldHMEAAAAAXMJAAS1AAAAAgUAAAAEYmV0cwIAAAABXwQAAAABYQkAAZEAAAACBQAAAAFzAAAAAAAAAAAABAAAAAFiCQABkQAAAAIFAAAAAXMAAAAAAAAAAAEJAAACAAAAAQkAASwAAAACAgAAAANhOiAJAAGkAAAAAQkAATEAAAABBQAAAAFhAAAAAEby45Y=", "chainId": 84, "height": 783098, "spentComplexity": 0 } View: original | compacted Prev: DXGsSiqYdnkrA1eBnc1CFAyPE4VQhG1UsdkDVupStbcD Next: HVoCdiTdiNXPXGSnJWm4fzauw5UMDRLLdAZYk7NCQ9WX Diff:
OldNewDifferences
248248 else throw("Invalid line move. Game aborted!")
249249
250250
251-func M (E,N) = if ((N == 1))
252- then if (if (if (if (if (if (if (if (if (if (if (if ((E == 1))
253- then true
254- else (E == 4))
255- then true
256- else (E == 7))
257- then true
258- else (E == 10))
259- then true
260- else (E == 13))
261- then true
262- else (E == 16))
263- then true
264- else (E == 19))
265- then true
266- else (E == 22))
267- then true
268- else (E == 25))
269- then true
270- else (E == 28))
271- then true
272- else (E == 31))
273- then true
274- else (E == 34))
275- then true
276- else throw("Invalid column 1 move. Game aborted!")
277- else if ((N == 2))
278- then if (if (if (if (if (if (if (if (if (if (if (if ((E == 2))
279- then true
280- else (E == 5))
281- then true
282- else (E == 8))
283- then true
284- else (E == 11))
285- then true
286- else (E == 14))
287- then true
288- else (E == 17))
289- then true
290- else (E == 20))
291- then true
292- else (E == 23))
293- then true
294- else (E == 26))
295- then true
296- else (E == 29))
297- then true
298- else (E == 32))
299- then true
300- else (E == 35))
301- then true
302- else throw("Invalid column 2 move. Game aborted!")
303- else if ((N == 3))
304- then if (if (if (if (if (if (if (if (if (if (if (if ((E == 3))
305- then true
306- else (E == 6))
307- then true
308- else (E == 9))
309- then true
310- else (E == 12))
311- then true
312- else (E == 15))
313- then true
314- else (E == 18))
315- then true
316- else (E == 21))
317- then true
318- else (E == 24))
319- then true
320- else (E == 27))
321- then true
322- else (E == 30))
323- then true
324- else (E == 33))
325- then true
326- else (E == 36))
327- then true
328- else throw("Invalid column 3 move. Game aborted!")
329- else throw("Invalid column move. Game aborted!")
251+func M (N) = if (if (if ((N == 1))
252+ then true
253+ else (N == 2))
254+ then true
255+ else (N == 3))
256+ then true
257+ else throw("Invalid column move. Game aborted!")
330258
331259
332-func O (E,P) = if ((P == 1))
333- then if (if ((E > 0))
334- then (13 > E)
335- else false)
336- then true
337- else throw("Invalid dozen 1 move. Game aborted!")
338- else if ((P == 2))
339- then if (if ((E > 12))
340- then (25 > E)
341- else false)
342- then true
343- else throw("Invalid dozen 2 move. Game aborted!")
344- else if ((P == 3))
345- then if (if ((E > 24))
346- then (37 > E)
347- else false)
348- then true
349- else throw("Invalid dozen 3 move. Game aborted!")
350- else throw("Invalid dozen move. Game aborted!")
260+func O (P) = if (if (if ((P == 1))
261+ then true
262+ else (P == 2))
263+ then true
264+ else (P == 3))
265+ then true
266+ else throw("Invalid dozen move. Game aborted!")
351267
352268
353-func Q (E) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((E == 1))
354- then true
355- else (E == 3))
356- then true
357- else (E == 5))
358- then true
359- else (E == 7))
360- then true
361- else (E == 9))
362- then true
363- else (E == 12))
364- then true
365- else (E == 14))
366- then true
367- else (E == 16))
368- then true
369- else (E == 18))
370- then true
371- else (E == 19))
372- then true
373- else (E == 21))
374- then true
375- else (E == 23))
376- then true
377- else (E == 25))
378- then true
379- else (E == 27))
380- then true
381- else (E == 30))
382- then true
383- else (E == 32))
384- then true
385- else (E == 34))
386- then true
387- else (E == 36))
388- then true
389- else throw("Invalid color, expected red color, try again. Game aborted!")
269+func Q (R) = if ((size(R) != 0))
270+ then {
271+ let S = split(R, "_")
272+ if ((size(S) == 5))
273+ then {
274+ let T = parseIntValue(S[0])
275+ let U = parseIntValue(S[1])
276+ let V = parseIntValue(S[2])
277+ let W = parseIntValue(S[3])
278+ let X = parseIntValue(S[4])
279+ if (D(V))
280+ then if ((T == o))
281+ then U
282+ else if ((T == p))
283+ then if (F(V, W, X))
284+ then U
285+ else 0
286+ else if ((T == q))
287+ then if (J(V, W))
288+ then U
289+ else 0
290+ else if ((T == t))
291+ then if (K(V, W))
292+ then U
293+ else 0
294+ else if ((T == s))
295+ then if (L(V))
296+ then U
297+ else 0
298+ else if ((T == t))
299+ then if (M(V))
300+ then U
301+ else 0
302+ else if ((T == u))
303+ then if (O(V))
304+ then U
305+ else 0
306+ else if ((T == v))
307+ then U
308+ else if ((T == w))
309+ then U
310+ else if ((T == x))
311+ then U
312+ else if ((T == y))
313+ then U
314+ else if ((T == z))
315+ then U
316+ else if ((T == A))
317+ then U
318+ else throw("Invalid bet type, Game aborted!")
319+ else throw("Invalid bet range, Game aborted!")
320+ }
321+ else throw("Invalid bet structure, Game aborted!")
322+ }
323+ else 0
390324
391325
392-func R (E) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((E == 2))
393- then true
394- else (E == 4))
395- then true
396- else (E == 6))
397- then true
398- else (E == 8))
399- then true
400- else (E == 10))
401- then true
402- else (E == 11))
403- then true
404- else (E == 13))
405- then true
406- else (E == 15))
407- then true
408- else (E == 17))
409- then true
410- else (E == 20))
411- then true
412- else (E == 22))
413- then true
414- else (E == 24))
415- then true
416- else (E == 26))
417- then true
418- else (E == 28))
419- then true
420- else (E == 29))
421- then true
422- else (E == 31))
423- then true
424- else (E == 33))
425- then true
426- else (E == 35))
427- then true
428- else throw("Invalid color, expected black color, try again. Game aborted!")
326+func Y (Z) = (Q(Z[0]) + Q(Z[1]))
429327
430328
431-func S (E) = if (((E % 2) != 0))
432- then true
433- else throw("Invalid move, number is not odd. Game aborted!")
434-
435-
436-func T (E) = if (((E % 2) == 0))
437- then true
438- else throw("Invalid move, number is not even. Game aborted!")
439-
440-
441-func U (E) = if (if ((E > 0))
442- then (19 > E)
443- else false)
444- then true
445- else throw("Invalid range for 1to18, try between 1 and 18. Game aborted!")
446-
447-
448-func V (E) = if (if ((E > 18))
449- then (37 > E)
450- else false)
451- then true
452- else throw("Invalid range for 19to36, try between 1 and 18. Game aborted!")
453-
454-
455-func W (X) = {
456- let Y = split(X, "_")
457- if ((size(Y) == 5))
458- then {
459- let Z = parseIntValue(Y[0])
460- let aa = parseIntValue(Y[1])
461- let ab = parseIntValue(Y[2])
462- let ac = parseIntValue(Y[3])
463- let ad = parseIntValue(Y[4])
464- if (D(ab))
465- then if ((Z == p))
466- then if (F(ab, ac, ad))
467- then aa
468- else 0
469- else if ((Z == q))
470- then if (J(ab, ac))
471- then aa
472- else 0
473- else if ((Z == t))
474- then if (K(ab, ac))
475- then aa
476- else 0
477- else if ((Z == s))
478- then if (L(ab))
479- then aa
480- else 0
481- else if ((Z == t))
482- then if (M(ab, ac))
483- then aa
484- else 0
485- else if ((Z == u))
486- then if (O(ab, ac))
487- then aa
488- else 0
489- else if ((Z == v))
490- then if (Q(ab))
491- then aa
492- else 0
493- else if ((Z == w))
494- then if (R(ab))
495- then aa
496- else 0
497- else if ((Z == x))
498- then if (S(ab))
499- then aa
500- else 0
501- else if ((Z == y))
502- then if (T(ab))
503- then aa
504- else 0
505- else if ((Z == z))
506- then if (U(ab))
507- then aa
508- else 0
509- else if ((Z == A))
510- then if (V(ab))
511- then aa
512- else 0
513- else throw("Invalid bet type, Game aborted!")
514- else throw("Invalid bet, Game aborted!")
515- }
516- else 0
517- }
518-
519-
520-func ae (af) = (W(af[0]) + W(af[1]))
521-
522-
523-func ag () = {
524- let ah = {
525- let ai = getInteger(this, b)
526- if ($isInstanceOf(ai, "Int"))
329+func aa () = {
330+ let ab = {
331+ let ac = getInteger(this, b)
332+ if ($isInstanceOf(ac, "Int"))
527333 then {
528- let E = ai
334+ let E = ac
529335 E
530336 }
531337 else 0
532338 }
533- (ah + 1)
339+ (ab + 1)
534340 }
535341
536342
537-@Callable(aj)
538-func playRoulette (af) = {
539- let ak = split(af, "_")
540- let al = ak[0]
541- throw(("a: " + toString(size(al))))
343+@Callable(ad)
344+func playRoulette (Z) = {
345+ let ae = split(Z, "_")
346+ let af = ae[0]
347+ let ag = ae[1]
348+ throw(("a: " + toString(size(af))))
542349 }
543350
544351
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAg4dAR6XbBDAS9hr/Ej3dJv6Ffc466x/mOGMWU3lrABs3qa8BHmuJGnkfbpEf2vAwYTOWPvvzfM10OBbfloSyq3c9MKvyTe1luBLGqW4vZUXIyvSgz1liyUVefIQy3dyF9jbeTZbC0bbcT/7O3DEL+01z6A+rDCacSZ0lGolSQ6AnhLxzIkVpOQJbrBmC+x+ZuZPCMWzJynd5aeOn7jaj/mkRVyxe6g/0OhWz4NiiZXeuMRB+8mKy0fWD/UlIlZWHsAS2ZmrkXKqjLq0/0wr8ILJkznjSqdnI5Ibjg3uQrj/4AN+i9r28aQ73/ZkPtY5Sbw0AOiABBu7gHmq9ayVxZQIDAQAB")
55
66 let b = "$GAME_NUM"
77
88 let c = "$RESERVED_AMOUNT"
99
1010 let d = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw'
1111
1212 let e = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8')
1313
1414 let f = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8')
1515
1616 let g = 100000000
1717
1818 let h = 4
1919
2020 let i = 2
2121
2222 let j = "SUBMITTED"
2323
2424 let k = "WON"
2525
2626 let l = "LOST"
2727
2828 let m = (1 * g)
2929
3030 let n = (20000000 * g)
3131
3232 let o = 1
3333
3434 let p = 2
3535
3636 let q = 3
3737
3838 let r = 4
3939
4040 let s = 5
4141
4242 let t = 6
4343
4444 let u = 7
4545
4646 let v = 8
4747
4848 let w = 9
4949
5050 let x = 10
5151
5252 let y = 11
5353
5454 let z = 12
5555
5656 let A = 13
5757
5858 let B = 1
5959
6060 let C = 2
6161
6262 func D (E) = if (if ((E >= 0))
6363 then (37 > E)
6464 else false)
6565 then true
6666 else throw("Invalid range, try between 0 and 36. Game aborted!")
6767
6868
6969 func F (G,H,I) = if ((I == B))
7070 then if (if (if (if (if ((G > 0))
7171 then (34 > G)
7272 else false)
7373 then true
7474 else if ((G == 0))
7575 then (H == 1)
7676 else false)
7777 then true
7878 else if ((G == 0))
7979 then (H == 2)
8080 else false)
8181 then true
8282 else if ((G == 0))
8383 then (H == 3)
8484 else false)
8585 then true
8686 else throw("Invalid split hotizontal move. Game aborted!")
8787 else if ((I == C))
8888 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 ((G == 1))
8989 then true
9090 else (G == 2))
9191 then true
9292 else (G == 4))
9393 then true
9494 else (G == 5))
9595 then true
9696 else (G == 7))
9797 then true
9898 else (G == 8))
9999 then true
100100 else (G == 10))
101101 then true
102102 else (G == 11))
103103 then true
104104 else (G == 13))
105105 then true
106106 else (G == 14))
107107 then true
108108 else (G == 16))
109109 then true
110110 else (G == 17))
111111 then true
112112 else (G == 19))
113113 then true
114114 else (G == 20))
115115 then true
116116 else (G == 22))
117117 then true
118118 else (G == 23))
119119 then true
120120 else (G == 25))
121121 then true
122122 else (G == 26))
123123 then true
124124 else (G == 28))
125125 then true
126126 else (G == 29))
127127 then true
128128 else (G == 31))
129129 then true
130130 else (G == 32))
131131 then true
132132 else (G == 34))
133133 then true
134134 else (G == 35))
135135 then true
136136 else throw("Invalid split vertical move. Game aborted!")
137137 else throw("Invalid split move. Game aborted!")
138138
139139
140140 func J (G,H) = if (if (if (if (if (if (if (if (if (if (if (if (if (if ((G == 1))
141141 then true
142142 else (G == 4))
143143 then true
144144 else (G == 7))
145145 then true
146146 else (G == 10))
147147 then true
148148 else (G == 13))
149149 then true
150150 else (G == 16))
151151 then true
152152 else (G == 19))
153153 then true
154154 else (G == 22))
155155 then true
156156 else (G == 25))
157157 then true
158158 else (G == 28))
159159 then true
160160 else (G == 31))
161161 then true
162162 else (G == 34))
163163 then true
164164 else if ((G == 0))
165165 then (H == 1)
166166 else false)
167167 then true
168168 else if ((G == 0))
169169 then (H == 3)
170170 else false)
171171 then true
172172 else throw("Invalid street move. Game aborted!")
173173
174174
175175 func K (G,H) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((G == 1))
176176 then true
177177 else (G == 2))
178178 then true
179179 else (G == 4))
180180 then true
181181 else (G == 5))
182182 then true
183183 else (G == 7))
184184 then true
185185 else (G == 8))
186186 then true
187187 else (G == 10))
188188 then true
189189 else (G == 11))
190190 then true
191191 else (G == 13))
192192 then true
193193 else (G == 14))
194194 then true
195195 else (G == 16))
196196 then true
197197 else (G == 17))
198198 then true
199199 else (G == 19))
200200 then true
201201 else (G == 20))
202202 then true
203203 else (G == 22))
204204 then true
205205 else (G == 23))
206206 then true
207207 else (G == 25))
208208 then true
209209 else (G == 26))
210210 then true
211211 else (G == 28))
212212 then true
213213 else (G == 29))
214214 then true
215215 else (G == 31))
216216 then true
217217 else (G == 32))
218218 then true
219219 else if ((G == 0))
220220 then (H == 1)
221221 else false)
222222 then true
223223 else throw("Invalid corner move. Game aborted!")
224224
225225
226226 func L (E) = if (if (if (if (if (if (if (if (if (if (if ((E == 1))
227227 then true
228228 else (E == 4))
229229 then true
230230 else (E == 7))
231231 then true
232232 else (E == 10))
233233 then true
234234 else (E == 13))
235235 then true
236236 else (E == 16))
237237 then true
238238 else (E == 19))
239239 then true
240240 else (E == 22))
241241 then true
242242 else (E == 25))
243243 then true
244244 else (E == 28))
245245 then true
246246 else (E == 31))
247247 then true
248248 else throw("Invalid line move. Game aborted!")
249249
250250
251-func M (E,N) = if ((N == 1))
252- then if (if (if (if (if (if (if (if (if (if (if (if ((E == 1))
253- then true
254- else (E == 4))
255- then true
256- else (E == 7))
257- then true
258- else (E == 10))
259- then true
260- else (E == 13))
261- then true
262- else (E == 16))
263- then true
264- else (E == 19))
265- then true
266- else (E == 22))
267- then true
268- else (E == 25))
269- then true
270- else (E == 28))
271- then true
272- else (E == 31))
273- then true
274- else (E == 34))
275- then true
276- else throw("Invalid column 1 move. Game aborted!")
277- else if ((N == 2))
278- then if (if (if (if (if (if (if (if (if (if (if (if ((E == 2))
279- then true
280- else (E == 5))
281- then true
282- else (E == 8))
283- then true
284- else (E == 11))
285- then true
286- else (E == 14))
287- then true
288- else (E == 17))
289- then true
290- else (E == 20))
291- then true
292- else (E == 23))
293- then true
294- else (E == 26))
295- then true
296- else (E == 29))
297- then true
298- else (E == 32))
299- then true
300- else (E == 35))
301- then true
302- else throw("Invalid column 2 move. Game aborted!")
303- else if ((N == 3))
304- then if (if (if (if (if (if (if (if (if (if (if (if ((E == 3))
305- then true
306- else (E == 6))
307- then true
308- else (E == 9))
309- then true
310- else (E == 12))
311- then true
312- else (E == 15))
313- then true
314- else (E == 18))
315- then true
316- else (E == 21))
317- then true
318- else (E == 24))
319- then true
320- else (E == 27))
321- then true
322- else (E == 30))
323- then true
324- else (E == 33))
325- then true
326- else (E == 36))
327- then true
328- else throw("Invalid column 3 move. Game aborted!")
329- else throw("Invalid column move. Game aborted!")
251+func M (N) = if (if (if ((N == 1))
252+ then true
253+ else (N == 2))
254+ then true
255+ else (N == 3))
256+ then true
257+ else throw("Invalid column move. Game aborted!")
330258
331259
332-func O (E,P) = if ((P == 1))
333- then if (if ((E > 0))
334- then (13 > E)
335- else false)
336- then true
337- else throw("Invalid dozen 1 move. Game aborted!")
338- else if ((P == 2))
339- then if (if ((E > 12))
340- then (25 > E)
341- else false)
342- then true
343- else throw("Invalid dozen 2 move. Game aborted!")
344- else if ((P == 3))
345- then if (if ((E > 24))
346- then (37 > E)
347- else false)
348- then true
349- else throw("Invalid dozen 3 move. Game aborted!")
350- else throw("Invalid dozen move. Game aborted!")
260+func O (P) = if (if (if ((P == 1))
261+ then true
262+ else (P == 2))
263+ then true
264+ else (P == 3))
265+ then true
266+ else throw("Invalid dozen move. Game aborted!")
351267
352268
353-func Q (E) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((E == 1))
354- then true
355- else (E == 3))
356- then true
357- else (E == 5))
358- then true
359- else (E == 7))
360- then true
361- else (E == 9))
362- then true
363- else (E == 12))
364- then true
365- else (E == 14))
366- then true
367- else (E == 16))
368- then true
369- else (E == 18))
370- then true
371- else (E == 19))
372- then true
373- else (E == 21))
374- then true
375- else (E == 23))
376- then true
377- else (E == 25))
378- then true
379- else (E == 27))
380- then true
381- else (E == 30))
382- then true
383- else (E == 32))
384- then true
385- else (E == 34))
386- then true
387- else (E == 36))
388- then true
389- else throw("Invalid color, expected red color, try again. Game aborted!")
269+func Q (R) = if ((size(R) != 0))
270+ then {
271+ let S = split(R, "_")
272+ if ((size(S) == 5))
273+ then {
274+ let T = parseIntValue(S[0])
275+ let U = parseIntValue(S[1])
276+ let V = parseIntValue(S[2])
277+ let W = parseIntValue(S[3])
278+ let X = parseIntValue(S[4])
279+ if (D(V))
280+ then if ((T == o))
281+ then U
282+ else if ((T == p))
283+ then if (F(V, W, X))
284+ then U
285+ else 0
286+ else if ((T == q))
287+ then if (J(V, W))
288+ then U
289+ else 0
290+ else if ((T == t))
291+ then if (K(V, W))
292+ then U
293+ else 0
294+ else if ((T == s))
295+ then if (L(V))
296+ then U
297+ else 0
298+ else if ((T == t))
299+ then if (M(V))
300+ then U
301+ else 0
302+ else if ((T == u))
303+ then if (O(V))
304+ then U
305+ else 0
306+ else if ((T == v))
307+ then U
308+ else if ((T == w))
309+ then U
310+ else if ((T == x))
311+ then U
312+ else if ((T == y))
313+ then U
314+ else if ((T == z))
315+ then U
316+ else if ((T == A))
317+ then U
318+ else throw("Invalid bet type, Game aborted!")
319+ else throw("Invalid bet range, Game aborted!")
320+ }
321+ else throw("Invalid bet structure, Game aborted!")
322+ }
323+ else 0
390324
391325
392-func R (E) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((E == 2))
393- then true
394- else (E == 4))
395- then true
396- else (E == 6))
397- then true
398- else (E == 8))
399- then true
400- else (E == 10))
401- then true
402- else (E == 11))
403- then true
404- else (E == 13))
405- then true
406- else (E == 15))
407- then true
408- else (E == 17))
409- then true
410- else (E == 20))
411- then true
412- else (E == 22))
413- then true
414- else (E == 24))
415- then true
416- else (E == 26))
417- then true
418- else (E == 28))
419- then true
420- else (E == 29))
421- then true
422- else (E == 31))
423- then true
424- else (E == 33))
425- then true
426- else (E == 35))
427- then true
428- else throw("Invalid color, expected black color, try again. Game aborted!")
326+func Y (Z) = (Q(Z[0]) + Q(Z[1]))
429327
430328
431-func S (E) = if (((E % 2) != 0))
432- then true
433- else throw("Invalid move, number is not odd. Game aborted!")
434-
435-
436-func T (E) = if (((E % 2) == 0))
437- then true
438- else throw("Invalid move, number is not even. Game aborted!")
439-
440-
441-func U (E) = if (if ((E > 0))
442- then (19 > E)
443- else false)
444- then true
445- else throw("Invalid range for 1to18, try between 1 and 18. Game aborted!")
446-
447-
448-func V (E) = if (if ((E > 18))
449- then (37 > E)
450- else false)
451- then true
452- else throw("Invalid range for 19to36, try between 1 and 18. Game aborted!")
453-
454-
455-func W (X) = {
456- let Y = split(X, "_")
457- if ((size(Y) == 5))
458- then {
459- let Z = parseIntValue(Y[0])
460- let aa = parseIntValue(Y[1])
461- let ab = parseIntValue(Y[2])
462- let ac = parseIntValue(Y[3])
463- let ad = parseIntValue(Y[4])
464- if (D(ab))
465- then if ((Z == p))
466- then if (F(ab, ac, ad))
467- then aa
468- else 0
469- else if ((Z == q))
470- then if (J(ab, ac))
471- then aa
472- else 0
473- else if ((Z == t))
474- then if (K(ab, ac))
475- then aa
476- else 0
477- else if ((Z == s))
478- then if (L(ab))
479- then aa
480- else 0
481- else if ((Z == t))
482- then if (M(ab, ac))
483- then aa
484- else 0
485- else if ((Z == u))
486- then if (O(ab, ac))
487- then aa
488- else 0
489- else if ((Z == v))
490- then if (Q(ab))
491- then aa
492- else 0
493- else if ((Z == w))
494- then if (R(ab))
495- then aa
496- else 0
497- else if ((Z == x))
498- then if (S(ab))
499- then aa
500- else 0
501- else if ((Z == y))
502- then if (T(ab))
503- then aa
504- else 0
505- else if ((Z == z))
506- then if (U(ab))
507- then aa
508- else 0
509- else if ((Z == A))
510- then if (V(ab))
511- then aa
512- else 0
513- else throw("Invalid bet type, Game aborted!")
514- else throw("Invalid bet, Game aborted!")
515- }
516- else 0
517- }
518-
519-
520-func ae (af) = (W(af[0]) + W(af[1]))
521-
522-
523-func ag () = {
524- let ah = {
525- let ai = getInteger(this, b)
526- if ($isInstanceOf(ai, "Int"))
329+func aa () = {
330+ let ab = {
331+ let ac = getInteger(this, b)
332+ if ($isInstanceOf(ac, "Int"))
527333 then {
528- let E = ai
334+ let E = ac
529335 E
530336 }
531337 else 0
532338 }
533- (ah + 1)
339+ (ab + 1)
534340 }
535341
536342
537-@Callable(aj)
538-func playRoulette (af) = {
539- let ak = split(af, "_")
540- let al = ak[0]
541- throw(("a: " + toString(size(al))))
343+@Callable(ad)
344+func playRoulette (Z) = {
345+ let ae = split(Z, "_")
346+ let af = ae[0]
347+ let ag = ae[1]
348+ throw(("a: " + toString(size(af))))
542349 }
543350
544351

github/deemru/w8io/169f3d6 
53.84 ms