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
8181 else false
8282 else false)
8383 then "m"
84- else if ((take(cells[toy][tox], 1) == otherside))
84+ else if (if ((((toy - fromy) * (toy - fromy)) == 4))
85+ then (figure == "f")
86+ else false)
8587 then "e"
8688 else throw("can not eat himself")
8789 let movement = ((toString((fromx - tox)) + ",") + toString((fromy - toy)))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separ = "|"
55
66 @Callable(i)
77 func reset () = [StringEntry("lastgameid", "0"), StringEntry("lastchallengeid", "0")]
88
99
1010
1111 @Callable(i)
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(i)
1717 func move (gameid,fromx,fromy,tox,toy) = {
1818 let game = match getString(("game-" + gameid)) {
1919 case a: String =>
2020 split(getStringValue(("game-" + gameid)), separ)
2121 case _ =>
2222 throw("no game")
2323 }
2424 if ((game == game))
2525 then {
2626 let correctxy = if (if (if (if ((fromx > -1))
2727 then (tox > -1)
2828 else false)
2929 then (8 > fromy)
3030 else false)
3131 then (8 > toy)
3232 else false)
3333 then true
3434 else throw("incorrect xy")
3535 if ((correctxy == correctxy))
3636 then {
3737 let callerAdress = toBase58String(i.caller.bytes)
3838 if ((callerAdress == callerAdress))
3939 then {
4040 let isgame = if ((game[0] == "ongoing"))
4141 then true
4242 else throw("not ongoing game")
4343 if ((isgame == isgame))
4444 then {
4545 let side = if (if (isgame)
4646 then if ((game[1] == callerAdress))
4747 then true
4848 else (game[2] == callerAdress)
4949 else false)
5050 then if ((game[1] == callerAdress))
5151 then "w"
5252 else "b"
5353 else throw("not gamer")
5454 if ((side == side))
5555 then {
5656 let otherside = if ((side == "w"))
5757 then "b"
5858 else "w"
5959 let turn = if ((side == game[5]))
6060 then true
6161 else throw("not your turn")
6262 if ((turn == turn))
6363 then {
6464 let situation = split(game[8], "!")
6565 let cells = [split(situation[0], "-"), split(situation[1], "-"), split(situation[2], "-"), split(situation[3], "-"), split(situation[4], "-"), split(situation[5], "-"), split(situation[6], "-"), split(situation[7], "-")]
6666 if ((cells == cells))
6767 then {
6868 let figure = if ((takeRight(cells[fromy][fromx], 1) == "0"))
6969 then throw("empty cell")
7070 else takeRight(cells[fromy][fromx], 1)
7171 let isfreecell = if ((cells[toy][tox] == "00"))
7272 then true
7373 else throw("cell not free")
7474 if ((isfreecell == isfreecell))
7575 then {
7676 let movetype = if (if (if ((((toy - fromy) * (toy - fromy)) == 1))
7777 then (figure == "f")
7878 else false)
7979 then if ((((toy - fromy) * (toy - fromy)) > 1))
8080 then (figure == "d")
8181 else false
8282 else false)
8383 then "m"
84- else if ((take(cells[toy][tox], 1) == otherside))
84+ else if (if ((((toy - fromy) * (toy - fromy)) == 4))
85+ then (figure == "f")
86+ else false)
8587 then "e"
8688 else throw("can not eat himself")
8789 let movement = ((toString((fromx - tox)) + ",") + toString((fromy - toy)))
8890 let possible = match getString((((movetype + side) + figure) + "+")) {
8991 case a: String =>
9092 split(getStringValue((((movetype + side) + figure) + "+")), "|")
9193 case _ =>
9294 throw((((("no rules for " + movetype) + side) + figure) + "+"))
9395 }
9496 let impossible = match getString((((movetype + side) + figure) + "-")) {
9597 case a: String =>
9698 split(getStringValue((((movetype + side) + figure) + "-")), "|")
9799 case _ =>
98100 throw((((("no rules for " + movetype) + side) + figure) + "-"))
99101 }
100102 let iscorrect1 = if (containsElement(possible, movement))
101103 then true
102104 else throw(((((("incorrect movement+: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
103105 let iscorrect2 = if (containsElement(impossible, movement))
104106 then throw(((((((("incorrect (" + movement) + ")movement-: fig=") + figure) + " side=") + side) + " mtype=") + movetype))
105107 else true
106108 if (iscorrect2)
107109 then {
108110 let old = game[8]
109111 let new = ((take(old, ((fromx * 3) + ((fromy * 8) * 3))) + "00") + takeRight(old, ((191 - ((fromx * 3) + ((fromy * 8) * 3))) - 2)))
110112 let newsituation = (((take(new, ((tox * 3) + ((toy * 8) * 3))) + side) + figure) + takeRight(new, ((191 - ((tox * 3) + ((toy * 8) * 3))) - 2)))
111113 $Tuple2([StringEntry(("game-" + gameid), makeString([game[0], game[1], game[2], game[3], toString((parseIntValue(game[4]) + 1)), otherside, game[6], game[7], newsituation], separ))], [StringEntry("_", "possible")])
112114 }
113115 else throw(((((("impossible movement: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
114116 }
115117 else throw("Strict value is not equal to itself.")
116118 }
117119 else throw("Strict value is not equal to itself.")
118120 }
119121 else throw("Strict value is not equal to itself.")
120122 }
121123 else throw("Strict value is not equal to itself.")
122124 }
123125 else throw("Strict value is not equal to itself.")
124126 }
125127 else throw("Strict value is not equal to itself.")
126128 }
127129 else throw("Strict value is not equal to itself.")
128130 }
129131 else throw("Strict value is not equal to itself.")
130132 }
131133
132134
133135
134136 @Callable(i)
135137 func startgame (challengeid) = {
136138 let pmt = if ((size(i.payments) == 1))
137139 then i.payments[0]
138140 else throw("must stake some waves")
139141 if (isDefined(pmt.assetId))
140142 then throw("works with waves only")
141143 else {
142144 let callerAdress = toBase58String(i.caller.bytes)
143145 let conditions = split(getStringValue(("challenge-" + challengeid)), separ)
144146 if ((size(conditions) > 0))
145147 then if ((pmt.amount >= parseIntValue(conditions[3])))
146148 then if ((conditions[0] == "awaiting"))
147149 then {
148150 let black = if ((conditions[2] == "b"))
149151 then conditions[1]
150152 else callerAdress
151153 let white = if ((conditions[2] == "w"))
152154 then conditions[1]
153155 else callerAdress
154156 let gameid = toString((parseIntValue(getStringValue("lastgameid")) + 1))
155157 [StringEntry(("challenge-" + challengeid), makeString([gameid, conditions[1], conditions[2], conditions[3], callerAdress], separ)), {
156158 let situation = "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"
157159 StringEntry(("game-" + gameid), makeString(["ongoing", white, black, conditions[3], "0", "w", "startblock", "laststepblock", situation], separ))
158160 }, StringEntry("lastgameid", gameid), ScriptTransfer(i.caller, (pmt.amount - parseIntValue(conditions[3])), unit)]
159161 }
160162 else throw("no challenge awaiting")
161163 else throw("need more money")
162164 else throw("no challenge")
163165 }
164166 }
165167
166168
167169
168170 @Callable(i)
169171 func setchallenge (side) = if (if ((side == "b"))
170172 then true
171173 else (side == "w"))
172174 then {
173175 let pmt = if ((size(i.payments) == 1))
174176 then i.payments[0]
175177 else throw("must stake some waves")
176178 if (isDefined(pmt.assetId))
177179 then throw("works with waves only")
178180 else {
179181 let callerAdress = toBase58String(i.caller.bytes)
180182 let challengeid = toString((parseIntValue(getStringValue("lastchallengeid")) + 1))
181183 [StringEntry(("challenge-" + challengeid), makeString(["awaiting", callerAdress, side, toString(pmt.amount)], separ)), StringEntry("lastchallengeid", challengeid)]
182184 }
183185 }
184186 else throw("invalid side")
185187
186188
187189
188190 @Callable(i)
189191 func unsetchallenge (challendgeid) = {
190192 let callerAdress = toBase58String(i.caller.bytes)
191193 func getchallenge (challendgeid) = match getString(("challenge-" + challendgeid)) {
192194 case a: String =>
193195 getStringValue(("challenge-" + challendgeid))
194196 case _ =>
195197 ""
196198 }
197199
198200 let challenge = split(getchallenge(challendgeid), separ)
199201 if ((size(challenge) > 0))
200202 then if ((challenge[0] == "awaiting"))
201203 then [StringEntry(("challenge-" + challendgeid), makeString(["unset", challenge[1], challenge[2], challenge[3]], separ))]
202204 else throw("challenge not exists")
203205 else throw("challenge not exists")
204206 }
205207
206208

github/deemru/w8io/026f985 
35.27 ms