tx · 72YobrsBUH12epXDuU1SPggqMJEJGrV8fGusBrj2LQrz 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB: -0.01400000 Waves 2021.06.03 11:55 [1553966] smart account 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB > SELF 0.00000000 Waves
{ "type": 13, "id": "72YobrsBUH12epXDuU1SPggqMJEJGrV8fGusBrj2LQrz", "fee": 1400000, "feeAssetId": null, "timestamp": 1622710537041, "version": 2, "chainId": 84, "sender": "3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB", "senderPublicKey": "CQ7vntBAYh2QZcKcqiiyEnQWWXsr98ysDptD23Wgxmvb", "proofs": [ "kBDMSnEEDfx5Qczhn3YNJhBJzLqCu4h2JUe3ezWvWSqXL7x7zz3yn2yz4LWV2LJGTeKbV4VbuoctwcbGURmzYjy" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIREQAAAA0AAAAAB2hhbmRpSWQBAAAAIJkAFV9y+TGMcmjsWdBTKE4ZGUePZL8IMZcI6Ogv4iEXAAAAAAdudW1MaXN0CQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAgkABEwAAAACAAAAAAAAAAADCQAETAAAAAIAAAAAAAAAAAQJAARMAAAAAgAAAAAAAAAABQkABEwAAAACAAAAAAAAAAAGCQAETAAAAAIAAAAAAAAAAAcJAARMAAAAAgAAAAAAAAAACAkABEwAAAACAAAAAAAAAAAJCQAETAAAAAIAAAAAAAAAAAoJAARMAAAAAgAAAAAAAAAACwkABEwAAAACAAAAAAAAAAAMCQAETAAAAAIAAAAAAAAAAA0JAARMAAAAAgAAAAAAAAAADgkABEwAAAACAAAAAAAAAAAPCQAETAAAAAIAAAAAAAAAABAJAARMAAAAAgAAAAAAAAAAEQkABEwAAAACAAAAAAAAAAASBQAAAANuaWwBAAAAB2xpc3RTdW0AAAABAAAAA2FycgoBAAAAA3N1bQAAAAIAAAABYQAAAAFiCQAAZAAAAAIFAAAAAW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ZGV4BQAAAAdoYW5kaUlkBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleSAGLnc=", "height": 1553966, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fo85Ej6YMbARw4FurpfExAaJcFzXa6YsdviesboDRP1N Next: 5xsDdZ9aXf1mSxARFdA8y54948n12bZDpcWtXHjkbVrb Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let handiId = base58'BJFTCAVHNhppygeLqYUyG5NB9GwNRjEjFeweJpXXi1DQ' | |
5 | + | ||
6 | + | let numList = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18] | |
7 | + | ||
4 | 8 | func listSum (arr) = { | |
5 | 9 | func sum (a,b) = (a + b) | |
6 | 10 | ||
7 | - | let $ | |
8 | - | let $ | |
9 | - | let $ | |
10 | - | if (($ | |
11 | - | then $ | |
11 | + | let $list322343 = arr | |
12 | + | let $size322343 = size($list322343) | |
13 | + | let $acc0322343 = 0 | |
14 | + | if (($size322343 == 0)) | |
15 | + | then $acc0322343 | |
12 | 16 | else { | |
13 | - | let $ | |
14 | - | if (($ | |
15 | - | then $ | |
17 | + | let $acc1322343 = sum($acc0322343, $list322343[0]) | |
18 | + | if (($size322343 == 1)) | |
19 | + | then $acc1322343 | |
16 | 20 | else { | |
17 | - | let $ | |
18 | - | if (($ | |
19 | - | then $ | |
21 | + | let $acc2322343 = sum($acc1322343, $list322343[1]) | |
22 | + | if (($size322343 == 2)) | |
23 | + | then $acc2322343 | |
20 | 24 | else { | |
21 | - | let $ | |
22 | - | if (($ | |
23 | - | then $ | |
25 | + | let $acc3322343 = sum($acc2322343, $list322343[2]) | |
26 | + | if (($size322343 == 3)) | |
27 | + | then $acc3322343 | |
24 | 28 | else { | |
25 | - | let $ | |
26 | - | if (($ | |
27 | - | then $ | |
29 | + | let $acc4322343 = sum($acc3322343, $list322343[3]) | |
30 | + | if (($size322343 == 4)) | |
31 | + | then $acc4322343 | |
28 | 32 | else { | |
29 | - | let $ | |
30 | - | if (($ | |
31 | - | then $ | |
33 | + | let $acc5322343 = sum($acc4322343, $list322343[4]) | |
34 | + | if (($size322343 == 5)) | |
35 | + | then $acc5322343 | |
32 | 36 | else { | |
33 | - | let $ | |
34 | - | if (($ | |
35 | - | then $ | |
37 | + | let $acc6322343 = sum($acc5322343, $list322343[5]) | |
38 | + | if (($size322343 == 6)) | |
39 | + | then $acc6322343 | |
36 | 40 | else { | |
37 | - | let $ | |
38 | - | if (($ | |
39 | - | then $ | |
41 | + | let $acc7322343 = sum($acc6322343, $list322343[6]) | |
42 | + | if (($size322343 == 7)) | |
43 | + | then $acc7322343 | |
40 | 44 | else { | |
41 | - | let $ | |
42 | - | if (($ | |
43 | - | then $ | |
45 | + | let $acc8322343 = sum($acc7322343, $list322343[7]) | |
46 | + | if (($size322343 == 8)) | |
47 | + | then $acc8322343 | |
44 | 48 | else { | |
45 | - | let $ | |
46 | - | if (($ | |
47 | - | then $ | |
49 | + | let $acc9322343 = sum($acc8322343, $list322343[8]) | |
50 | + | if (($size322343 == 9)) | |
51 | + | then $acc9322343 | |
48 | 52 | else { | |
49 | - | let $ | |
50 | - | if (($ | |
51 | - | then $ | |
53 | + | let $acc10322343 = sum($acc9322343, $list322343[9]) | |
54 | + | if (($size322343 == 10)) | |
55 | + | then $acc10322343 | |
52 | 56 | else { | |
53 | - | let $ | |
54 | - | if (($ | |
55 | - | then $ | |
57 | + | let $acc11322343 = sum($acc10322343, $list322343[10]) | |
58 | + | if (($size322343 == 11)) | |
59 | + | then $acc11322343 | |
56 | 60 | else { | |
57 | - | let $ | |
58 | - | if (($ | |
59 | - | then $ | |
61 | + | let $acc12322343 = sum($acc11322343, $list322343[11]) | |
62 | + | if (($size322343 == 12)) | |
63 | + | then $acc12322343 | |
60 | 64 | else { | |
61 | - | let $ | |
62 | - | if (($ | |
63 | - | then $ | |
65 | + | let $acc13322343 = sum($acc12322343, $list322343[12]) | |
66 | + | if (($size322343 == 13)) | |
67 | + | then $acc13322343 | |
64 | 68 | else { | |
65 | - | let $ | |
66 | - | if (($ | |
67 | - | then $ | |
69 | + | let $acc14322343 = sum($acc13322343, $list322343[13]) | |
70 | + | if (($size322343 == 14)) | |
71 | + | then $acc14322343 | |
68 | 72 | else { | |
69 | - | let $ | |
70 | - | if (($ | |
71 | - | then $ | |
73 | + | let $acc15322343 = sum($acc14322343, $list322343[14]) | |
74 | + | if (($size322343 == 15)) | |
75 | + | then $acc15322343 | |
72 | 76 | else { | |
73 | - | let $ | |
74 | - | if (($ | |
75 | - | then $ | |
77 | + | let $acc16322343 = sum($acc15322343, $list322343[15]) | |
78 | + | if (($size322343 == 16)) | |
79 | + | then $acc16322343 | |
76 | 80 | else { | |
77 | - | let $ | |
78 | - | if (($ | |
79 | - | then $ | |
81 | + | let $acc17322343 = sum($acc16322343, $list322343[16]) | |
82 | + | if (($size322343 == 17)) | |
83 | + | then $acc17322343 | |
80 | 84 | else { | |
81 | - | let $ | |
82 | - | if (($ | |
83 | - | then $ | |
85 | + | let $acc18322343 = sum($acc17322343, $list322343[17]) | |
86 | + | if (($size322343 == 18)) | |
87 | + | then $acc18322343 | |
84 | 88 | else { | |
85 | - | let $ | |
89 | + | let $acc19322343 = sum($acc18322343, $list322343[18]) | |
86 | 90 | throw("List size exceed 18") | |
87 | 91 | } | |
88 | 92 | } | |
139 | 143 | else (acc :+ score[i]) | |
140 | 144 | } | |
141 | 145 | ||
142 | - | let $ | |
143 | - | let $ | |
144 | - | let $ | |
145 | - | if (($ | |
146 | - | then $ | |
146 | + | let $list20482079 = numList | |
147 | + | let $size20482079 = size($list20482079) | |
148 | + | let $acc020482079 = nil | |
149 | + | if (($size20482079 == 0)) | |
150 | + | then $acc020482079 | |
147 | 151 | else { | |
148 | - | let $ | |
149 | - | if (($ | |
150 | - | then $ | |
152 | + | let $acc120482079 = foldFunc($acc020482079, $list20482079[0]) | |
153 | + | if (($size20482079 == 1)) | |
154 | + | then $acc120482079 | |
151 | 155 | else { | |
152 | - | let $ | |
153 | - | if (($ | |
154 | - | then $ | |
156 | + | let $acc220482079 = foldFunc($acc120482079, $list20482079[1]) | |
157 | + | if (($size20482079 == 2)) | |
158 | + | then $acc220482079 | |
155 | 159 | else { | |
156 | - | let $ | |
157 | - | if (($ | |
158 | - | then $ | |
160 | + | let $acc320482079 = foldFunc($acc220482079, $list20482079[2]) | |
161 | + | if (($size20482079 == 3)) | |
162 | + | then $acc320482079 | |
159 | 163 | else { | |
160 | - | let $ | |
161 | - | if (($ | |
162 | - | then $ | |
164 | + | let $acc420482079 = foldFunc($acc320482079, $list20482079[3]) | |
165 | + | if (($size20482079 == 4)) | |
166 | + | then $acc420482079 | |
163 | 167 | else { | |
164 | - | let $ | |
165 | - | if (($ | |
166 | - | then $ | |
168 | + | let $acc520482079 = foldFunc($acc420482079, $list20482079[4]) | |
169 | + | if (($size20482079 == 5)) | |
170 | + | then $acc520482079 | |
167 | 171 | else { | |
168 | - | let $ | |
169 | - | if (($ | |
170 | - | then $ | |
172 | + | let $acc620482079 = foldFunc($acc520482079, $list20482079[5]) | |
173 | + | if (($size20482079 == 6)) | |
174 | + | then $acc620482079 | |
171 | 175 | else { | |
172 | - | let $ | |
173 | - | if (($ | |
174 | - | then $ | |
176 | + | let $acc720482079 = foldFunc($acc620482079, $list20482079[6]) | |
177 | + | if (($size20482079 == 7)) | |
178 | + | then $acc720482079 | |
175 | 179 | else { | |
176 | - | let $ | |
177 | - | if (($ | |
178 | - | then $ | |
180 | + | let $acc820482079 = foldFunc($acc720482079, $list20482079[7]) | |
181 | + | if (($size20482079 == 8)) | |
182 | + | then $acc820482079 | |
179 | 183 | else { | |
180 | - | let $ | |
181 | - | if (($ | |
182 | - | then $ | |
184 | + | let $acc920482079 = foldFunc($acc820482079, $list20482079[8]) | |
185 | + | if (($size20482079 == 9)) | |
186 | + | then $acc920482079 | |
183 | 187 | else { | |
184 | - | let $ | |
185 | - | if (($ | |
186 | - | then $ | |
188 | + | let $acc1020482079 = foldFunc($acc920482079, $list20482079[9]) | |
189 | + | if (($size20482079 == 10)) | |
190 | + | then $acc1020482079 | |
187 | 191 | else { | |
188 | - | let $ | |
189 | - | if (($ | |
190 | - | then $ | |
192 | + | let $acc1120482079 = foldFunc($acc1020482079, $list20482079[10]) | |
193 | + | if (($size20482079 == 11)) | |
194 | + | then $acc1120482079 | |
191 | 195 | else { | |
192 | - | let $ | |
193 | - | if (($ | |
194 | - | then $ | |
196 | + | let $acc1220482079 = foldFunc($acc1120482079, $list20482079[11]) | |
197 | + | if (($size20482079 == 12)) | |
198 | + | then $acc1220482079 | |
195 | 199 | else { | |
196 | - | let $ | |
197 | - | if (($ | |
198 | - | then $ | |
200 | + | let $acc1320482079 = foldFunc($acc1220482079, $list20482079[12]) | |
201 | + | if (($size20482079 == 13)) | |
202 | + | then $acc1320482079 | |
199 | 203 | else { | |
200 | - | let $ | |
201 | - | if (($ | |
202 | - | then $ | |
204 | + | let $acc1420482079 = foldFunc($acc1320482079, $list20482079[13]) | |
205 | + | if (($size20482079 == 14)) | |
206 | + | then $acc1420482079 | |
203 | 207 | else { | |
204 | - | let $ | |
205 | - | if (($ | |
206 | - | then $ | |
208 | + | let $acc1520482079 = foldFunc($acc1420482079, $list20482079[14]) | |
209 | + | if (($size20482079 == 15)) | |
210 | + | then $acc1520482079 | |
207 | 211 | else { | |
208 | - | let $ | |
209 | - | if (($ | |
210 | - | then $ | |
212 | + | let $acc1620482079 = foldFunc($acc1520482079, $list20482079[15]) | |
213 | + | if (($size20482079 == 16)) | |
214 | + | then $acc1620482079 | |
211 | 215 | else { | |
212 | - | let $ | |
213 | - | if (($ | |
214 | - | then $ | |
216 | + | let $acc1720482079 = foldFunc($acc1620482079, $list20482079[16]) | |
217 | + | if (($size20482079 == 17)) | |
218 | + | then $acc1720482079 | |
215 | 219 | else { | |
216 | - | let $ | |
217 | - | if (($ | |
218 | - | then $ | |
220 | + | let $acc1820482079 = foldFunc($acc1720482079, $list20482079[17]) | |
221 | + | if (($size20482079 == 18)) | |
222 | + | then $acc1820482079 | |
219 | 223 | else { | |
220 | - | let $ | |
224 | + | let $acc1920482079 = foldFunc($acc1820482079, $list20482079[18]) | |
221 | 225 | throw("List size exceed 18") | |
222 | 226 | } | |
223 | 227 | } | |
246 | 250 | then (acc :+ (par[i] + 5)) | |
247 | 251 | else (acc :+ score[i]) | |
248 | 252 | ||
249 | - | let $ | |
250 | - | let $ | |
251 | - | let $ | |
252 | - | if (($ | |
253 | - | then $ | |
253 | + | let $list23532384 = numList | |
254 | + | let $size23532384 = size($list23532384) | |
255 | + | let $acc023532384 = nil | |
256 | + | if (($size23532384 == 0)) | |
257 | + | then $acc023532384 | |
254 | 258 | else { | |
255 | - | let $ | |
256 | - | if (($ | |
257 | - | then $ | |
259 | + | let $acc123532384 = foldFunc($acc023532384, $list23532384[0]) | |
260 | + | if (($size23532384 == 1)) | |
261 | + | then $acc123532384 | |
258 | 262 | else { | |
259 | - | let $ | |
260 | - | if (($ | |
261 | - | then $ | |
263 | + | let $acc223532384 = foldFunc($acc123532384, $list23532384[1]) | |
264 | + | if (($size23532384 == 2)) | |
265 | + | then $acc223532384 | |
262 | 266 | else { | |
263 | - | let $ | |
264 | - | if (($ | |
265 | - | then $ | |
267 | + | let $acc323532384 = foldFunc($acc223532384, $list23532384[2]) | |
268 | + | if (($size23532384 == 3)) | |
269 | + | then $acc323532384 | |
266 | 270 | else { | |
267 | - | let $ | |
268 | - | if (($ | |
269 | - | then $ | |
271 | + | let $acc423532384 = foldFunc($acc323532384, $list23532384[3]) | |
272 | + | if (($size23532384 == 4)) | |
273 | + | then $acc423532384 | |
270 | 274 | else { | |
271 | - | let $ | |
272 | - | if (($ | |
273 | - | then $ | |
275 | + | let $acc523532384 = foldFunc($acc423532384, $list23532384[4]) | |
276 | + | if (($size23532384 == 5)) | |
277 | + | then $acc523532384 | |
274 | 278 | else { | |
275 | - | let $ | |
276 | - | if (($ | |
277 | - | then $ | |
279 | + | let $acc623532384 = foldFunc($acc523532384, $list23532384[5]) | |
280 | + | if (($size23532384 == 6)) | |
281 | + | then $acc623532384 | |
278 | 282 | else { | |
279 | - | let $ | |
280 | - | if (($ | |
281 | - | then $ | |
283 | + | let $acc723532384 = foldFunc($acc623532384, $list23532384[6]) | |
284 | + | if (($size23532384 == 7)) | |
285 | + | then $acc723532384 | |
282 | 286 | else { | |
283 | - | let $ | |
284 | - | if (($ | |
285 | - | then $ | |
287 | + | let $acc823532384 = foldFunc($acc723532384, $list23532384[7]) | |
288 | + | if (($size23532384 == 8)) | |
289 | + | then $acc823532384 | |
286 | 290 | else { | |
287 | - | let $ | |
288 | - | if (($ | |
289 | - | then $ | |
291 | + | let $acc923532384 = foldFunc($acc823532384, $list23532384[8]) | |
292 | + | if (($size23532384 == 9)) | |
293 | + | then $acc923532384 | |
290 | 294 | else { | |
291 | - | let $ | |
292 | - | if (($ | |
293 | - | then $ | |
295 | + | let $acc1023532384 = foldFunc($acc923532384, $list23532384[9]) | |
296 | + | if (($size23532384 == 10)) | |
297 | + | then $acc1023532384 | |
294 | 298 | else { | |
295 | - | let $ | |
296 | - | if (($ | |
297 | - | then $ | |
299 | + | let $acc1123532384 = foldFunc($acc1023532384, $list23532384[10]) | |
300 | + | if (($size23532384 == 11)) | |
301 | + | then $acc1123532384 | |
298 | 302 | else { | |
299 | - | let $ | |
300 | - | if (($ | |
301 | - | then $ | |
303 | + | let $acc1223532384 = foldFunc($acc1123532384, $list23532384[11]) | |
304 | + | if (($size23532384 == 12)) | |
305 | + | then $acc1223532384 | |
302 | 306 | else { | |
303 | - | let $ | |
304 | - | if (($ | |
305 | - | then $ | |
307 | + | let $acc1323532384 = foldFunc($acc1223532384, $list23532384[12]) | |
308 | + | if (($size23532384 == 13)) | |
309 | + | then $acc1323532384 | |
306 | 310 | else { | |
307 | - | let $ | |
308 | - | if (($ | |
309 | - | then $ | |
311 | + | let $acc1423532384 = foldFunc($acc1323532384, $list23532384[13]) | |
312 | + | if (($size23532384 == 14)) | |
313 | + | then $acc1423532384 | |
310 | 314 | else { | |
311 | - | let $ | |
312 | - | if (($ | |
313 | - | then $ | |
315 | + | let $acc1523532384 = foldFunc($acc1423532384, $list23532384[14]) | |
316 | + | if (($size23532384 == 15)) | |
317 | + | then $acc1523532384 | |
314 | 318 | else { | |
315 | - | let $ | |
316 | - | if (($ | |
317 | - | then $ | |
319 | + | let $acc1623532384 = foldFunc($acc1523532384, $list23532384[15]) | |
320 | + | if (($size23532384 == 16)) | |
321 | + | then $acc1623532384 | |
318 | 322 | else { | |
319 | - | let $ | |
320 | - | if (($ | |
321 | - | then $ | |
323 | + | let $acc1723532384 = foldFunc($acc1623532384, $list23532384[16]) | |
324 | + | if (($size23532384 == 17)) | |
325 | + | then $acc1723532384 | |
322 | 326 | else { | |
323 | - | let $ | |
324 | - | if (($ | |
325 | - | then $ | |
327 | + | let $acc1823532384 = foldFunc($acc1723532384, $list23532384[17]) | |
328 | + | if (($size23532384 == 18)) | |
329 | + | then $acc1823532384 | |
326 | 330 | else { | |
327 | - | let $ | |
331 | + | let $acc1923532384 = foldFunc($acc1823532384, $list23532384[18]) | |
328 | 332 | throw("List size exceed 18") | |
329 | 333 | } | |
330 | 334 | } | |
366 | 370 | } | |
367 | 371 | ||
368 | 372 | ||
373 | + | func handicapIndexRequirements (num) = if ((num > 54)) | |
374 | + | then 54 | |
375 | + | else if ((0 > num)) | |
376 | + | then 0 | |
377 | + | else num | |
378 | + | ||
379 | + | ||
369 | 380 | let count = 1 | |
370 | 381 | ||
371 | 382 | @Callable(i) | |
372 | - | func issueHandicapIndex () = { | |
383 | + | func issueHandicapIndex (course1Par,course1Hdcp) = { | |
373 | 384 | let currentKey = toBase58String(i.caller.bytes) | |
374 | 385 | let getHandicapIndex = match getInteger(this, (currentKey + "_handicapIndex")) { | |
375 | 386 | case a: Int => | |
391 | 402 | let roundCourse1 = split(roundCourseString, "_&&_") | |
392 | 403 | let roundCourse2 = split(roundCourseString, "_&&_") | |
393 | 404 | let roundCourse3 = split(roundCourseString, "_&&_") | |
394 | - | if ((count == 1)) | |
395 | - | then throw(((("score18=>" + toString(score1[17])) + "/courseAddress=>") + roundCourse1[0])) | |
396 | - | else { | |
397 | - | let averageScoreHistry = 0 | |
398 | - | [IntegerEntry("", 1)] | |
399 | - | } | |
405 | + | let scoreDifferential1 = scoreDifferential(score1, course1Par, course1Hdcp, parseIntValue(roundCourse1[5]), parseIntValue(roundCourse1[6]), getHandicapIndex) | |
406 | + | let scoreDifferential2 = scoreDifferential(score1, course1Par, course1Hdcp, parseIntValue(roundCourse1[5]), parseIntValue(roundCourse1[6]), getHandicapIndex) | |
407 | + | let scoreDifferential3 = scoreDifferential(score1, course1Par, course1Hdcp, parseIntValue(roundCourse1[5]), parseIntValue(roundCourse1[6]), getHandicapIndex) | |
408 | + | let scoreDifferentialLowest = max([scoreDifferential1, scoreDifferential2, scoreDifferential3]) | |
409 | + | let result = (scoreDifferentialLowest - 2) | |
410 | + | let handicapIndex = handicapIndexRequirements(result) | |
411 | + | [Reissue(handiId, handicapIndex, false), IntegerEntry((currentKey + "_handicapIndex"), handicapIndex), ScriptTransfer(i.caller, handicapIndex, handiId)] | |
400 | 412 | } | |
401 | 413 | ||
402 | 414 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let handiId = base58'BJFTCAVHNhppygeLqYUyG5NB9GwNRjEjFeweJpXXi1DQ' | |
5 | + | ||
6 | + | let numList = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18] | |
7 | + | ||
4 | 8 | func listSum (arr) = { | |
5 | 9 | func sum (a,b) = (a + b) | |
6 | 10 | ||
7 | - | let $ | |
8 | - | let $ | |
9 | - | let $ | |
10 | - | if (($ | |
11 | - | then $ | |
11 | + | let $list322343 = arr | |
12 | + | let $size322343 = size($list322343) | |
13 | + | let $acc0322343 = 0 | |
14 | + | if (($size322343 == 0)) | |
15 | + | then $acc0322343 | |
12 | 16 | else { | |
13 | - | let $ | |
14 | - | if (($ | |
15 | - | then $ | |
17 | + | let $acc1322343 = sum($acc0322343, $list322343[0]) | |
18 | + | if (($size322343 == 1)) | |
19 | + | then $acc1322343 | |
16 | 20 | else { | |
17 | - | let $ | |
18 | - | if (($ | |
19 | - | then $ | |
21 | + | let $acc2322343 = sum($acc1322343, $list322343[1]) | |
22 | + | if (($size322343 == 2)) | |
23 | + | then $acc2322343 | |
20 | 24 | else { | |
21 | - | let $ | |
22 | - | if (($ | |
23 | - | then $ | |
25 | + | let $acc3322343 = sum($acc2322343, $list322343[2]) | |
26 | + | if (($size322343 == 3)) | |
27 | + | then $acc3322343 | |
24 | 28 | else { | |
25 | - | let $ | |
26 | - | if (($ | |
27 | - | then $ | |
29 | + | let $acc4322343 = sum($acc3322343, $list322343[3]) | |
30 | + | if (($size322343 == 4)) | |
31 | + | then $acc4322343 | |
28 | 32 | else { | |
29 | - | let $ | |
30 | - | if (($ | |
31 | - | then $ | |
33 | + | let $acc5322343 = sum($acc4322343, $list322343[4]) | |
34 | + | if (($size322343 == 5)) | |
35 | + | then $acc5322343 | |
32 | 36 | else { | |
33 | - | let $ | |
34 | - | if (($ | |
35 | - | then $ | |
37 | + | let $acc6322343 = sum($acc5322343, $list322343[5]) | |
38 | + | if (($size322343 == 6)) | |
39 | + | then $acc6322343 | |
36 | 40 | else { | |
37 | - | let $ | |
38 | - | if (($ | |
39 | - | then $ | |
41 | + | let $acc7322343 = sum($acc6322343, $list322343[6]) | |
42 | + | if (($size322343 == 7)) | |
43 | + | then $acc7322343 | |
40 | 44 | else { | |
41 | - | let $ | |
42 | - | if (($ | |
43 | - | then $ | |
45 | + | let $acc8322343 = sum($acc7322343, $list322343[7]) | |
46 | + | if (($size322343 == 8)) | |
47 | + | then $acc8322343 | |
44 | 48 | else { | |
45 | - | let $ | |
46 | - | if (($ | |
47 | - | then $ | |
49 | + | let $acc9322343 = sum($acc8322343, $list322343[8]) | |
50 | + | if (($size322343 == 9)) | |
51 | + | then $acc9322343 | |
48 | 52 | else { | |
49 | - | let $ | |
50 | - | if (($ | |
51 | - | then $ | |
53 | + | let $acc10322343 = sum($acc9322343, $list322343[9]) | |
54 | + | if (($size322343 == 10)) | |
55 | + | then $acc10322343 | |
52 | 56 | else { | |
53 | - | let $ | |
54 | - | if (($ | |
55 | - | then $ | |
57 | + | let $acc11322343 = sum($acc10322343, $list322343[10]) | |
58 | + | if (($size322343 == 11)) | |
59 | + | then $acc11322343 | |
56 | 60 | else { | |
57 | - | let $ | |
58 | - | if (($ | |
59 | - | then $ | |
61 | + | let $acc12322343 = sum($acc11322343, $list322343[11]) | |
62 | + | if (($size322343 == 12)) | |
63 | + | then $acc12322343 | |
60 | 64 | else { | |
61 | - | let $ | |
62 | - | if (($ | |
63 | - | then $ | |
65 | + | let $acc13322343 = sum($acc12322343, $list322343[12]) | |
66 | + | if (($size322343 == 13)) | |
67 | + | then $acc13322343 | |
64 | 68 | else { | |
65 | - | let $ | |
66 | - | if (($ | |
67 | - | then $ | |
69 | + | let $acc14322343 = sum($acc13322343, $list322343[13]) | |
70 | + | if (($size322343 == 14)) | |
71 | + | then $acc14322343 | |
68 | 72 | else { | |
69 | - | let $ | |
70 | - | if (($ | |
71 | - | then $ | |
73 | + | let $acc15322343 = sum($acc14322343, $list322343[14]) | |
74 | + | if (($size322343 == 15)) | |
75 | + | then $acc15322343 | |
72 | 76 | else { | |
73 | - | let $ | |
74 | - | if (($ | |
75 | - | then $ | |
77 | + | let $acc16322343 = sum($acc15322343, $list322343[15]) | |
78 | + | if (($size322343 == 16)) | |
79 | + | then $acc16322343 | |
76 | 80 | else { | |
77 | - | let $ | |
78 | - | if (($ | |
79 | - | then $ | |
81 | + | let $acc17322343 = sum($acc16322343, $list322343[16]) | |
82 | + | if (($size322343 == 17)) | |
83 | + | then $acc17322343 | |
80 | 84 | else { | |
81 | - | let $ | |
82 | - | if (($ | |
83 | - | then $ | |
85 | + | let $acc18322343 = sum($acc17322343, $list322343[17]) | |
86 | + | if (($size322343 == 18)) | |
87 | + | then $acc18322343 | |
84 | 88 | else { | |
85 | - | let $ | |
89 | + | let $acc19322343 = sum($acc18322343, $list322343[18]) | |
86 | 90 | throw("List size exceed 18") | |
87 | 91 | } | |
88 | 92 | } | |
89 | 93 | } | |
90 | 94 | } | |
91 | 95 | } | |
92 | 96 | } | |
93 | 97 | } | |
94 | 98 | } | |
95 | 99 | } | |
96 | 100 | } | |
97 | 101 | } | |
98 | 102 | } | |
99 | 103 | } | |
100 | 104 | } | |
101 | 105 | } | |
102 | 106 | } | |
103 | 107 | } | |
104 | 108 | } | |
105 | 109 | } | |
106 | 110 | } | |
107 | 111 | ||
108 | 112 | ||
109 | 113 | func parseIntList (list) = [parseIntValue(list[0]), parseIntValue(list[1]), parseIntValue(list[2]), parseIntValue(list[3]), parseIntValue(list[4]), parseIntValue(list[5]), parseIntValue(list[6]), parseIntValue(list[7]), parseIntValue(list[8]), parseIntValue(list[9]), parseIntValue(list[10]), parseIntValue(list[11]), parseIntValue(list[12]), parseIntValue(list[13]), parseIntValue(list[14]), parseIntValue(list[15]), parseIntValue(list[16]), parseIntValue(list[17])] | |
110 | 114 | ||
111 | 115 | ||
112 | 116 | func getRoundScore (roundCount,currentKey) = match getString(this, ((currentKey + "_round_score_") + toString(roundCount))) { | |
113 | 117 | case a: String => | |
114 | 118 | a | |
115 | 119 | case _ => | |
116 | 120 | "" | |
117 | 121 | } | |
118 | 122 | ||
119 | 123 | ||
120 | 124 | func getRoundCourse (roundCount,currentKey) = match getString(this, ((currentKey + "_round_course_") + toString(roundCount))) { | |
121 | 125 | case a: String => | |
122 | 126 | a | |
123 | 127 | case _ => | |
124 | 128 | "" | |
125 | 129 | } | |
126 | 130 | ||
127 | 131 | ||
128 | 132 | func holeStrokeReceiveFunc (handicapIndex,hdcp) = if ((handicapIndex >= hdcp)) | |
129 | 133 | then 1 | |
130 | 134 | else 0 | |
131 | 135 | ||
132 | 136 | ||
133 | 137 | func foldFuncHoldHandi (score,par,hdcpList,handicap) = { | |
134 | 138 | func foldFunc (acc,i) = { | |
135 | 139 | let holeStrokeReceive = holeStrokeReceiveFunc(handicap, hdcpList[i]) | |
136 | 140 | let netDoubleBogey = ((par[i] + 2) + holeStrokeReceive) | |
137 | 141 | if ((score[i] > netDoubleBogey)) | |
138 | 142 | then (acc :+ netDoubleBogey) | |
139 | 143 | else (acc :+ score[i]) | |
140 | 144 | } | |
141 | 145 | ||
142 | - | let $ | |
143 | - | let $ | |
144 | - | let $ | |
145 | - | if (($ | |
146 | - | then $ | |
146 | + | let $list20482079 = numList | |
147 | + | let $size20482079 = size($list20482079) | |
148 | + | let $acc020482079 = nil | |
149 | + | if (($size20482079 == 0)) | |
150 | + | then $acc020482079 | |
147 | 151 | else { | |
148 | - | let $ | |
149 | - | if (($ | |
150 | - | then $ | |
152 | + | let $acc120482079 = foldFunc($acc020482079, $list20482079[0]) | |
153 | + | if (($size20482079 == 1)) | |
154 | + | then $acc120482079 | |
151 | 155 | else { | |
152 | - | let $ | |
153 | - | if (($ | |
154 | - | then $ | |
156 | + | let $acc220482079 = foldFunc($acc120482079, $list20482079[1]) | |
157 | + | if (($size20482079 == 2)) | |
158 | + | then $acc220482079 | |
155 | 159 | else { | |
156 | - | let $ | |
157 | - | if (($ | |
158 | - | then $ | |
160 | + | let $acc320482079 = foldFunc($acc220482079, $list20482079[2]) | |
161 | + | if (($size20482079 == 3)) | |
162 | + | then $acc320482079 | |
159 | 163 | else { | |
160 | - | let $ | |
161 | - | if (($ | |
162 | - | then $ | |
164 | + | let $acc420482079 = foldFunc($acc320482079, $list20482079[3]) | |
165 | + | if (($size20482079 == 4)) | |
166 | + | then $acc420482079 | |
163 | 167 | else { | |
164 | - | let $ | |
165 | - | if (($ | |
166 | - | then $ | |
168 | + | let $acc520482079 = foldFunc($acc420482079, $list20482079[4]) | |
169 | + | if (($size20482079 == 5)) | |
170 | + | then $acc520482079 | |
167 | 171 | else { | |
168 | - | let $ | |
169 | - | if (($ | |
170 | - | then $ | |
172 | + | let $acc620482079 = foldFunc($acc520482079, $list20482079[5]) | |
173 | + | if (($size20482079 == 6)) | |
174 | + | then $acc620482079 | |
171 | 175 | else { | |
172 | - | let $ | |
173 | - | if (($ | |
174 | - | then $ | |
176 | + | let $acc720482079 = foldFunc($acc620482079, $list20482079[6]) | |
177 | + | if (($size20482079 == 7)) | |
178 | + | then $acc720482079 | |
175 | 179 | else { | |
176 | - | let $ | |
177 | - | if (($ | |
178 | - | then $ | |
180 | + | let $acc820482079 = foldFunc($acc720482079, $list20482079[7]) | |
181 | + | if (($size20482079 == 8)) | |
182 | + | then $acc820482079 | |
179 | 183 | else { | |
180 | - | let $ | |
181 | - | if (($ | |
182 | - | then $ | |
184 | + | let $acc920482079 = foldFunc($acc820482079, $list20482079[8]) | |
185 | + | if (($size20482079 == 9)) | |
186 | + | then $acc920482079 | |
183 | 187 | else { | |
184 | - | let $ | |
185 | - | if (($ | |
186 | - | then $ | |
188 | + | let $acc1020482079 = foldFunc($acc920482079, $list20482079[9]) | |
189 | + | if (($size20482079 == 10)) | |
190 | + | then $acc1020482079 | |
187 | 191 | else { | |
188 | - | let $ | |
189 | - | if (($ | |
190 | - | then $ | |
192 | + | let $acc1120482079 = foldFunc($acc1020482079, $list20482079[10]) | |
193 | + | if (($size20482079 == 11)) | |
194 | + | then $acc1120482079 | |
191 | 195 | else { | |
192 | - | let $ | |
193 | - | if (($ | |
194 | - | then $ | |
196 | + | let $acc1220482079 = foldFunc($acc1120482079, $list20482079[11]) | |
197 | + | if (($size20482079 == 12)) | |
198 | + | then $acc1220482079 | |
195 | 199 | else { | |
196 | - | let $ | |
197 | - | if (($ | |
198 | - | then $ | |
200 | + | let $acc1320482079 = foldFunc($acc1220482079, $list20482079[12]) | |
201 | + | if (($size20482079 == 13)) | |
202 | + | then $acc1320482079 | |
199 | 203 | else { | |
200 | - | let $ | |
201 | - | if (($ | |
202 | - | then $ | |
204 | + | let $acc1420482079 = foldFunc($acc1320482079, $list20482079[13]) | |
205 | + | if (($size20482079 == 14)) | |
206 | + | then $acc1420482079 | |
203 | 207 | else { | |
204 | - | let $ | |
205 | - | if (($ | |
206 | - | then $ | |
208 | + | let $acc1520482079 = foldFunc($acc1420482079, $list20482079[14]) | |
209 | + | if (($size20482079 == 15)) | |
210 | + | then $acc1520482079 | |
207 | 211 | else { | |
208 | - | let $ | |
209 | - | if (($ | |
210 | - | then $ | |
212 | + | let $acc1620482079 = foldFunc($acc1520482079, $list20482079[15]) | |
213 | + | if (($size20482079 == 16)) | |
214 | + | then $acc1620482079 | |
211 | 215 | else { | |
212 | - | let $ | |
213 | - | if (($ | |
214 | - | then $ | |
216 | + | let $acc1720482079 = foldFunc($acc1620482079, $list20482079[16]) | |
217 | + | if (($size20482079 == 17)) | |
218 | + | then $acc1720482079 | |
215 | 219 | else { | |
216 | - | let $ | |
217 | - | if (($ | |
218 | - | then $ | |
220 | + | let $acc1820482079 = foldFunc($acc1720482079, $list20482079[17]) | |
221 | + | if (($size20482079 == 18)) | |
222 | + | then $acc1820482079 | |
219 | 223 | else { | |
220 | - | let $ | |
224 | + | let $acc1920482079 = foldFunc($acc1820482079, $list20482079[18]) | |
221 | 225 | throw("List size exceed 18") | |
222 | 226 | } | |
223 | 227 | } | |
224 | 228 | } | |
225 | 229 | } | |
226 | 230 | } | |
227 | 231 | } | |
228 | 232 | } | |
229 | 233 | } | |
230 | 234 | } | |
231 | 235 | } | |
232 | 236 | } | |
233 | 237 | } | |
234 | 238 | } | |
235 | 239 | } | |
236 | 240 | } | |
237 | 241 | } | |
238 | 242 | } | |
239 | 243 | } | |
240 | 244 | } | |
241 | 245 | } | |
242 | 246 | ||
243 | 247 | ||
244 | 248 | func foldFuncNoHandi (score,par) = { | |
245 | 249 | func foldFunc (acc,i) = if ((score[i] > (par[i] + 5))) | |
246 | 250 | then (acc :+ (par[i] + 5)) | |
247 | 251 | else (acc :+ score[i]) | |
248 | 252 | ||
249 | - | let $ | |
250 | - | let $ | |
251 | - | let $ | |
252 | - | if (($ | |
253 | - | then $ | |
253 | + | let $list23532384 = numList | |
254 | + | let $size23532384 = size($list23532384) | |
255 | + | let $acc023532384 = nil | |
256 | + | if (($size23532384 == 0)) | |
257 | + | then $acc023532384 | |
254 | 258 | else { | |
255 | - | let $ | |
256 | - | if (($ | |
257 | - | then $ | |
259 | + | let $acc123532384 = foldFunc($acc023532384, $list23532384[0]) | |
260 | + | if (($size23532384 == 1)) | |
261 | + | then $acc123532384 | |
258 | 262 | else { | |
259 | - | let $ | |
260 | - | if (($ | |
261 | - | then $ | |
263 | + | let $acc223532384 = foldFunc($acc123532384, $list23532384[1]) | |
264 | + | if (($size23532384 == 2)) | |
265 | + | then $acc223532384 | |
262 | 266 | else { | |
263 | - | let $ | |
264 | - | if (($ | |
265 | - | then $ | |
267 | + | let $acc323532384 = foldFunc($acc223532384, $list23532384[2]) | |
268 | + | if (($size23532384 == 3)) | |
269 | + | then $acc323532384 | |
266 | 270 | else { | |
267 | - | let $ | |
268 | - | if (($ | |
269 | - | then $ | |
271 | + | let $acc423532384 = foldFunc($acc323532384, $list23532384[3]) | |
272 | + | if (($size23532384 == 4)) | |
273 | + | then $acc423532384 | |
270 | 274 | else { | |
271 | - | let $ | |
272 | - | if (($ | |
273 | - | then $ | |
275 | + | let $acc523532384 = foldFunc($acc423532384, $list23532384[4]) | |
276 | + | if (($size23532384 == 5)) | |
277 | + | then $acc523532384 | |
274 | 278 | else { | |
275 | - | let $ | |
276 | - | if (($ | |
277 | - | then $ | |
279 | + | let $acc623532384 = foldFunc($acc523532384, $list23532384[5]) | |
280 | + | if (($size23532384 == 6)) | |
281 | + | then $acc623532384 | |
278 | 282 | else { | |
279 | - | let $ | |
280 | - | if (($ | |
281 | - | then $ | |
283 | + | let $acc723532384 = foldFunc($acc623532384, $list23532384[6]) | |
284 | + | if (($size23532384 == 7)) | |
285 | + | then $acc723532384 | |
282 | 286 | else { | |
283 | - | let $ | |
284 | - | if (($ | |
285 | - | then $ | |
287 | + | let $acc823532384 = foldFunc($acc723532384, $list23532384[7]) | |
288 | + | if (($size23532384 == 8)) | |
289 | + | then $acc823532384 | |
286 | 290 | else { | |
287 | - | let $ | |
288 | - | if (($ | |
289 | - | then $ | |
291 | + | let $acc923532384 = foldFunc($acc823532384, $list23532384[8]) | |
292 | + | if (($size23532384 == 9)) | |
293 | + | then $acc923532384 | |
290 | 294 | else { | |
291 | - | let $ | |
292 | - | if (($ | |
293 | - | then $ | |
295 | + | let $acc1023532384 = foldFunc($acc923532384, $list23532384[9]) | |
296 | + | if (($size23532384 == 10)) | |
297 | + | then $acc1023532384 | |
294 | 298 | else { | |
295 | - | let $ | |
296 | - | if (($ | |
297 | - | then $ | |
299 | + | let $acc1123532384 = foldFunc($acc1023532384, $list23532384[10]) | |
300 | + | if (($size23532384 == 11)) | |
301 | + | then $acc1123532384 | |
298 | 302 | else { | |
299 | - | let $ | |
300 | - | if (($ | |
301 | - | then $ | |
303 | + | let $acc1223532384 = foldFunc($acc1123532384, $list23532384[11]) | |
304 | + | if (($size23532384 == 12)) | |
305 | + | then $acc1223532384 | |
302 | 306 | else { | |
303 | - | let $ | |
304 | - | if (($ | |
305 | - | then $ | |
307 | + | let $acc1323532384 = foldFunc($acc1223532384, $list23532384[12]) | |
308 | + | if (($size23532384 == 13)) | |
309 | + | then $acc1323532384 | |
306 | 310 | else { | |
307 | - | let $ | |
308 | - | if (($ | |
309 | - | then $ | |
311 | + | let $acc1423532384 = foldFunc($acc1323532384, $list23532384[13]) | |
312 | + | if (($size23532384 == 14)) | |
313 | + | then $acc1423532384 | |
310 | 314 | else { | |
311 | - | let $ | |
312 | - | if (($ | |
313 | - | then $ | |
315 | + | let $acc1523532384 = foldFunc($acc1423532384, $list23532384[14]) | |
316 | + | if (($size23532384 == 15)) | |
317 | + | then $acc1523532384 | |
314 | 318 | else { | |
315 | - | let $ | |
316 | - | if (($ | |
317 | - | then $ | |
319 | + | let $acc1623532384 = foldFunc($acc1523532384, $list23532384[15]) | |
320 | + | if (($size23532384 == 16)) | |
321 | + | then $acc1623532384 | |
318 | 322 | else { | |
319 | - | let $ | |
320 | - | if (($ | |
321 | - | then $ | |
323 | + | let $acc1723532384 = foldFunc($acc1623532384, $list23532384[16]) | |
324 | + | if (($size23532384 == 17)) | |
325 | + | then $acc1723532384 | |
322 | 326 | else { | |
323 | - | let $ | |
324 | - | if (($ | |
325 | - | then $ | |
327 | + | let $acc1823532384 = foldFunc($acc1723532384, $list23532384[17]) | |
328 | + | if (($size23532384 == 18)) | |
329 | + | then $acc1823532384 | |
326 | 330 | else { | |
327 | - | let $ | |
331 | + | let $acc1923532384 = foldFunc($acc1823532384, $list23532384[18]) | |
328 | 332 | throw("List size exceed 18") | |
329 | 333 | } | |
330 | 334 | } | |
331 | 335 | } | |
332 | 336 | } | |
333 | 337 | } | |
334 | 338 | } | |
335 | 339 | } | |
336 | 340 | } | |
337 | 341 | } | |
338 | 342 | } | |
339 | 343 | } | |
340 | 344 | } | |
341 | 345 | } | |
342 | 346 | } | |
343 | 347 | } | |
344 | 348 | } | |
345 | 349 | } | |
346 | 350 | } | |
347 | 351 | } | |
348 | 352 | } | |
349 | 353 | ||
350 | 354 | ||
351 | 355 | func scoreAdjustmentCalc (score,par,hdcpList,handicap) = if ((handicap == -1)) | |
352 | 356 | then foldFuncNoHandi(score, par) | |
353 | 357 | else foldFuncHoldHandi(score, par, hdcpList, handicap) | |
354 | 358 | ||
355 | 359 | ||
356 | 360 | func scoreDifferential (scoreList,parList,hdcpList,courseRating,slopeRating,handicap) = { | |
357 | 361 | let scoreAdjustmentList = scoreAdjustmentCalc(scoreList, parList, hdcpList, handicap) | |
358 | 362 | let scoreAdjustedTotal = listSum(scoreAdjustmentList) | |
359 | 363 | let scoreSum = listSum(scoreList) | |
360 | 364 | let pcc = 0 | |
361 | 365 | let a = (113 / slopeRating) | |
362 | 366 | let b = ((scoreAdjustedTotal - courseRating) - pcc) | |
363 | 367 | let c = 1 | |
364 | 368 | let result = fraction(a, b, c, HALFUP) | |
365 | 369 | result | |
366 | 370 | } | |
367 | 371 | ||
368 | 372 | ||
373 | + | func handicapIndexRequirements (num) = if ((num > 54)) | |
374 | + | then 54 | |
375 | + | else if ((0 > num)) | |
376 | + | then 0 | |
377 | + | else num | |
378 | + | ||
379 | + | ||
369 | 380 | let count = 1 | |
370 | 381 | ||
371 | 382 | @Callable(i) | |
372 | - | func issueHandicapIndex () = { | |
383 | + | func issueHandicapIndex (course1Par,course1Hdcp) = { | |
373 | 384 | let currentKey = toBase58String(i.caller.bytes) | |
374 | 385 | let getHandicapIndex = match getInteger(this, (currentKey + "_handicapIndex")) { | |
375 | 386 | case a: Int => | |
376 | 387 | a | |
377 | 388 | case _ => | |
378 | 389 | -1 | |
379 | 390 | } | |
380 | 391 | let getRoundCount = match getInteger(this, (currentKey + "_round_count")) { | |
381 | 392 | case a: Int => | |
382 | 393 | a | |
383 | 394 | case _ => | |
384 | 395 | -1 | |
385 | 396 | } | |
386 | 397 | let scoreString = "4_&&_4_&&_4_&&_5_&&_5_&&_5_&&_5_&&_5_&&_5_&&_5_&&_3_&&_5_&&_4_&&_4_&&_5_&&_6_&&_6_&&_6" | |
387 | 398 | let roundCourseString = "3N8DnpwTffUEjDXXEsn6btFrbgWC8VZJhTZ_&&_course_1_&&_course_2_&&_green_1_&&_70_&&_110_&&_men_&&_1622640688000_&&_cloudy_&&_11" | |
388 | 399 | let score1 = parseIntList(split(scoreString, "_&&_")) | |
389 | 400 | let score2 = parseIntList(split(scoreString, "_&&_")) | |
390 | 401 | let score3 = parseIntList(split(scoreString, "_&&_")) | |
391 | 402 | let roundCourse1 = split(roundCourseString, "_&&_") | |
392 | 403 | let roundCourse2 = split(roundCourseString, "_&&_") | |
393 | 404 | let roundCourse3 = split(roundCourseString, "_&&_") | |
394 | - | if ((count == 1)) | |
395 | - | then throw(((("score18=>" + toString(score1[17])) + "/courseAddress=>") + roundCourse1[0])) | |
396 | - | else { | |
397 | - | let averageScoreHistry = 0 | |
398 | - | [IntegerEntry("", 1)] | |
399 | - | } | |
405 | + | let scoreDifferential1 = scoreDifferential(score1, course1Par, course1Hdcp, parseIntValue(roundCourse1[5]), parseIntValue(roundCourse1[6]), getHandicapIndex) | |
406 | + | let scoreDifferential2 = scoreDifferential(score1, course1Par, course1Hdcp, parseIntValue(roundCourse1[5]), parseIntValue(roundCourse1[6]), getHandicapIndex) | |
407 | + | let scoreDifferential3 = scoreDifferential(score1, course1Par, course1Hdcp, parseIntValue(roundCourse1[5]), parseIntValue(roundCourse1[6]), getHandicapIndex) | |
408 | + | let scoreDifferentialLowest = max([scoreDifferential1, scoreDifferential2, scoreDifferential3]) | |
409 | + | let result = (scoreDifferentialLowest - 2) | |
410 | + | let handicapIndex = handicapIndexRequirements(result) | |
411 | + | [Reissue(handiId, handicapIndex, false), IntegerEntry((currentKey + "_handicapIndex"), handicapIndex), ScriptTransfer(i.caller, handicapIndex, handiId)] | |
400 | 412 | } | |
401 | 413 | ||
402 | 414 | ||
403 | 415 | @Verifier(tx) | |
404 | 416 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
405 | 417 |
github/deemru/w8io/026f985 413.69 ms ◑