tx · 8Po4rDdVunXM2U9LgEephc4QP6CyoZ3ze5AQXyypHMs8

3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV:  -0.01000000 Waves

2021.12.10 09:55 [1827803] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves

{ "type": 13, "id": "8Po4rDdVunXM2U9LgEephc4QP6CyoZ3ze5AQXyypHMs8", "fee": 1000000, "feeAssetId": null, "timestamp": 1639119344097, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "2CtG6PEXUnoDBHAEZ1WYQTwhXntvBZnQZCN54Jci3wWf3CiEV9v396Lv38Xm9Pm2FV4aT4NxxNobRaPcHYVuCN73" ], "script": "base64:AAIFAAAAAAAAAB4IAhIAEgASBwoFCAEBAQESAwoBCBIDCgEIEgMKAQgAAAABAAAAAAVzZXBhcgIAAAABfAAAAAYAAAABaQEAAAAFcmVzZXQAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACmxhc3RnYW1laWQCAAAAATAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAPbGFzdGNoYWxsZW5nZWlkAgAAAAEwBQAAAANuaWwAAAABaQEAAAAIc2V0cnVsZXMAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZisCAAAACC0xLDF8MSwxCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZi0CAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARlYmYrAgAAAAgtMiwyfDIsMgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARlYmYtAgAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAEbXdmKwIAAAAKLTEsL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IAAAAKY2hhbGxlbmdlLQUAAAAMY2hhbGxlbmRnZWlkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAJAQAAABFAZXh0ck5hdGl2ZSgxMDU4KQAAAAEJAAEsAAAAAgIAAAAKY2hhbGxlbmdlLQUAAAAMY2hhbGxlbmRnZWlkAgAAAAAEAAAACWNoYWxsZW5nZQkABLUAAAACCQEAAAAMZ2V0Y2hhbGxlbmdlAAAAAQUAAAAMY2hhbGxlbmRnZWlkBQAAAAVzZXBhcgMJAABmAAAAAgkAAZAAAAABBQAAAAljaGFsbGVuZ2UAAAAAAAAAAAADCQAAAAAAAAIJAAGRAAAAAgUAAAAJY2hhbGxlbmdlAAAAAAAAAAAAAgAAAAhhd2FpdGluZwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAACmNoYWxsZW5nZS0FAAAADGNoYWxsZW5kZ2VpZAkABLkAAAACCQAETAAAAAICAAAABXVuc2V0CQAETAAAAAIJAAGRAAAAAgUAAAAJY2hhbGxlbmdlAAAAAAAAAAABCQAETAAAAAIJAAGRAAAAAgUAAAAJY2hhbGxlbmdlAAAAAAAAAAACCQAETAAAAAIJAAGRAAAAAgUAAAAJY2hhbGxlbmdlAAAAAAAAAAADBQAAAANuaWwFAAAABXNlcGFyBQAAAANuaWwJAAACAAAAAQIAAAAUY2hhbGxlbmdlIG5vdCBleGlzdHMJAAACAAAAAQIAAAAUY2hhbGxlbmdlIG5vdCBleGlzdHMAAAAA3xw6Hg==", "height": 1827803, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B1Z39kB2bum2xZJ4eYEu7ptrhNLBovzm38Ls8v44aPLm Next: EJ1AGYAymM9NfzEV3JZuWgvbsjxdYAeC5doRFDPUreyd Diff:
OldNewDifferences
99
1010
1111 @Callable(i)
12-func setrules () = [StringEntry("mbf+", "-1,1|1,1"), StringEntry("mbf-", ""), StringEntry("mwf+", "-1,-1|1,-1"), StringEntry("mwf-", ""), StringEntry("ewf+", "-2,-2|2,-2"), StringEntry("ewf-", "")]
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-", "")]
1313
1414
1515
7373 else throw("cell not free")
7474 if ((isfreecell == isfreecell))
7575 then {
76- let movetype = if (if ((((toy - fromy) * (toy - fromy)) == 1))
76+ let movetype = if (if (if ((((toy - fromy) * (toy - fromy)) == 1))
7777 then (figure == "f")
78+ else false)
79+ then if ((((toy - fromy) * (toy - fromy)) > 1))
80+ then (figure == "d")
81+ else false
7882 else false)
7983 then "m"
8084 else if ((take(cells[toy][tox], 1) == otherside))
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)
12-func setrules () = [StringEntry("mbf+", "-1,1|1,1"), StringEntry("mbf-", ""), StringEntry("mwf+", "-1,-1|1,-1"), StringEntry("mwf-", ""), StringEntry("ewf+", "-2,-2|2,-2"), StringEntry("ewf-", "")]
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-", "")]
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 {
76- let movetype = if (if ((((toy - fromy) * (toy - fromy)) == 1))
76+ let movetype = if (if (if ((((toy - fromy) * (toy - fromy)) == 1))
7777 then (figure == "f")
78+ else false)
79+ then if ((((toy - fromy) * (toy - fromy)) > 1))
80+ then (figure == "d")
81+ else false
7882 else false)
7983 then "m"
8084 else if ((take(cells[toy][tox], 1) == otherside))
8185 then "e"
8286 else throw("can not eat himself")
8387 let movement = ((toString((fromx - tox)) + ",") + toString((fromy - toy)))
8488 let possible = match getString((((movetype + side) + figure) + "+")) {
8589 case a: String =>
8690 split(getStringValue((((movetype + side) + figure) + "+")), "|")
8791 case _ =>
8892 throw((((("no rules for " + movetype) + side) + figure) + "+"))
8993 }
9094 let impossible = match getString((((movetype + side) + figure) + "-")) {
9195 case a: String =>
9296 split(getStringValue((((movetype + side) + figure) + "-")), "|")
9397 case _ =>
9498 throw((((("no rules for " + movetype) + side) + figure) + "-"))
9599 }
96100 let iscorrect1 = if (containsElement(possible, movement))
97101 then true
98102 else throw(((((("incorrect movement+: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
99103 let iscorrect2 = if (containsElement(impossible, movement))
100104 then throw(((((((("incorrect (" + movement) + ")movement-: fig=") + figure) + " side=") + side) + " mtype=") + movetype))
101105 else true
102106 if (iscorrect2)
103107 then {
104108 let old = game[8]
105109 let new = ((take(old, ((fromx * 3) + ((fromy * 8) * 3))) + "00") + takeRight(old, ((191 - ((fromx * 3) + ((fromy * 8) * 3))) - 2)))
106110 let newsituation = (((take(new, ((tox * 3) + ((toy * 8) * 3))) + side) + figure) + takeRight(new, ((191 - ((tox * 3) + ((toy * 8) * 3))) - 2)))
107111 $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")])
108112 }
109113 else throw(((((("impossible movement: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
110114 }
111115 else throw("Strict value is not equal to itself.")
112116 }
113117 else throw("Strict value is not equal to itself.")
114118 }
115119 else throw("Strict value is not equal to itself.")
116120 }
117121 else throw("Strict value is not equal to itself.")
118122 }
119123 else throw("Strict value is not equal to itself.")
120124 }
121125 else throw("Strict value is not equal to itself.")
122126 }
123127 else throw("Strict value is not equal to itself.")
124128 }
125129 else throw("Strict value is not equal to itself.")
126130 }
127131
128132
129133
130134 @Callable(i)
131135 func startgame (challengeid) = {
132136 let pmt = if ((size(i.payments) == 1))
133137 then i.payments[0]
134138 else throw("must stake some waves")
135139 if (isDefined(pmt.assetId))
136140 then throw("works with waves only")
137141 else {
138142 let callerAdress = toBase58String(i.caller.bytes)
139143 let conditions = split(getStringValue(("challenge-" + challengeid)), separ)
140144 if ((size(conditions) > 0))
141145 then if ((pmt.amount >= parseIntValue(conditions[3])))
142146 then if ((conditions[0] == "awaiting"))
143147 then {
144148 let black = if ((conditions[2] == "b"))
145149 then conditions[1]
146150 else callerAdress
147151 let white = if ((conditions[2] == "w"))
148152 then conditions[1]
149153 else callerAdress
150154 let gameid = toString((parseIntValue(getStringValue("lastgameid")) + 1))
151155 [StringEntry(("challenge-" + challengeid), makeString([gameid, conditions[1], conditions[2], conditions[3], callerAdress], separ)), {
152156 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"
153157 StringEntry(("game-" + gameid), makeString(["ongoing", white, black, conditions[3], "0", "w", "startblock", "laststepblock", situation], separ))
154158 }, StringEntry("lastgameid", gameid), ScriptTransfer(i.caller, (pmt.amount - parseIntValue(conditions[3])), unit)]
155159 }
156160 else throw("no challenge awaiting")
157161 else throw("need more money")
158162 else throw("no challenge")
159163 }
160164 }
161165
162166
163167
164168 @Callable(i)
165169 func setchallenge (side) = if (if ((side == "b"))
166170 then true
167171 else (side == "w"))
168172 then {
169173 let pmt = if ((size(i.payments) == 1))
170174 then i.payments[0]
171175 else throw("must stake some waves")
172176 if (isDefined(pmt.assetId))
173177 then throw("works with waves only")
174178 else {
175179 let callerAdress = toBase58String(i.caller.bytes)
176180 let challengeid = toString((parseIntValue(getStringValue("lastchallengeid")) + 1))
177181 [StringEntry(("challenge-" + challengeid), makeString(["awaiting", callerAdress, side, toString(pmt.amount)], separ)), StringEntry("lastchallengeid", challengeid)]
178182 }
179183 }
180184 else throw("invalid side")
181185
182186
183187
184188 @Callable(i)
185189 func unsetchallenge (challendgeid) = {
186190 let callerAdress = toBase58String(i.caller.bytes)
187191 func getchallenge (challendgeid) = match getString(("challenge-" + challendgeid)) {
188192 case a: String =>
189193 getStringValue(("challenge-" + challendgeid))
190194 case _ =>
191195 ""
192196 }
193197
194198 let challenge = split(getchallenge(challendgeid), separ)
195199 if ((size(challenge) > 0))
196200 then if ((challenge[0] == "awaiting"))
197201 then [StringEntry(("challenge-" + challendgeid), makeString(["unset", challenge[1], challenge[2], challenge[3]], separ))]
198202 else throw("challenge not exists")
199203 else throw("challenge not exists")
200204 }
201205
202206

github/deemru/w8io/026f985 
34.53 ms