tx · 3omCpmYAnNk3f6Jn1spjYE6Aqf17EitCbYUy66MZNXKE 3MqbTfLJ5nrYh6fUbS38Hfpe6T8MP5K5HiT: -0.04000000 Waves 2020.07.29 15:23 [1108848] smart account 3MqbTfLJ5nrYh6fUbS38Hfpe6T8MP5K5HiT > SELF 0.00000000 Waves
{ "type": 13, "id": "3omCpmYAnNk3f6Jn1spjYE6Aqf17EitCbYUy66MZNXKE", "fee": 4000000, "feeAssetId": null, "timestamp": 1596025438110, "version": 1, "sender": "3MqbTfLJ5nrYh6fUbS38Hfpe6T8MP5K5HiT", "senderPublicKey": "EzWkAi3pMjNqjjV3PpJiHWrButTm4aorR4p173qwdGeL", "proofs": [ "2PJ3LhnP7HDo7RWE5KunSH2nXzkfr3H2sSn6WnQ8a91tBMdths1UTMWuWd41sENMVZoYdKnEgCJa9am93aYQUQa3" ], "script": "base64:AAIDAAAAAAAAAA8IARIECgIBARIFCgMBAQEAAAANAQAAAAlzZXRDb29yZHMAAAADAAAAA2tleQAAAAhsYXRpdHVkZQAAAAlsb25naXR1ZGUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAMcG9zaXRpb25MYXRfBQAAAANrZXkFAAAACGxhdGl0dWRlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAADXBvc2l0aW9uTG9uZ18FAAAAA2tleQUAAAAJbG9uZ2l0dWRlBQAAAANuaWwBAAAAC3NldEdhbWVEYXRhAAAAAgAAAAlwbGF5ZXJLZXkAAAALb3Bwb25lbnRLZXkEAAAABmdhbWVJZAkAASwAAAACCQABLAAAAAIFAAAACXBsYXllcktleQIAAAABXwUAAAALb3Bwb25lbnRLZXkJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAHZ2FtZUlkXwUAAAAJcGxheWVyS2V5BQAAAAZnYW1lSWQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAJb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gAAAAlvcHBvbmVudF8FAAAABmNhbGxlcgQAAAAGZ2FtZUlkCQEAAAAJZ2V0R2FtZUlkAAAAAQUAAAAGY2FsbGVyAwkBAAAAAiE9AAAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAAAlnYW1lVHVybl8FAAAABmdhbWVJZAUAAAAGY2FsbGVyCQAAAgAAAAECAAAAGXBsZWFzZSB3YWl0IGZvciB5b3VyIHR1cm4DCQEAAAAGZ290SGl0AAAABQUAAAAFcGl0Y2gFAAAAA3lhdwUAAAAFZm9yY2UFAAAABmNhbGxlcgUAAAAIb3Bwb25lbnQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAFZ2FtZV8FAAAABmdhbWVJZAcJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAALZ2FtZVdpbm5lcl8FAAAABmdhbWVJZAUAAAAGY2FsbGVyBQAAAANuaWwJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAJZ2FtZVR1cm5fBQAAAAZnYW1lSWQFAAAACG9wcG9uZW50BQAAAANuaWwAAAAA04r+Qg==", "chainId": 84, "height": 1108848, "spentComplexity": 0 } View: original | compacted Prev: BD9wueU3YsaaPmDr6R3Ff2jnWUD1skd4XzLFPxjprjKH Next: 6gSmoXsqWXTM5xtyaTYnyvJMVs4uXK2zWX73jnJG84Uz Diff:
Old | New | Differences | |
---|---|---|---|
208 | 208 | let coordinates = setCoords(caller, ((latitude * 1745) / 100000), ((longitude * 1745) / 100000)) | |
209 | 209 | let openGame = getString(this, "openGame") | |
210 | 210 | let gameIdstr = getGameId(caller) | |
211 | - | let gameId = | |
211 | + | let gameId = getStringValue(this, ("gameId_" + caller)) | |
212 | 212 | let gameIsActive = getBooleanValue(this, gameIdstr) | |
213 | - | if (if (if ((gameId != "")) | |
214 | - | then (gameId != unit) | |
215 | - | else false) | |
213 | + | if (if ((gameId != "")) | |
216 | 214 | then gameIsActive | |
217 | 215 | else false) | |
218 | 216 | then throw("Please finish your current game, before starting another one") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func setCoords (key,latitude,longitude) = [DataEntry(("positionLat_" + key), latitude), DataEntry(("positionLong_" + key), longitude)] | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func setGameData (playerKey,opponentKey) = { | |
8 | 8 | let gameId = ((playerKey + "_") + opponentKey) | |
9 | 9 | [DataEntry(("gameId_" + playerKey), gameId), DataEntry(("opponent_" + playerKey), opponentKey), DataEntry(("gameId_" + opponentKey), gameId), DataEntry(("opponent_" + opponentKey), playerKey), DataEntry(("game_" + gameId), true), DataEntry(("gameTurn_" + gameId), playerKey), DataEntry(("gameWinner_" + gameId), "")] | |
10 | 10 | } | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func getGameId (key) = getStringValue(this, ("gameId_" + key)) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func sin (rad) = { | |
17 | 17 | let factor = (rad / 628318) | |
18 | 18 | if ((0 > rad)) | |
19 | 19 | then { | |
20 | 20 | let positive = -(rad) | |
21 | 21 | if ((positive > 628318)) | |
22 | 22 | then { | |
23 | 23 | let norm = (positive + (factor * 628318)) | |
24 | 24 | if ((norm > 314159)) | |
25 | 25 | then { | |
26 | 26 | let norm2 = (norm - 314159) | |
27 | 27 | let a = ((16 * norm2) * (314159 - norm2)) | |
28 | 28 | let b = (493480220050 - (a / 4)) | |
29 | 29 | ((a * 100000) / b) | |
30 | 30 | } | |
31 | 31 | else { | |
32 | 32 | let a = ((16 * norm) * (314159 - norm)) | |
33 | 33 | let b = (493480220050 - (a / 4)) | |
34 | 34 | ((-(a) * 100000) / b) | |
35 | 35 | } | |
36 | 36 | } | |
37 | 37 | else if ((positive > 314159)) | |
38 | 38 | then { | |
39 | 39 | let norm = (positive - 314159) | |
40 | 40 | let a = ((16 * norm) * (314159 - norm)) | |
41 | 41 | let b = (493480220050 - (a / 4)) | |
42 | 42 | ((a * 100000) / b) | |
43 | 43 | } | |
44 | 44 | else { | |
45 | 45 | let a = ((16 * positive) * (314159 - positive)) | |
46 | 46 | let b = (493480220050 - (a / 4)) | |
47 | 47 | ((-(a) * 100000) / b) | |
48 | 48 | } | |
49 | 49 | } | |
50 | 50 | else if ((rad > 628318)) | |
51 | 51 | then { | |
52 | 52 | let norm = (rad - (factor * 628318)) | |
53 | 53 | if ((norm > 314159)) | |
54 | 54 | then { | |
55 | 55 | let norm2 = (norm - 314159) | |
56 | 56 | let a = ((16 * norm2) * (314159 - norm2)) | |
57 | 57 | let b = (493480220050 - (a / 4)) | |
58 | 58 | ((-(a) * 100000) / b) | |
59 | 59 | } | |
60 | 60 | else { | |
61 | 61 | let a = ((16 * norm) * (314159 - norm)) | |
62 | 62 | let b = (493480220050 - (a / 4)) | |
63 | 63 | ((a * 100000) / b) | |
64 | 64 | } | |
65 | 65 | } | |
66 | 66 | else if ((rad > 314159)) | |
67 | 67 | then { | |
68 | 68 | let norm = (rad - 314159) | |
69 | 69 | let a = ((16 * norm) * (314159 - norm)) | |
70 | 70 | let b = (493480220050 - (a / 4)) | |
71 | 71 | ((-(a) * 100000) / b) | |
72 | 72 | } | |
73 | 73 | else { | |
74 | 74 | let a = ((16 * rad) * (314159 - rad)) | |
75 | 75 | let b = (493480220050 - (a / 4)) | |
76 | 76 | ((a * 100000) / b) | |
77 | 77 | } | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func cos (rad) = sin((157079 - rad)) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func asin (x) = { | |
85 | 85 | let xPow2 = ((x * x) / 10000000000) | |
86 | 86 | let xPow3 = ((x * x) * x) | |
87 | 87 | let val2 = (xPow3 / 60000000000) | |
88 | 88 | let val3 = (((xPow3 * 3) / 400000000000) * xPow2) | |
89 | 89 | let val4 = ((((xPow3 * 15) / 3360000000000) * xPow2) * xPow2) | |
90 | 90 | let val5 = (((((xPow3 * 105) / 34560000000000) * xPow2) * xPow2) * xPow2) | |
91 | 91 | ((((x + val2) + val3) + val4) + val5) | |
92 | 92 | } | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func atan (x) = if ((x > 100000)) | |
96 | 96 | then { | |
97 | 97 | let xInv = (10000000000 / x) | |
98 | 98 | let xInvPow2 = ((xInv * xInv) / 10000000000) | |
99 | 99 | let xInvPow3 = ((xInv * xInv) * xInv) | |
100 | 100 | let val2 = (xInvPow3 / 30000000000) | |
101 | 101 | let val3 = ((xInvPow3 / 50000000000) * xInvPow2) | |
102 | 102 | let val4 = (((xInvPow3 / 70000000000) * xInvPow2) * xInvPow2) | |
103 | 103 | let val5 = ((((xInvPow3 / 90000000000) * xInvPow2) * xInvPow2) * xInvPow2) | |
104 | 104 | (((((157080 - xInv) + val2) - val3) + val4) - val5) | |
105 | 105 | } | |
106 | 106 | else if ((-100000 > x)) | |
107 | 107 | then { | |
108 | 108 | let xInv = (10000000000 / x) | |
109 | 109 | let xInvPow2 = ((xInv * xInv) / 10000000000) | |
110 | 110 | let xInvPow3 = ((xInv * xInv) * xInv) | |
111 | 111 | let val2 = (xInvPow3 / 30000000000) | |
112 | 112 | let val3 = ((xInvPow3 / 50000000000) * xInvPow2) | |
113 | 113 | let val4 = (((xInvPow3 / 70000000000) * xInvPow2) * xInvPow2) | |
114 | 114 | let val5 = ((((xInvPow3 / 90000000000) * xInvPow2) * xInvPow2) * xInvPow2) | |
115 | 115 | (((((val2 - val3) + val4) - 157080) - xInv) - val5) | |
116 | 116 | } | |
117 | 117 | else { | |
118 | 118 | let xPow2 = ((x * x) / 10000000000) | |
119 | 119 | let xPow3 = ((x * x) * x) | |
120 | 120 | let val2 = (xPow3 / 30000000000) | |
121 | 121 | let val3 = ((xPow3 / 50000000000) * xPow2) | |
122 | 122 | let val4 = (((xPow3 / 70000000000) * xPow2) * xPow2) | |
123 | 123 | let val5 = ((((xPow3 / 90000000000) * xPow2) * xPow2) * xPow2) | |
124 | 124 | ((((x - val2) + val3) - val4) + val5) | |
125 | 125 | } | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func atan2 (y,x) = if ((x > 0)) | |
129 | 129 | then atan((y / x)) | |
130 | 130 | else if (if ((0 > x)) | |
131 | 131 | then (y >= 0) | |
132 | 132 | else false) | |
133 | 133 | then (atan((y / x)) + 314159) | |
134 | 134 | else if (if ((0 > x)) | |
135 | 135 | then (0 > y) | |
136 | 136 | else false) | |
137 | 137 | then (atan((y / x)) - 314159) | |
138 | 138 | else if (if ((x == 0)) | |
139 | 139 | then (y > 0) | |
140 | 140 | else false) | |
141 | 141 | then 157080 | |
142 | 142 | else if (if ((x == 0)) | |
143 | 143 | then (0 > y) | |
144 | 144 | else false) | |
145 | 145 | then -157080 | |
146 | 146 | else 0 | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func sqrt (x) = if ((2 > x)) | |
150 | 150 | then x | |
151 | 151 | else { | |
152 | 152 | let x1 = ((316 + (x / 316)) / 2) | |
153 | 153 | let x2 = ((x1 + (x / x1)) / 2) | |
154 | 154 | let x3 = ((x2 + (x / x2)) / 2) | |
155 | 155 | let x4 = ((x3 + (x / x3)) / 2) | |
156 | 156 | let x5 = ((x4 + (x / x4)) / 2) | |
157 | 157 | let x6 = ((x5 + (x / x5)) / 2) | |
158 | 158 | let x7 = ((x6 + (x / x6)) / 2) | |
159 | 159 | let x8 = ((x7 + (x / x7)) / 2) | |
160 | 160 | let x9 = ((x8 + (x / x8)) / 2) | |
161 | 161 | ((x9 + (x / x9)) / 2) | |
162 | 162 | } | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func getShotDistance (v,pitch) = (((2 * ((v * v) / 100000)) * ((cos(pitch) * sin(pitch)) / 100000)) / 980665) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func distance (lat1,lon1,lat2,lon2) = { | |
169 | 169 | let dLat = (lat1 - lat2) | |
170 | 170 | let dLon = (lon1 - lon2) | |
171 | 171 | let dLatSin = sin((dLat / 2)) | |
172 | 172 | let dLonSin = sin((dLon / 2)) | |
173 | 173 | let hav = ((dLatSin * dLatSin) + (((cos(lat1) * cos(lat2)) / 100000) * ((dLonSin * dLonSin) / 100000))) | |
174 | 174 | let theta = (2 * asin(sqrt(hav))) | |
175 | 175 | (637100000 * theta) | |
176 | 176 | } | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func impact (lat,lon,dist,yaw) = { | |
180 | 180 | let th = (dist / 637100) | |
181 | 181 | let sinLat = sin(lat) | |
182 | 182 | let cosLat = cos(lat) | |
183 | 183 | let sinTh = sin(th) | |
184 | 184 | let cosTh = cos(th) | |
185 | 185 | let newLat = asin((((sinLat * cosTh) / 100000) + (((cosLat * sinTh) * cos(yaw)) / 10000000000))) | |
186 | 186 | let newLon = (lon + (atan2((((sin(yaw) * sinTh) * cosLat) / 100000), (cosTh - ((sinLat * sinLat) / 100000))) * 100)) | |
187 | 187 | [newLat, newLon] | |
188 | 188 | } | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func gotHit (pitch,yaw,force,playerKey,opponentKey) = { | |
192 | 192 | let playerLat = getIntegerValue(this, ("positionLat_" + playerKey)) | |
193 | 193 | let playerLon = getIntegerValue(this, ("positionLong_" + playerKey)) | |
194 | 194 | let opponentLat = getIntegerValue(this, ("positionLat_" + opponentKey)) | |
195 | 195 | let opponentLon = getIntegerValue(this, ("positionLat_" + opponentKey)) | |
196 | 196 | let distanceBetweenPlayers = (distance(playerLat, playerLon, opponentLat, opponentLon) / 100000) | |
197 | 197 | let optimalVelocity = (sqrt(((distanceBetweenPlayers * 980665) / 10000)) * 1000) | |
198 | 198 | let playerShotReach = getShotDistance(((optimalVelocity * force) / 100000), pitch) | |
199 | 199 | let impactPosition = impact(playerLat, playerLon, playerShotReach, yaw) | |
200 | 200 | let impactDistance = (distance(impactPosition[0], impactPosition[1], opponentLat, opponentLon) / 100000) | |
201 | 201 | (100 > impactDistance) | |
202 | 202 | } | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | @Callable(i) | |
206 | 206 | func startGame (latitude,longitude) = { | |
207 | 207 | let caller = toString(i.caller) | |
208 | 208 | let coordinates = setCoords(caller, ((latitude * 1745) / 100000), ((longitude * 1745) / 100000)) | |
209 | 209 | let openGame = getString(this, "openGame") | |
210 | 210 | let gameIdstr = getGameId(caller) | |
211 | - | let gameId = | |
211 | + | let gameId = getStringValue(this, ("gameId_" + caller)) | |
212 | 212 | let gameIsActive = getBooleanValue(this, gameIdstr) | |
213 | - | if (if (if ((gameId != "")) | |
214 | - | then (gameId != unit) | |
215 | - | else false) | |
213 | + | if (if ((gameId != "")) | |
216 | 214 | then gameIsActive | |
217 | 215 | else false) | |
218 | 216 | then throw("Please finish your current game, before starting another one") | |
219 | 217 | else if (!(isDefined(openGame))) | |
220 | 218 | then WriteSet(DataEntry("openGame", caller) :: coordinates) | |
221 | 219 | else if (if ((openGame == "")) | |
222 | 220 | then true | |
223 | 221 | else (openGame == caller)) | |
224 | 222 | then WriteSet(DataEntry("openGame", caller) :: coordinates) | |
225 | 223 | else WriteSet([DataEntry("openGame", ""), coordinates[0], coordinates[1], setGameData(value(openGame), caller)]) | |
226 | 224 | } | |
227 | 225 | ||
228 | 226 | ||
229 | 227 | ||
230 | 228 | @Callable(i) | |
231 | 229 | func executeShot (pitch,yaw,force) = { | |
232 | 230 | let caller = toString(i.caller) | |
233 | 231 | let opponent = getStringValue(this, ("opponent_" + caller)) | |
234 | 232 | let gameId = getGameId(caller) | |
235 | 233 | if ((getStringValue(this, ("gameTurn_" + gameId)) != caller)) | |
236 | 234 | then throw("please wait for your turn") | |
237 | 235 | else if (gotHit(pitch, yaw, force, caller, opponent)) | |
238 | 236 | then WriteSet([DataEntry(("game_" + gameId), false), DataEntry(("gameWinner_" + gameId), caller)]) | |
239 | 237 | else WriteSet([DataEntry(("gameTurn_" + gameId), opponent)]) | |
240 | 238 | } | |
241 | 239 | ||
242 | 240 |
github/deemru/w8io/026f985 40.99 ms ◑