tx · EJ1AGYAymM9NfzEV3JZuWgvbsjxdYAeC5doRFDPUreyd 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV: -0.01000000 Waves 2021.12.10 10:38 [1827848] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves
{ "type": 13, "id": "EJ1AGYAymM9NfzEV3JZuWgvbsjxdYAeC5doRFDPUreyd", "fee": 1000000, "feeAssetId": null, "timestamp": 1639121935399, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "3HvQcKixX6hGxaNQzfjYXSBDPwrhBt5BGbkTdTEwKvkYzUrXZKXr6s6mTenAsW2S16PmwJE7f4fM66Rqx3ZUFtBy" ], "script": "base64:AAIFAAAAAAAAAB4IAhIAEgASBwoFCAEBAQESAwoBCBIDCgEIEgMKAQgAAAABAAAAAAVzZXBhcgIAAAABfAAAAAYAAAABaQEAAAAFcmVzZXQAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACmxhc3RnYW1laWQCAAAAATAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAPbGFzdGNoYWxsZW5nZWlkAgAAAAEwBQAAAANuaWwAAAABaQEAAAAIc2V0cnVsZXMAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZisCAAAACC0xLDF8MSwxCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZi0CAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARlYmYrAgAAAAgtMiwyfDIsMgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARlYmYtAgAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAEbXdmKwIAAAAKLTEs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YXRjaDAJAAQiAAAAAQkAASwAAAACAgAAAApjaGFsbGVuZ2UtBQAAAAxjaGFsbGVuZGdlaWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAkBAAAAEUBleHRyTmF0aXZlKDEwNTgpAAAAAQkAASwAAAACAgAAAApjaGFsbGVuZ2UtBQAAAAxjaGFsbGVuZGdlaWQCAAAAAAQAAAAJY2hhbGxlbmdlCQAEtQAAAAIJAQAAAAxnZXRjaGFsbGVuZ2UAAAABBQAAAAxjaGFsbGVuZGdlaWQFAAAABXNlcGFyAwkAAGYAAAACCQABkAAAAAEFAAAACWNoYWxsZW5nZQAAAAAAAAAAAAMJAAAAAAAAAgkAAZEAAAACBQAAAAljaGFsbGVuZ2UAAAAAAAAAAAACAAAACGF3YWl0aW5nCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgIAAAAKY2hhbGxlbmdlLQUAAAAMY2hhbGxlbmRnZWlkCQAEuQAAAAIJAARMAAAAAgIAAAAFdW5zZXQJAARMAAAAAgkAAZEAAAACBQAAAAljaGFsbGVuZ2UAAAAAAAAAAAEJAARMAAAAAgkAAZEAAAACBQAAAAljaGFsbGVuZ2UAAAAAAAAAAAIJAARMAAAAAgkAAZEAAAACBQAAAAljaGFsbGVuZ2UAAAAAAAAAAAMFAAAAA25pbAUAAAAFc2VwYXIFAAAAA25pbAkAAAIAAAABAgAAABRjaGFsbGVuZ2Ugbm90IGV4aXN0cwkAAAIAAAABAgAAABRjaGFsbGVuZ2Ugbm90IGV4aXN0cwAAAABwHNmp", "height": 1827848, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8Po4rDdVunXM2U9LgEephc4QP6CyoZ3ze5AQXyypHMs8 Next: 458vRSJz4koZT2bixGQ1kbnvEN9H1KCBMdjdnbE7YSZ8 Diff:
Old | New | Differences | |
---|---|---|---|
84 | 84 | else false | |
85 | 85 | else false) | |
86 | 86 | then "m" | |
87 | - | else if ((take(r[g][f], 1) == o)) | |
87 | + | else if (if ((((g - e) * (g - e)) == 4)) | |
88 | + | then (s == "f") | |
89 | + | else false) | |
88 | 90 | then "e" | |
89 | 91 | else throw("can not eat himself") | |
90 | 92 | let v = ((toString((d - f)) + ",") + toString((e - g))) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "|" | |
5 | 5 | ||
6 | 6 | @Callable(b) | |
7 | 7 | func reset () = [StringEntry("lastgameid", "0"), StringEntry("lastchallengeid", "0")] | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | ||
11 | 11 | @Callable(b) | |
12 | 12 | func setrules () = [StringEntry("mbf+", "-1,1|1,1"), StringEntry("mbf-", ""), StringEntry("ebf+", "-2,2|2,2"), StringEntry("ebf-", ""), StringEntry("mwf+", "-1,-1|1,-1"), StringEntry("mwf-", ""), StringEntry("ewf+", "-2,-2|2,-2"), StringEntry("ewf-", "")] | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | ||
16 | 16 | @Callable(b) | |
17 | 17 | func move (c,d,e,f,g) = { | |
18 | 18 | let h = { | |
19 | 19 | let i = getString(("game-" + c)) | |
20 | 20 | if ($isInstanceOf(i, "String")) | |
21 | 21 | then { | |
22 | 22 | let j = i | |
23 | 23 | split(getStringValue(("game-" + c)), a) | |
24 | 24 | } | |
25 | 25 | else throw("no game") | |
26 | 26 | } | |
27 | 27 | if ((h == h)) | |
28 | 28 | then { | |
29 | 29 | let k = if (if (if (if ((d > -1)) | |
30 | 30 | then (f > -1) | |
31 | 31 | else false) | |
32 | 32 | then (8 > e) | |
33 | 33 | else false) | |
34 | 34 | then (8 > g) | |
35 | 35 | else false) | |
36 | 36 | then true | |
37 | 37 | else throw("incorrect xy") | |
38 | 38 | if ((k == k)) | |
39 | 39 | then { | |
40 | 40 | let l = toBase58String(b.caller.bytes) | |
41 | 41 | if ((l == l)) | |
42 | 42 | then { | |
43 | 43 | let m = if ((h[0] == "ongoing")) | |
44 | 44 | then true | |
45 | 45 | else throw("not ongoing game") | |
46 | 46 | if ((m == m)) | |
47 | 47 | then { | |
48 | 48 | let n = if (if (m) | |
49 | 49 | then if ((h[1] == l)) | |
50 | 50 | then true | |
51 | 51 | else (h[2] == l) | |
52 | 52 | else false) | |
53 | 53 | then if ((h[1] == l)) | |
54 | 54 | then "w" | |
55 | 55 | else "b" | |
56 | 56 | else throw("not gamer") | |
57 | 57 | if ((n == n)) | |
58 | 58 | then { | |
59 | 59 | let o = if ((n == "w")) | |
60 | 60 | then "b" | |
61 | 61 | else "w" | |
62 | 62 | let p = if ((n == h[5])) | |
63 | 63 | then true | |
64 | 64 | else throw("not your turn") | |
65 | 65 | if ((p == p)) | |
66 | 66 | then { | |
67 | 67 | let q = split(h[8], "!") | |
68 | 68 | let r = [split(q[0], "-"), split(q[1], "-"), split(q[2], "-"), split(q[3], "-"), split(q[4], "-"), split(q[5], "-"), split(q[6], "-"), split(q[7], "-")] | |
69 | 69 | if ((r == r)) | |
70 | 70 | then { | |
71 | 71 | let s = if ((takeRight(r[e][d], 1) == "0")) | |
72 | 72 | then throw("empty cell") | |
73 | 73 | else takeRight(r[e][d], 1) | |
74 | 74 | let t = if ((r[g][f] == "00")) | |
75 | 75 | then true | |
76 | 76 | else throw("cell not free") | |
77 | 77 | if ((t == t)) | |
78 | 78 | then { | |
79 | 79 | let u = if (if (if ((((g - e) * (g - e)) == 1)) | |
80 | 80 | then (s == "f") | |
81 | 81 | else false) | |
82 | 82 | then if ((((g - e) * (g - e)) > 1)) | |
83 | 83 | then (s == "d") | |
84 | 84 | else false | |
85 | 85 | else false) | |
86 | 86 | then "m" | |
87 | - | else if ((take(r[g][f], 1) == o)) | |
87 | + | else if (if ((((g - e) * (g - e)) == 4)) | |
88 | + | then (s == "f") | |
89 | + | else false) | |
88 | 90 | then "e" | |
89 | 91 | else throw("can not eat himself") | |
90 | 92 | let v = ((toString((d - f)) + ",") + toString((e - g))) | |
91 | 93 | let w = { | |
92 | 94 | let i = getString((((u + n) + s) + "+")) | |
93 | 95 | if ($isInstanceOf(i, "String")) | |
94 | 96 | then { | |
95 | 97 | let j = i | |
96 | 98 | split(getStringValue((((u + n) + s) + "+")), "|") | |
97 | 99 | } | |
98 | 100 | else throw((((("no rules for " + u) + n) + s) + "+")) | |
99 | 101 | } | |
100 | 102 | let x = { | |
101 | 103 | let i = getString((((u + n) + s) + "-")) | |
102 | 104 | if ($isInstanceOf(i, "String")) | |
103 | 105 | then { | |
104 | 106 | let j = i | |
105 | 107 | split(getStringValue((((u + n) + s) + "-")), "|") | |
106 | 108 | } | |
107 | 109 | else throw((((("no rules for " + u) + n) + s) + "-")) | |
108 | 110 | } | |
109 | 111 | let y = if (containsElement(w, v)) | |
110 | 112 | then true | |
111 | 113 | else throw(((((("incorrect movement+: fig=" + s) + " side=") + n) + " mtype=") + u)) | |
112 | 114 | let z = if (containsElement(x, v)) | |
113 | 115 | then throw(((((((("incorrect (" + v) + ")movement-: fig=") + s) + " side=") + n) + " mtype=") + u)) | |
114 | 116 | else true | |
115 | 117 | if (z) | |
116 | 118 | then { | |
117 | 119 | let A = h[8] | |
118 | 120 | let B = ((take(A, ((d * 3) + ((e * 8) * 3))) + "00") + takeRight(A, ((191 - ((d * 3) + ((e * 8) * 3))) - 2))) | |
119 | 121 | let C = (((take(B, ((f * 3) + ((g * 8) * 3))) + n) + s) + takeRight(B, ((191 - ((f * 3) + ((g * 8) * 3))) - 2))) | |
120 | 122 | $Tuple2([StringEntry(("game-" + c), makeString([h[0], h[1], h[2], h[3], toString((parseIntValue(h[4]) + 1)), o, h[6], h[7], C], a))], [StringEntry("_", "possible")]) | |
121 | 123 | } | |
122 | 124 | else throw(((((("impossible movement: fig=" + s) + " side=") + n) + " mtype=") + u)) | |
123 | 125 | } | |
124 | 126 | else throw("Strict value is not equal to itself.") | |
125 | 127 | } | |
126 | 128 | else throw("Strict value is not equal to itself.") | |
127 | 129 | } | |
128 | 130 | else throw("Strict value is not equal to itself.") | |
129 | 131 | } | |
130 | 132 | else throw("Strict value is not equal to itself.") | |
131 | 133 | } | |
132 | 134 | else throw("Strict value is not equal to itself.") | |
133 | 135 | } | |
134 | 136 | else throw("Strict value is not equal to itself.") | |
135 | 137 | } | |
136 | 138 | else throw("Strict value is not equal to itself.") | |
137 | 139 | } | |
138 | 140 | else throw("Strict value is not equal to itself.") | |
139 | 141 | } | |
140 | 142 | ||
141 | 143 | ||
142 | 144 | ||
143 | 145 | @Callable(b) | |
144 | 146 | func startgame (D) = { | |
145 | 147 | let E = if ((size(b.payments) == 1)) | |
146 | 148 | then b.payments[0] | |
147 | 149 | else throw("must stake some waves") | |
148 | 150 | if (isDefined(E.assetId)) | |
149 | 151 | then throw("works with waves only") | |
150 | 152 | else { | |
151 | 153 | let l = toBase58String(b.caller.bytes) | |
152 | 154 | let F = split(getStringValue(("challenge-" + D)), a) | |
153 | 155 | if ((size(F) > 0)) | |
154 | 156 | then if ((E.amount >= parseIntValue(F[3]))) | |
155 | 157 | then if ((F[0] == "awaiting")) | |
156 | 158 | then { | |
157 | 159 | let G = if ((F[2] == "b")) | |
158 | 160 | then F[1] | |
159 | 161 | else l | |
160 | 162 | let H = if ((F[2] == "w")) | |
161 | 163 | then F[1] | |
162 | 164 | else l | |
163 | 165 | let c = toString((parseIntValue(getStringValue("lastgameid")) + 1)) | |
164 | 166 | [StringEntry(("challenge-" + D), makeString([c, F[1], F[2], F[3], l], a)), { | |
165 | 167 | let q = "wf-00-wf-00-wf-00-wf-00!00-wf-00-wf-00-wf-00-wf!wf-00-wf-00-wf-00-wf-00!00-00-00-00-00-00-00-00!00-00-00-00-00-00-00-00!00-bf-00-bf-00-bf-00-bf!bf-00-bf-00-bf-00-bf-00!00-bf-00-bf-00-bf-00-bf" | |
166 | 168 | StringEntry(("game-" + c), makeString(["ongoing", H, G, F[3], "0", "w", "startblock", "laststepblock", q], a)) | |
167 | 169 | }, StringEntry("lastgameid", c), ScriptTransfer(b.caller, (E.amount - parseIntValue(F[3])), unit)] | |
168 | 170 | } | |
169 | 171 | else throw("no challenge awaiting") | |
170 | 172 | else throw("need more money") | |
171 | 173 | else throw("no challenge") | |
172 | 174 | } | |
173 | 175 | } | |
174 | 176 | ||
175 | 177 | ||
176 | 178 | ||
177 | 179 | @Callable(b) | |
178 | 180 | func setchallenge (n) = if (if ((n == "b")) | |
179 | 181 | then true | |
180 | 182 | else (n == "w")) | |
181 | 183 | then { | |
182 | 184 | let E = if ((size(b.payments) == 1)) | |
183 | 185 | then b.payments[0] | |
184 | 186 | else throw("must stake some waves") | |
185 | 187 | if (isDefined(E.assetId)) | |
186 | 188 | then throw("works with waves only") | |
187 | 189 | else { | |
188 | 190 | let l = toBase58String(b.caller.bytes) | |
189 | 191 | let D = toString((parseIntValue(getStringValue("lastchallengeid")) + 1)) | |
190 | 192 | [StringEntry(("challenge-" + D), makeString(["awaiting", l, n, toString(E.amount)], a)), StringEntry("lastchallengeid", D)] | |
191 | 193 | } | |
192 | 194 | } | |
193 | 195 | else throw("invalid side") | |
194 | 196 | ||
195 | 197 | ||
196 | 198 | ||
197 | 199 | @Callable(b) | |
198 | 200 | func unsetchallenge (I) = { | |
199 | 201 | let l = toBase58String(b.caller.bytes) | |
200 | 202 | func J (I) = { | |
201 | 203 | let i = getString(("challenge-" + I)) | |
202 | 204 | if ($isInstanceOf(i, "String")) | |
203 | 205 | then { | |
204 | 206 | let j = i | |
205 | 207 | getStringValue(("challenge-" + I)) | |
206 | 208 | } | |
207 | 209 | else "" | |
208 | 210 | } | |
209 | 211 | ||
210 | 212 | let K = split(J(I), a) | |
211 | 213 | if ((size(K) > 0)) | |
212 | 214 | then if ((K[0] == "awaiting")) | |
213 | 215 | then [StringEntry(("challenge-" + I), makeString(["unset", K[1], K[2], K[3]], a))] | |
214 | 216 | else throw("challenge not exists") | |
215 | 217 | else throw("challenge not exists") | |
216 | 218 | } | |
217 | 219 | ||
218 | 220 |
github/deemru/w8io/169f3d6 38.48 ms ◑