tx · EaWJayQ2T8nPBHeSnC662Upk2oHrQ8uV61TZEhzrKzLi 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV: -0.01000000 Waves 2021.12.09 12:41 [1826539] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves
{ "type": 13, "id": "EaWJayQ2T8nPBHeSnC662Upk2oHrQ8uV61TZEhzrKzLi", "fee": 1000000, "feeAssetId": null, "timestamp": 1639042931353, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "5gP5yatgtk3N3qwv9mhgwkTk77Mba6bJFLhVjjbpC497AFoU3H1RhyUS5ydyGXx648PsYWfua5MHAAcaB7TMGJWu" ], "script": "base64:AAIFAAAAAAAAAB4IAhIAEgASBwoFCAEBAQESAwoBCBIDCgEIEgMKAQgAAAABAAAAAAVzZXBhcgIAAAABfAAAAAYAAAABaQEAAAAFcmVzZXQAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACmxhc3RnYW1laWQCAAAAATAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAPbGFzdGNoYWxsZW5nZWlkAgAAAAEwBQAAAANuaWwAAAABaQEAAAAIc2V0cnVsZXMAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZisCAAAACC0xLDF8MSwxCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZi0CAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARtd2YrAgAAAAotMSwtMXwxLC0xCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG13Zi0CAAAAAAUAAAADbmlsAAAAAWkBAAAABG1vdmUAAAAFAAAABmdhbWVpZAAAAAVmcm9teAAAAA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": 1826539, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J339H9oFSgHpBGdPrcdySWAFHA8yuHW6ywEPVWgD8NFm Next: 6uTDkUhMpVeGZbgZARoroVirW27CTgRyCZC8wUztKXCm Diff:
Old | New | Differences | |
---|---|---|---|
68 | 68 | then { | |
69 | 69 | let old = game[8] | |
70 | 70 | let new = ((take(old, ((fromx * 3) + ((fromy * 8) * 3))) + "00") + takeRight(old, ((191 - ((fromx * 3) + ((fromy * 8) * 3))) - 2))) | |
71 | - | let newsituation = new | |
71 | + | let newsituation = (((take(new, ((tox * 3) + ((toy * 8) * 3))) + side) + figure) + takeRight(new, ((191 - ((tox * 3) + ((toy * 8) * 3))) - 2))) | |
72 | 72 | $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")]) | |
73 | 73 | } | |
74 | 74 | else throw(((((("impossible movement: fig=" + figure) + " side=") + side) + " mtype=") + movetype)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let separ = "|" | |
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func reset () = [StringEntry("lastgameid", "0"), StringEntry("lastchallengeid", "0")] | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | ||
11 | 11 | @Callable(i) | |
12 | 12 | func setrules () = [StringEntry("mbf+", "-1,1|1,1"), StringEntry("mbf-", ""), StringEntry("mwf+", "-1,-1|1,-1"), StringEntry("mwf-", "")] | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | ||
16 | 16 | @Callable(i) | |
17 | 17 | func move (gameid,fromx,fromy,tox,toy) = { | |
18 | 18 | let game = split(getStringValue(("game-" + gameid)), separ) | |
19 | 19 | if ((game == game)) | |
20 | 20 | then { | |
21 | 21 | let callerAdress = toBase58String(i.caller.bytes) | |
22 | 22 | if ((callerAdress == callerAdress)) | |
23 | 23 | then { | |
24 | 24 | let isgame = if ((game[0] == "ongoing")) | |
25 | 25 | then true | |
26 | 26 | else throw("not ongoing game") | |
27 | 27 | if ((isgame == isgame)) | |
28 | 28 | then { | |
29 | 29 | let side = if (if (isgame) | |
30 | 30 | then if ((game[1] == callerAdress)) | |
31 | 31 | then true | |
32 | 32 | else (game[2] == callerAdress) | |
33 | 33 | else false) | |
34 | 34 | then if ((game[1] == callerAdress)) | |
35 | 35 | then "w" | |
36 | 36 | else "b" | |
37 | 37 | else throw("not gamer") | |
38 | 38 | if ((side == side)) | |
39 | 39 | then { | |
40 | 40 | let otherside = if ((side == "w")) | |
41 | 41 | then "b" | |
42 | 42 | else "w" | |
43 | 43 | let turn = if ((side == game[5])) | |
44 | 44 | then true | |
45 | 45 | else throw("not your turn") | |
46 | 46 | if ((turn == turn)) | |
47 | 47 | then { | |
48 | 48 | let situation = split(game[8], "!") | |
49 | 49 | 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], "-")] | |
50 | 50 | if ((cells == cells)) | |
51 | 51 | then { | |
52 | 52 | let figure = takeRight(cells[fromy][fromx], 1) | |
53 | 53 | let movetype = if ((take(cells[toy][tox], 1) == "0")) | |
54 | 54 | then "m" | |
55 | 55 | else if ((take(cells[toy][tox], 1) == otherside)) | |
56 | 56 | then "e" | |
57 | 57 | else throw("can not eat himself") | |
58 | 58 | let movement = ((toString((fromx - tox)) + ",") + toString((fromy - toy))) | |
59 | 59 | let possible = split(getStringValue((((movetype + side) + figure) + "+")), "|") | |
60 | 60 | let impossible = split(getStringValue((((movetype + side) + figure) + "-")), "|") | |
61 | 61 | let iscorrect1 = if (containsElement(possible, movement)) | |
62 | 62 | then true | |
63 | 63 | else throw(((((("incorrect movement+: fig=" + figure) + " side=") + side) + " mtype=") + movetype)) | |
64 | 64 | let iscorrect2 = if (containsElement(impossible, movement)) | |
65 | 65 | then throw(((((("incorrect movement-: fig=" + figure) + " side=") + side) + " mtype=") + movetype)) | |
66 | 66 | else true | |
67 | 67 | if (iscorrect2) | |
68 | 68 | then { | |
69 | 69 | let old = game[8] | |
70 | 70 | let new = ((take(old, ((fromx * 3) + ((fromy * 8) * 3))) + "00") + takeRight(old, ((191 - ((fromx * 3) + ((fromy * 8) * 3))) - 2))) | |
71 | - | let newsituation = new | |
71 | + | let newsituation = (((take(new, ((tox * 3) + ((toy * 8) * 3))) + side) + figure) + takeRight(new, ((191 - ((tox * 3) + ((toy * 8) * 3))) - 2))) | |
72 | 72 | $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")]) | |
73 | 73 | } | |
74 | 74 | else throw(((((("impossible movement: fig=" + figure) + " side=") + side) + " mtype=") + movetype)) | |
75 | 75 | } | |
76 | 76 | else throw("Strict value is not equal to itself.") | |
77 | 77 | } | |
78 | 78 | else throw("Strict value is not equal to itself.") | |
79 | 79 | } | |
80 | 80 | else throw("Strict value is not equal to itself.") | |
81 | 81 | } | |
82 | 82 | else throw("Strict value is not equal to itself.") | |
83 | 83 | } | |
84 | 84 | else throw("Strict value is not equal to itself.") | |
85 | 85 | } | |
86 | 86 | else throw("Strict value is not equal to itself.") | |
87 | 87 | } | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | ||
91 | 91 | @Callable(i) | |
92 | 92 | func startgame (challengeid) = { | |
93 | 93 | let pmt = if ((size(i.payments) == 1)) | |
94 | 94 | then i.payments[0] | |
95 | 95 | else throw("must stake some waves") | |
96 | 96 | if (isDefined(pmt.assetId)) | |
97 | 97 | then throw("works with waves only") | |
98 | 98 | else { | |
99 | 99 | let callerAdress = toBase58String(i.caller.bytes) | |
100 | 100 | let conditions = split(getStringValue(("challenge-" + challengeid)), separ) | |
101 | 101 | if ((size(conditions) > 0)) | |
102 | 102 | then if ((pmt.amount >= parseIntValue(conditions[3]))) | |
103 | 103 | then if ((conditions[0] == "awaiting")) | |
104 | 104 | then { | |
105 | 105 | let black = if ((conditions[2] == "b")) | |
106 | 106 | then conditions[1] | |
107 | 107 | else callerAdress | |
108 | 108 | let white = if ((conditions[2] == "w")) | |
109 | 109 | then conditions[1] | |
110 | 110 | else callerAdress | |
111 | 111 | let gameid = toString((parseIntValue(getStringValue("lastgameid")) + 1)) | |
112 | 112 | [StringEntry(("challenge-" + challengeid), makeString([gameid, conditions[1], conditions[2], conditions[3], callerAdress], separ)), { | |
113 | 113 | 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" | |
114 | 114 | StringEntry(("game-" + gameid), makeString(["ongoing", white, black, conditions[3], "0", "w", "startblock", "laststepblock", situation], separ)) | |
115 | 115 | }, StringEntry("lastgameid", gameid), ScriptTransfer(i.caller, (pmt.amount - parseIntValue(conditions[3])), unit)] | |
116 | 116 | } | |
117 | 117 | else throw("no challenge awaiting") | |
118 | 118 | else throw("need more money") | |
119 | 119 | else throw("no challenge") | |
120 | 120 | } | |
121 | 121 | } | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | ||
125 | 125 | @Callable(i) | |
126 | 126 | func setchallenge (side) = if (if ((side == "b")) | |
127 | 127 | then true | |
128 | 128 | else (side == "w")) | |
129 | 129 | then { | |
130 | 130 | let pmt = if ((size(i.payments) == 1)) | |
131 | 131 | then i.payments[0] | |
132 | 132 | else throw("must stake some waves") | |
133 | 133 | if (isDefined(pmt.assetId)) | |
134 | 134 | then throw("works with waves only") | |
135 | 135 | else { | |
136 | 136 | let callerAdress = toBase58String(i.caller.bytes) | |
137 | 137 | let challengeid = toString((parseIntValue(getStringValue("lastchallengeid")) + 1)) | |
138 | 138 | [StringEntry(("challenge-" + challengeid), makeString(["awaiting", callerAdress, side, toString(pmt.amount)], separ)), StringEntry("lastchallengeid", challengeid)] | |
139 | 139 | } | |
140 | 140 | } | |
141 | 141 | else throw("invalid side") | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | ||
145 | 145 | @Callable(i) | |
146 | 146 | func unsetchallenge (challendgeid) = { | |
147 | 147 | let callerAdress = toBase58String(i.caller.bytes) | |
148 | 148 | func getchallenge (challendgeid) = match getString(("challenge-" + challendgeid)) { | |
149 | 149 | case a: String => | |
150 | 150 | getStringValue(("challenge-" + challendgeid)) | |
151 | 151 | case _ => | |
152 | 152 | "" | |
153 | 153 | } | |
154 | 154 | ||
155 | 155 | let challenge = split(getchallenge(challendgeid), separ) | |
156 | 156 | if ((size(challenge) > 0)) | |
157 | 157 | then if ((challenge[0] == "awaiting")) | |
158 | 158 | then [StringEntry(("challenge-" + challendgeid), makeString(["unset", challenge[1], challenge[2], challenge[3]], separ))] | |
159 | 159 | else throw("challenge not exists") | |
160 | 160 | else throw("challenge not exists") | |
161 | 161 | } | |
162 | 162 | ||
163 | 163 |
github/deemru/w8io/026f985 36.37 ms ◑