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:AAIFAAAAAAAAAB4IAhIAEgASBwoFCAEBAQESAwoBCBIDCgEIEgMKAQgAAAABAAAAAAVzZXBhcgIAAAABfAAAAAYAAAABaQEAAAAFcmVzZXQAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACmxhc3RnYW1laWQCAAAAATAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAPbGFzdGNoYWxsZW5nZWlkAgAAAAEwBQAAAANuaWwAAAABaQEAAAAIc2V0cnVsZXMAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZisCAAAACC0xLDF8MSwxCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZi0CAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARlYmYrAgAAAAgtMiwyfDIsMgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARlYmYtAgAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAEbXdmKwIAAAAKLTE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tYXRjaDAJAAQiAAAAAQkAASwAAAACAgAAAApjaGFsbGVuZ2UtBQAAAAxjaGFsbGVuZGdlaWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAkBAAAAEUBleHRyTmF0aXZlKDEwNTgpAAAAAQkAASwAAAACAgAAAApjaGFsbGVuZ2UtBQAAAAxjaGFsbGVuZGdlaWQCAAAAAAQAAAAJY2hhbGxlbmdlCQAEtQAAAAIJAQAAAAxnZXRjaGFsbGVuZ2UAAAABBQAAAAxjaGFsbGVuZGdlaWQFAAAABXNlcGFyAwkAAGYAAAACCQABkAAAAAEFAAAACWNoYWxsZW5nZQAAAAAAAAAAAAMJAAAAAAAAAgkAAZEAAAACBQAAAAljaGFsbGVuZ2UAAAAAAAAAAAACAAAACGF3YWl0aW5nCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgIAAAAKY2hhbGxlbmdlLQUAAAAMY2hhbGxlbmRnZWlkCQAEuQAAAAIJAARMAAAAAgIAAAAFdW5zZXQJAARMAAAAAgkAAZEAAAACBQAAAAljaGFsbGVuZ2UAAAAAAAAAAAEJAARMAAAAAgkAAZEAAAACBQAAAAljaGFsbGVuZ2UAAAAAAAAAAAIJAARMAAAAAgkAAZEAAAACBQAAAAljaGFsbGVuZ2UAAAAAAAAAAAMFAAAAA25pbAUAAAAFc2VwYXIFAAAAA25pbAkAAAIAAAABAgAAABRjaGFsbGVuZ2Ugbm90IGV4aXN0cwkAAAIAAAABAgAAABRjaGFsbGVuZ2Ugbm90IGV4aXN0cwAAAABwHNmp", "height": 1827848, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8Po4rDdVunXM2U9LgEephc4QP6CyoZ3ze5AQXyypHMs8 Next: 458vRSJz4koZT2bixGQ1kbnvEN9H1KCBMdjdnbE7YSZ8 Diff:
OldNewDifferences
8484 else false
8585 else false)
8686 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)
8890 then "e"
8991 else throw("can not eat himself")
9092 let v = ((toString((d - f)) + ",") + toString((e - g)))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "|"
55
66 @Callable(b)
77 func reset () = [StringEntry("lastgameid", "0"), StringEntry("lastchallengeid", "0")]
88
99
1010
1111 @Callable(b)
1212 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-", "")]
1313
1414
1515
1616 @Callable(b)
1717 func move (c,d,e,f,g) = {
1818 let h = {
1919 let i = getString(("game-" + c))
2020 if ($isInstanceOf(i, "String"))
2121 then {
2222 let j = i
2323 split(getStringValue(("game-" + c)), a)
2424 }
2525 else throw("no game")
2626 }
2727 if ((h == h))
2828 then {
2929 let k = if (if (if (if ((d > -1))
3030 then (f > -1)
3131 else false)
3232 then (8 > e)
3333 else false)
3434 then (8 > g)
3535 else false)
3636 then true
3737 else throw("incorrect xy")
3838 if ((k == k))
3939 then {
4040 let l = toBase58String(b.caller.bytes)
4141 if ((l == l))
4242 then {
4343 let m = if ((h[0] == "ongoing"))
4444 then true
4545 else throw("not ongoing game")
4646 if ((m == m))
4747 then {
4848 let n = if (if (m)
4949 then if ((h[1] == l))
5050 then true
5151 else (h[2] == l)
5252 else false)
5353 then if ((h[1] == l))
5454 then "w"
5555 else "b"
5656 else throw("not gamer")
5757 if ((n == n))
5858 then {
5959 let o = if ((n == "w"))
6060 then "b"
6161 else "w"
6262 let p = if ((n == h[5]))
6363 then true
6464 else throw("not your turn")
6565 if ((p == p))
6666 then {
6767 let q = split(h[8], "!")
6868 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], "-")]
6969 if ((r == r))
7070 then {
7171 let s = if ((takeRight(r[e][d], 1) == "0"))
7272 then throw("empty cell")
7373 else takeRight(r[e][d], 1)
7474 let t = if ((r[g][f] == "00"))
7575 then true
7676 else throw("cell not free")
7777 if ((t == t))
7878 then {
7979 let u = if (if (if ((((g - e) * (g - e)) == 1))
8080 then (s == "f")
8181 else false)
8282 then if ((((g - e) * (g - e)) > 1))
8383 then (s == "d")
8484 else false
8585 else false)
8686 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)
8890 then "e"
8991 else throw("can not eat himself")
9092 let v = ((toString((d - f)) + ",") + toString((e - g)))
9193 let w = {
9294 let i = getString((((u + n) + s) + "+"))
9395 if ($isInstanceOf(i, "String"))
9496 then {
9597 let j = i
9698 split(getStringValue((((u + n) + s) + "+")), "|")
9799 }
98100 else throw((((("no rules for " + u) + n) + s) + "+"))
99101 }
100102 let x = {
101103 let i = getString((((u + n) + s) + "-"))
102104 if ($isInstanceOf(i, "String"))
103105 then {
104106 let j = i
105107 split(getStringValue((((u + n) + s) + "-")), "|")
106108 }
107109 else throw((((("no rules for " + u) + n) + s) + "-"))
108110 }
109111 let y = if (containsElement(w, v))
110112 then true
111113 else throw(((((("incorrect movement+: fig=" + s) + " side=") + n) + " mtype=") + u))
112114 let z = if (containsElement(x, v))
113115 then throw(((((((("incorrect (" + v) + ")movement-: fig=") + s) + " side=") + n) + " mtype=") + u))
114116 else true
115117 if (z)
116118 then {
117119 let A = h[8]
118120 let B = ((take(A, ((d * 3) + ((e * 8) * 3))) + "00") + takeRight(A, ((191 - ((d * 3) + ((e * 8) * 3))) - 2)))
119121 let C = (((take(B, ((f * 3) + ((g * 8) * 3))) + n) + s) + takeRight(B, ((191 - ((f * 3) + ((g * 8) * 3))) - 2)))
120122 $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")])
121123 }
122124 else throw(((((("impossible movement: fig=" + s) + " side=") + n) + " mtype=") + u))
123125 }
124126 else throw("Strict value is not equal to itself.")
125127 }
126128 else throw("Strict value is not equal to itself.")
127129 }
128130 else throw("Strict value is not equal to itself.")
129131 }
130132 else throw("Strict value is not equal to itself.")
131133 }
132134 else throw("Strict value is not equal to itself.")
133135 }
134136 else throw("Strict value is not equal to itself.")
135137 }
136138 else throw("Strict value is not equal to itself.")
137139 }
138140 else throw("Strict value is not equal to itself.")
139141 }
140142
141143
142144
143145 @Callable(b)
144146 func startgame (D) = {
145147 let E = if ((size(b.payments) == 1))
146148 then b.payments[0]
147149 else throw("must stake some waves")
148150 if (isDefined(E.assetId))
149151 then throw("works with waves only")
150152 else {
151153 let l = toBase58String(b.caller.bytes)
152154 let F = split(getStringValue(("challenge-" + D)), a)
153155 if ((size(F) > 0))
154156 then if ((E.amount >= parseIntValue(F[3])))
155157 then if ((F[0] == "awaiting"))
156158 then {
157159 let G = if ((F[2] == "b"))
158160 then F[1]
159161 else l
160162 let H = if ((F[2] == "w"))
161163 then F[1]
162164 else l
163165 let c = toString((parseIntValue(getStringValue("lastgameid")) + 1))
164166 [StringEntry(("challenge-" + D), makeString([c, F[1], F[2], F[3], l], a)), {
165167 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"
166168 StringEntry(("game-" + c), makeString(["ongoing", H, G, F[3], "0", "w", "startblock", "laststepblock", q], a))
167169 }, StringEntry("lastgameid", c), ScriptTransfer(b.caller, (E.amount - parseIntValue(F[3])), unit)]
168170 }
169171 else throw("no challenge awaiting")
170172 else throw("need more money")
171173 else throw("no challenge")
172174 }
173175 }
174176
175177
176178
177179 @Callable(b)
178180 func setchallenge (n) = if (if ((n == "b"))
179181 then true
180182 else (n == "w"))
181183 then {
182184 let E = if ((size(b.payments) == 1))
183185 then b.payments[0]
184186 else throw("must stake some waves")
185187 if (isDefined(E.assetId))
186188 then throw("works with waves only")
187189 else {
188190 let l = toBase58String(b.caller.bytes)
189191 let D = toString((parseIntValue(getStringValue("lastchallengeid")) + 1))
190192 [StringEntry(("challenge-" + D), makeString(["awaiting", l, n, toString(E.amount)], a)), StringEntry("lastchallengeid", D)]
191193 }
192194 }
193195 else throw("invalid side")
194196
195197
196198
197199 @Callable(b)
198200 func unsetchallenge (I) = {
199201 let l = toBase58String(b.caller.bytes)
200202 func J (I) = {
201203 let i = getString(("challenge-" + I))
202204 if ($isInstanceOf(i, "String"))
203205 then {
204206 let j = i
205207 getStringValue(("challenge-" + I))
206208 }
207209 else ""
208210 }
209211
210212 let K = split(J(I), a)
211213 if ((size(K) > 0))
212214 then if ((K[0] == "awaiting"))
213215 then [StringEntry(("challenge-" + I), makeString(["unset", K[1], K[2], K[3]], a))]
214216 else throw("challenge not exists")
215217 else throw("challenge not exists")
216218 }
217219
218220

github/deemru/w8io/169f3d6 
38.48 ms