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