tx · B1Z39kB2bum2xZJ4eYEu7ptrhNLBovzm38Ls8v44aPLm

3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV:  -0.01000000 Waves

2021.12.10 09:46 [1827793] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves

{ "type": 13, "id": "B1Z39kB2bum2xZJ4eYEu7ptrhNLBovzm38Ls8v44aPLm", "fee": 1000000, "feeAssetId": null, "timestamp": 1639118824741, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "bcGALz14SCLGZQkifh2gEk61Hc8NWMGFyMoFVRcmhR4mXVrHtG7j5JSupfTseYAyqfy1R3iMEJNzQ8H1ttv8vqh" ], "script": "base64:AAIFAAAAAAAAAB4IAhIAEgASBwoFCAEBAQESAwoBCBIDCgEIEgMKAQgAAAABAAAAAAVzZXBhcgIAAAABfAAAAAYAAAABaQEAAAAFcmVzZXQAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACmxhc3RnYW1laWQCAAAAATAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAPbGFzdGNoYWxsZW5nZWlkAgAAAAEwBQAAAANuaWwAAAABaQEAAAAIc2V0cnVsZXMAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZisCAAAACC0xLDF8MSwxCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZi0CAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARtd2YrAgAAAAotMSwtMXwxLC0xCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG13Zi0CAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARld2YrAgAAAAotMiwtMnw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AAljaGFsbGVuZ2UJAAS1AAAAAgkBAAAADGdldGNoYWxsZW5nZQAAAAEFAAAADGNoYWxsZW5kZ2VpZAUAAAAFc2VwYXIDCQAAZgAAAAIJAAGQAAAAAQUAAAAJY2hhbGxlbmdlAAAAAAAAAAAAAwkAAAAAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAAIAAAAIYXdhaXRpbmcJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAApjaGFsbGVuZ2UtBQAAAAxjaGFsbGVuZGdlaWQJAAS5AAAAAgkABEwAAAACAgAAAAV1bnNldAkABEwAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAQkABEwAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAgkABEwAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAwUAAAADbmlsBQAAAAVzZXBhcgUAAAADbmlsCQAAAgAAAAECAAAAFGNoYWxsZW5nZSBub3QgZXhpc3RzCQAAAgAAAAECAAAAFGNoYWxsZW5nZSBub3QgZXhpc3RzAAAAALra+R8=", "height": 1827793, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BcFUd1DTjTuieRMEXndmxq9GEeNjJ98pfK4L8gJkC6rQ Next: 8Po4rDdVunXM2U9LgEephc4QP6CyoZ3ze5AQXyypHMs8 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-", "")]
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-", "")]
1313
1414
1515
6868 let figure = if ((takeRight(cells[fromy][fromx], 1) == "0"))
6969 then throw("empty cell")
7070 else takeRight(cells[fromy][fromx], 1)
71- let movetype = if ((take(cells[toy][tox], 1) == "0"))
72- then "m"
73- else if ((take(cells[toy][tox], 1) == otherside))
74- then "e"
75- else throw("can not eat himself")
76- let movement = ((toString((fromx - tox)) + ",") + toString((fromy - toy)))
77- let possible = match getString((((movetype + side) + figure) + "+")) {
78- case a: String =>
79- split(getStringValue((((movetype + side) + figure) + "+")), "|")
80- case _ =>
81- throw((((("no rules for " + movetype) + side) + figure) + "+"))
82- }
83- let impossible = match getString((((movetype + side) + figure) + "-")) {
84- case a: String =>
85- split(getStringValue((((movetype + side) + figure) + "-")), "|")
86- case _ =>
87- throw((((("no rules for " + movetype) + side) + figure) + "-"))
88- }
89- let iscorrect1 = if (containsElement(possible, movement))
71+ let isfreecell = if ((cells[toy][tox] == "00"))
9072 then true
91- else throw(((((("incorrect movement+: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
92- let iscorrect2 = if (containsElement(impossible, movement))
93- then throw(((((((("incorrect (" + movement) + ")movement-: fig=") + figure) + " side=") + side) + " mtype=") + movetype))
94- else true
95- if (iscorrect2)
73+ else throw("cell not free")
74+ if ((isfreecell == isfreecell))
9675 then {
97- let old = game[8]
98- let new = ((take(old, ((fromx * 3) + ((fromy * 8) * 3))) + "00") + takeRight(old, ((191 - ((fromx * 3) + ((fromy * 8) * 3))) - 2)))
99- let newsituation = (((take(new, ((tox * 3) + ((toy * 8) * 3))) + side) + figure) + takeRight(new, ((191 - ((tox * 3) + ((toy * 8) * 3))) - 2)))
100- $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")])
76+ let movetype = if (if ((((toy - fromy) * (toy - fromy)) == 1))
77+ then (figure == "f")
78+ else false)
79+ then "m"
80+ else if ((take(cells[toy][tox], 1) == otherside))
81+ then "e"
82+ else throw("can not eat himself")
83+ let movement = ((toString((fromx - tox)) + ",") + toString((fromy - toy)))
84+ let possible = match getString((((movetype + side) + figure) + "+")) {
85+ case a: String =>
86+ split(getStringValue((((movetype + side) + figure) + "+")), "|")
87+ case _ =>
88+ throw((((("no rules for " + movetype) + side) + figure) + "+"))
10189 }
102- else throw(((((("impossible movement: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
90+ let impossible = match getString((((movetype + side) + figure) + "-")) {
91+ case a: String =>
92+ split(getStringValue((((movetype + side) + figure) + "-")), "|")
93+ case _ =>
94+ throw((((("no rules for " + movetype) + side) + figure) + "-"))
95+ }
96+ let iscorrect1 = if (containsElement(possible, movement))
97+ then true
98+ else throw(((((("incorrect movement+: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
99+ let iscorrect2 = if (containsElement(impossible, movement))
100+ then throw(((((((("incorrect (" + movement) + ")movement-: fig=") + figure) + " side=") + side) + " mtype=") + movetype))
101+ else true
102+ if (iscorrect2)
103+ then {
104+ let old = game[8]
105+ let new = ((take(old, ((fromx * 3) + ((fromy * 8) * 3))) + "00") + takeRight(old, ((191 - ((fromx * 3) + ((fromy * 8) * 3))) - 2)))
106+ let newsituation = (((take(new, ((tox * 3) + ((toy * 8) * 3))) + side) + figure) + takeRight(new, ((191 - ((tox * 3) + ((toy * 8) * 3))) - 2)))
107+ $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")])
108+ }
109+ else throw(((((("impossible movement: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
110+ }
111+ else throw("Strict value is not equal to itself.")
103112 }
104113 else throw("Strict value is not equal to itself.")
105114 }
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-", "")]
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-", "")]
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)
71- let movetype = if ((take(cells[toy][tox], 1) == "0"))
72- then "m"
73- else if ((take(cells[toy][tox], 1) == otherside))
74- then "e"
75- else throw("can not eat himself")
76- let movement = ((toString((fromx - tox)) + ",") + toString((fromy - toy)))
77- let possible = match getString((((movetype + side) + figure) + "+")) {
78- case a: String =>
79- split(getStringValue((((movetype + side) + figure) + "+")), "|")
80- case _ =>
81- throw((((("no rules for " + movetype) + side) + figure) + "+"))
82- }
83- let impossible = match getString((((movetype + side) + figure) + "-")) {
84- case a: String =>
85- split(getStringValue((((movetype + side) + figure) + "-")), "|")
86- case _ =>
87- throw((((("no rules for " + movetype) + side) + figure) + "-"))
88- }
89- let iscorrect1 = if (containsElement(possible, movement))
71+ let isfreecell = if ((cells[toy][tox] == "00"))
9072 then true
91- else throw(((((("incorrect movement+: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
92- let iscorrect2 = if (containsElement(impossible, movement))
93- then throw(((((((("incorrect (" + movement) + ")movement-: fig=") + figure) + " side=") + side) + " mtype=") + movetype))
94- else true
95- if (iscorrect2)
73+ else throw("cell not free")
74+ if ((isfreecell == isfreecell))
9675 then {
97- let old = game[8]
98- let new = ((take(old, ((fromx * 3) + ((fromy * 8) * 3))) + "00") + takeRight(old, ((191 - ((fromx * 3) + ((fromy * 8) * 3))) - 2)))
99- let newsituation = (((take(new, ((tox * 3) + ((toy * 8) * 3))) + side) + figure) + takeRight(new, ((191 - ((tox * 3) + ((toy * 8) * 3))) - 2)))
100- $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")])
76+ let movetype = if (if ((((toy - fromy) * (toy - fromy)) == 1))
77+ then (figure == "f")
78+ else false)
79+ then "m"
80+ else if ((take(cells[toy][tox], 1) == otherside))
81+ then "e"
82+ else throw("can not eat himself")
83+ let movement = ((toString((fromx - tox)) + ",") + toString((fromy - toy)))
84+ let possible = match getString((((movetype + side) + figure) + "+")) {
85+ case a: String =>
86+ split(getStringValue((((movetype + side) + figure) + "+")), "|")
87+ case _ =>
88+ throw((((("no rules for " + movetype) + side) + figure) + "+"))
10189 }
102- else throw(((((("impossible movement: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
90+ let impossible = match getString((((movetype + side) + figure) + "-")) {
91+ case a: String =>
92+ split(getStringValue((((movetype + side) + figure) + "-")), "|")
93+ case _ =>
94+ throw((((("no rules for " + movetype) + side) + figure) + "-"))
95+ }
96+ let iscorrect1 = if (containsElement(possible, movement))
97+ then true
98+ else throw(((((("incorrect movement+: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
99+ let iscorrect2 = if (containsElement(impossible, movement))
100+ then throw(((((((("incorrect (" + movement) + ")movement-: fig=") + figure) + " side=") + side) + " mtype=") + movetype))
101+ else true
102+ if (iscorrect2)
103+ then {
104+ let old = game[8]
105+ let new = ((take(old, ((fromx * 3) + ((fromy * 8) * 3))) + "00") + takeRight(old, ((191 - ((fromx * 3) + ((fromy * 8) * 3))) - 2)))
106+ let newsituation = (((take(new, ((tox * 3) + ((toy * 8) * 3))) + side) + figure) + takeRight(new, ((191 - ((tox * 3) + ((toy * 8) * 3))) - 2)))
107+ $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")])
108+ }
109+ else throw(((((("impossible movement: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
110+ }
111+ else throw("Strict value is not equal to itself.")
103112 }
104113 else throw("Strict value is not equal to itself.")
105114 }
106115 else throw("Strict value is not equal to itself.")
107116 }
108117 else throw("Strict value is not equal to itself.")
109118 }
110119 else throw("Strict value is not equal to itself.")
111120 }
112121 else throw("Strict value is not equal to itself.")
113122 }
114123 else throw("Strict value is not equal to itself.")
115124 }
116125 else throw("Strict value is not equal to itself.")
117126 }
118127
119128
120129
121130 @Callable(i)
122131 func startgame (challengeid) = {
123132 let pmt = if ((size(i.payments) == 1))
124133 then i.payments[0]
125134 else throw("must stake some waves")
126135 if (isDefined(pmt.assetId))
127136 then throw("works with waves only")
128137 else {
129138 let callerAdress = toBase58String(i.caller.bytes)
130139 let conditions = split(getStringValue(("challenge-" + challengeid)), separ)
131140 if ((size(conditions) > 0))
132141 then if ((pmt.amount >= parseIntValue(conditions[3])))
133142 then if ((conditions[0] == "awaiting"))
134143 then {
135144 let black = if ((conditions[2] == "b"))
136145 then conditions[1]
137146 else callerAdress
138147 let white = if ((conditions[2] == "w"))
139148 then conditions[1]
140149 else callerAdress
141150 let gameid = toString((parseIntValue(getStringValue("lastgameid")) + 1))
142151 [StringEntry(("challenge-" + challengeid), makeString([gameid, conditions[1], conditions[2], conditions[3], callerAdress], separ)), {
143152 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"
144153 StringEntry(("game-" + gameid), makeString(["ongoing", white, black, conditions[3], "0", "w", "startblock", "laststepblock", situation], separ))
145154 }, StringEntry("lastgameid", gameid), ScriptTransfer(i.caller, (pmt.amount - parseIntValue(conditions[3])), unit)]
146155 }
147156 else throw("no challenge awaiting")
148157 else throw("need more money")
149158 else throw("no challenge")
150159 }
151160 }
152161
153162
154163
155164 @Callable(i)
156165 func setchallenge (side) = if (if ((side == "b"))
157166 then true
158167 else (side == "w"))
159168 then {
160169 let pmt = if ((size(i.payments) == 1))
161170 then i.payments[0]
162171 else throw("must stake some waves")
163172 if (isDefined(pmt.assetId))
164173 then throw("works with waves only")
165174 else {
166175 let callerAdress = toBase58String(i.caller.bytes)
167176 let challengeid = toString((parseIntValue(getStringValue("lastchallengeid")) + 1))
168177 [StringEntry(("challenge-" + challengeid), makeString(["awaiting", callerAdress, side, toString(pmt.amount)], separ)), StringEntry("lastchallengeid", challengeid)]
169178 }
170179 }
171180 else throw("invalid side")
172181
173182
174183
175184 @Callable(i)
176185 func unsetchallenge (challendgeid) = {
177186 let callerAdress = toBase58String(i.caller.bytes)
178187 func getchallenge (challendgeid) = match getString(("challenge-" + challendgeid)) {
179188 case a: String =>
180189 getStringValue(("challenge-" + challendgeid))
181190 case _ =>
182191 ""
183192 }
184193
185194 let challenge = split(getchallenge(challendgeid), separ)
186195 if ((size(challenge) > 0))
187196 then if ((challenge[0] == "awaiting"))
188197 then [StringEntry(("challenge-" + challendgeid), makeString(["unset", challenge[1], challenge[2], challenge[3]], separ))]
189198 else throw("challenge not exists")
190199 else throw("challenge not exists")
191200 }
192201
193202

github/deemru/w8io/169f3d6 
50.32 ms