tx · 4nHxZQ3UfobEBWG4J1G6AdFNzxdQGDpZzwAK36Rp8X51

3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV:  -0.01000000 Waves

2021.12.09 12:14 [1826510] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves

{ "type": 13, "id": "4nHxZQ3UfobEBWG4J1G6AdFNzxdQGDpZzwAK36Rp8X51", "fee": 1000000, "feeAssetId": null, "timestamp": 1639041269632, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "5A71PGAbYSduzdPrro6G2c1frHowwLdWFaTFU1LQMEA3CuabrLEajaZXi73LC4Nf1DfFjaX5apzrUhHafABVFUZ6" ], "script": "base64:AAIFAAAAAAAAAB4IAhIAEgASBwoFCAEBAQESAwoBCBIDCgEIEgMKAQgAAAABAAAAAAVzZXBhcgIAAAABfAAAAAYAAAABaQEAAAAFcmVzZXQAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACmxhc3RnYW1laWQCAAAAATAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAPbGFzdGNoYWxsZW5nZWlkAgAAAAEwBQAAAANuaWwAAAABaQEAAAAIc2V0cnVsZXMAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZisCAAAACC0xLDF8MSwxCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZi0CAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARtd2YrAgAAAAotMSwtMXwxLC0xCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG13Zi0CAAAAAAUAAAADbmlsAAAAAWkBAAAABG1vdmUAAAAFAAAABmdhbWVpZAAAAAVmcm9teAAA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2hhbGxlbmdlIG5vdCBleGlzdHMAAAAAjgsyBA==", "height": 1826510, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7S7NtJghHTsf57urr7r3XUgGTpWaTv9tEoyfj72pvMHT Next: J339H9oFSgHpBGdPrcdySWAFHA8yuHW6ywEPVWgD8NFm Diff:
OldNewDifferences
5757 else throw("can not eat himself")
5858 let movement = ((toString((fromx - tox)) + ",") + toString((fromy - toy)))
5959 let possible = split(getStringValue((((movetype + side) + figure) + "+")), "|")
60- let iscorrect = if (containsElement(possible, movement))
60+ let impossible = split(getStringValue((((movetype + side) + figure) + "-")), "|")
61+ let iscorrect1 = if (containsElement(possible, movement))
6162 then true
62- else throw(((((("incorrect movement: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
63- if (iscorrect)
64- then [StringEntry("_", "possible")]
63+ else throw(((((("incorrect movement+: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
64+ let iscorrect2 = if (containsElement(impossible, movement))
65+ then throw(((((("incorrect movement-: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
66+ else true
67+ let line0 = makeString([cells[0][0], cells[0][1], cells[0][2], cells[0][3], cells[0][4], cells[0][5], cells[0][6], cells[0][7]], "-")
68+ let line1 = makeString([cells[1][0], cells[1][1], cells[1][2], cells[1][3], cells[1][4], cells[1][5], cells[1][6], cells[1][7]], "-")
69+ let line2 = makeString([cells[2][0], cells[2][1], cells[2][2], cells[2][3], cells[2][4], cells[2][5], cells[2][6], cells[2][7]], "-")
70+ let newsituation = makeString([line0, line1, line2], "!")
71+ if (iscorrect2)
72+ then $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")])
6573 else throw(((((("impossible movement: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
6674 }
6775 else throw("Strict value is not equal to itself.")
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("mwf+", "-1,-1|1,-1"), StringEntry("mwf-", "")]
1313
1414
1515
1616 @Callable(i)
1717 func move (gameid,fromx,fromy,tox,toy) = {
1818 let game = split(getStringValue(("game-" + gameid)), separ)
1919 if ((game == game))
2020 then {
2121 let callerAdress = toBase58String(i.caller.bytes)
2222 if ((callerAdress == callerAdress))
2323 then {
2424 let isgame = if ((game[0] == "ongoing"))
2525 then true
2626 else throw("not ongoing game")
2727 if ((isgame == isgame))
2828 then {
2929 let side = if (if (isgame)
3030 then if ((game[1] == callerAdress))
3131 then true
3232 else (game[2] == callerAdress)
3333 else false)
3434 then if ((game[1] == callerAdress))
3535 then "w"
3636 else "b"
3737 else throw("not gamer")
3838 if ((side == side))
3939 then {
4040 let otherside = if ((side == "w"))
4141 then "b"
4242 else "w"
4343 let turn = if ((side == game[5]))
4444 then true
4545 else throw("not your turn")
4646 if ((turn == turn))
4747 then {
4848 let situation = split(game[8], "!")
4949 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], "-")]
5050 if ((cells == cells))
5151 then {
5252 let figure = takeRight(cells[fromy][fromx], 1)
5353 let movetype = if ((take(cells[toy][tox], 1) == "0"))
5454 then "m"
5555 else if ((take(cells[toy][tox], 1) == otherside))
5656 then "e"
5757 else throw("can not eat himself")
5858 let movement = ((toString((fromx - tox)) + ",") + toString((fromy - toy)))
5959 let possible = split(getStringValue((((movetype + side) + figure) + "+")), "|")
60- let iscorrect = if (containsElement(possible, movement))
60+ let impossible = split(getStringValue((((movetype + side) + figure) + "-")), "|")
61+ let iscorrect1 = if (containsElement(possible, movement))
6162 then true
62- else throw(((((("incorrect movement: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
63- if (iscorrect)
64- then [StringEntry("_", "possible")]
63+ else throw(((((("incorrect movement+: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
64+ let iscorrect2 = if (containsElement(impossible, movement))
65+ then throw(((((("incorrect movement-: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
66+ else true
67+ let line0 = makeString([cells[0][0], cells[0][1], cells[0][2], cells[0][3], cells[0][4], cells[0][5], cells[0][6], cells[0][7]], "-")
68+ let line1 = makeString([cells[1][0], cells[1][1], cells[1][2], cells[1][3], cells[1][4], cells[1][5], cells[1][6], cells[1][7]], "-")
69+ let line2 = makeString([cells[2][0], cells[2][1], cells[2][2], cells[2][3], cells[2][4], cells[2][5], cells[2][6], cells[2][7]], "-")
70+ let newsituation = makeString([line0, line1, line2], "!")
71+ if (iscorrect2)
72+ then $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")])
6573 else throw(((((("impossible movement: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
6674 }
6775 else throw("Strict value is not equal to itself.")
6876 }
6977 else throw("Strict value is not equal to itself.")
7078 }
7179 else throw("Strict value is not equal to itself.")
7280 }
7381 else throw("Strict value is not equal to itself.")
7482 }
7583 else throw("Strict value is not equal to itself.")
7684 }
7785 else throw("Strict value is not equal to itself.")
7886 }
7987
8088
8189
8290 @Callable(i)
8391 func startgame (challengeid) = {
8492 let pmt = if ((size(i.payments) == 1))
8593 then i.payments[0]
8694 else throw("must stake some waves")
8795 if (isDefined(pmt.assetId))
8896 then throw("works with waves only")
8997 else {
9098 let callerAdress = toBase58String(i.caller.bytes)
9199 let conditions = split(getStringValue(("challenge-" + challengeid)), separ)
92100 if ((size(conditions) > 0))
93101 then if ((pmt.amount >= parseIntValue(conditions[3])))
94102 then if ((conditions[0] == "awaiting"))
95103 then {
96104 let black = if ((conditions[2] == "b"))
97105 then conditions[1]
98106 else callerAdress
99107 let white = if ((conditions[2] == "w"))
100108 then conditions[1]
101109 else callerAdress
102110 let gameid = toString((parseIntValue(getStringValue("lastgameid")) + 1))
103111 [StringEntry(("challenge-" + challengeid), makeString([gameid, conditions[1], conditions[2], conditions[3], callerAdress], separ)), {
104112 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"
105113 StringEntry(("game-" + gameid), makeString(["ongoing", white, black, conditions[3], "0", "w", "startblock", "laststepblock", situation], separ))
106114 }, StringEntry("lastgameid", gameid), ScriptTransfer(i.caller, (pmt.amount - parseIntValue(conditions[3])), unit)]
107115 }
108116 else throw("no challenge awaiting")
109117 else throw("need more money")
110118 else throw("no challenge")
111119 }
112120 }
113121
114122
115123
116124 @Callable(i)
117125 func setchallenge (side) = if (if ((side == "b"))
118126 then true
119127 else (side == "w"))
120128 then {
121129 let pmt = if ((size(i.payments) == 1))
122130 then i.payments[0]
123131 else throw("must stake some waves")
124132 if (isDefined(pmt.assetId))
125133 then throw("works with waves only")
126134 else {
127135 let callerAdress = toBase58String(i.caller.bytes)
128136 let challengeid = toString((parseIntValue(getStringValue("lastchallengeid")) + 1))
129137 [StringEntry(("challenge-" + challengeid), makeString(["awaiting", callerAdress, side, toString(pmt.amount)], separ)), StringEntry("lastchallengeid", challengeid)]
130138 }
131139 }
132140 else throw("invalid side")
133141
134142
135143
136144 @Callable(i)
137145 func unsetchallenge (challendgeid) = {
138146 let callerAdress = toBase58String(i.caller.bytes)
139147 func getchallenge (challendgeid) = match getString(("challenge-" + challendgeid)) {
140148 case a: String =>
141149 getStringValue(("challenge-" + challendgeid))
142150 case _ =>
143151 ""
144152 }
145153
146154 let challenge = split(getchallenge(challendgeid), separ)
147155 if ((size(challenge) > 0))
148156 then if ((challenge[0] == "awaiting"))
149157 then [StringEntry(("challenge-" + challendgeid), makeString(["unset", challenge[1], challenge[2], challenge[3]], separ))]
150158 else throw("challenge not exists")
151159 else throw("challenge not exists")
152160 }
153161
154162

github/deemru/w8io/169f3d6 
32.08 ms