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:AAIFAAAAAAAAAB4IAhIAEgASBwoFCAEBAQESAwoBCBIDCgEIEgMKAQgAAAABAAAAAAVzZXBhcgIAAAABfAAAAAYAAAABaQEAAAAFcmVzZXQAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACmxhc3RnYW1laWQCAAAAATAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAPbGFzdGNoYWxsZW5nZWlkAgAAAAEwBQAAAANuaWwAAAABaQEAAAAIc2V0cnVsZXMAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZisCAAAACC0xLDF8MSwxCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZi0CAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARlYmYrAgAAAAgtMiwyfDIsMgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARlYmYtAgAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAEbXdmKwIAAAAKLTEs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YXRjaDAJAAQiAAAAAQkAASwAAAACAgAAAApjaGFsbGVuZ2UtBQAAAAxjaGFsbGVuZGdlaWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAkBAAAAEUBleHRyTmF0aXZlKDEwNTgpAAAAAQkAASwAAAACAgAAAApjaGFsbGVuZ2UtBQAAAAxjaGFsbGVuZGdlaWQCAAAAAAQAAAAJY2hhbGxlbmdlCQAEtQAAAAIJAQAAAAxnZXRjaGFsbGVuZ2UAAAABBQAAAAxjaGFsbGVuZGdlaWQFAAAABXNlcGFyAwkAAGYAAAACCQABkAAAAAEFAAAACWNoYWxsZW5nZQAAAAAAAAAAAAMJAAAAAAAAAgkAAZEAAAACBQAAAAljaGFsbGVuZ2UAAAAAAAAAAAACAAAACGF3YWl0aW5nCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgIAAAAKY2hhbGxlbmdlLQUAAAAMY2hhbGxlbmRnZWlkCQAEuQAAAAIJAARMAAAAAgIAAAAFdW5zZXQJAARMAAAAAgkAAZEAAAACBQAAAAljaGFsbGVuZ2UAAAAAAAAAAAEJAARMAAAAAgkAAZEAAAACBQAAAAljaGFsbGVuZ2UAAAAAAAAAAAIJAARMAAAAAgkAAZEAAAACBQAAAAljaGFsbGVuZ2UAAAAAAAAAAAMFAAAAA25pbAUAAAAFc2VwYXIFAAAAA25pbAkAAAIAAAABAgAAABRjaGFsbGVuZ2Ugbm90IGV4aXN0cwkAAAIAAAABAgAAABRjaGFsbGVuZ2Ugbm90IGV4aXN0cwAAAABwHNmp", "height": 1827848, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8Po4rDdVunXM2U9LgEephc4QP6CyoZ3ze5AQXyypHMs8 Next: 458vRSJz4koZT2bixGQ1kbnvEN9H1KCBMdjdnbE7YSZ8 Diff:
Old | New | Differences | |
---|---|---|---|
81 | 81 | else false | |
82 | 82 | else false) | |
83 | 83 | 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) | |
85 | 87 | then "e" | |
86 | 88 | else throw("can not eat himself") | |
87 | 89 | let movement = ((toString((fromx - tox)) + ",") + toString((fromy - toy))) |
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("ebf+", "-2,2|2,2"), StringEntry("ebf-", ""), StringEntry("mwf+", "-1,-1|1,-1"), StringEntry("mwf-", ""), StringEntry("ewf+", "-2,-2|2,-2"), StringEntry("ewf-", "")] | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | ||
16 | 16 | @Callable(i) | |
17 | 17 | func move (gameid,fromx,fromy,tox,toy) = { | |
18 | 18 | let game = match getString(("game-" + gameid)) { | |
19 | 19 | case a: String => | |
20 | 20 | split(getStringValue(("game-" + gameid)), separ) | |
21 | 21 | case _ => | |
22 | 22 | throw("no game") | |
23 | 23 | } | |
24 | 24 | if ((game == game)) | |
25 | 25 | then { | |
26 | 26 | let correctxy = if (if (if (if ((fromx > -1)) | |
27 | 27 | then (tox > -1) | |
28 | 28 | else false) | |
29 | 29 | then (8 > fromy) | |
30 | 30 | else false) | |
31 | 31 | then (8 > toy) | |
32 | 32 | else false) | |
33 | 33 | then true | |
34 | 34 | else throw("incorrect xy") | |
35 | 35 | if ((correctxy == correctxy)) | |
36 | 36 | then { | |
37 | 37 | let callerAdress = toBase58String(i.caller.bytes) | |
38 | 38 | if ((callerAdress == callerAdress)) | |
39 | 39 | then { | |
40 | 40 | let isgame = if ((game[0] == "ongoing")) | |
41 | 41 | then true | |
42 | 42 | else throw("not ongoing game") | |
43 | 43 | if ((isgame == isgame)) | |
44 | 44 | then { | |
45 | 45 | let side = if (if (isgame) | |
46 | 46 | then if ((game[1] == callerAdress)) | |
47 | 47 | then true | |
48 | 48 | else (game[2] == callerAdress) | |
49 | 49 | else false) | |
50 | 50 | then if ((game[1] == callerAdress)) | |
51 | 51 | then "w" | |
52 | 52 | else "b" | |
53 | 53 | else throw("not gamer") | |
54 | 54 | if ((side == side)) | |
55 | 55 | then { | |
56 | 56 | let otherside = if ((side == "w")) | |
57 | 57 | then "b" | |
58 | 58 | else "w" | |
59 | 59 | let turn = if ((side == game[5])) | |
60 | 60 | then true | |
61 | 61 | else throw("not your turn") | |
62 | 62 | if ((turn == turn)) | |
63 | 63 | then { | |
64 | 64 | let situation = split(game[8], "!") | |
65 | 65 | 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], "-")] | |
66 | 66 | if ((cells == cells)) | |
67 | 67 | then { | |
68 | 68 | let figure = if ((takeRight(cells[fromy][fromx], 1) == "0")) | |
69 | 69 | then throw("empty cell") | |
70 | 70 | else takeRight(cells[fromy][fromx], 1) | |
71 | 71 | let isfreecell = if ((cells[toy][tox] == "00")) | |
72 | 72 | then true | |
73 | 73 | else throw("cell not free") | |
74 | 74 | if ((isfreecell == isfreecell)) | |
75 | 75 | then { | |
76 | 76 | let movetype = if (if (if ((((toy - fromy) * (toy - fromy)) == 1)) | |
77 | 77 | then (figure == "f") | |
78 | 78 | else false) | |
79 | 79 | then if ((((toy - fromy) * (toy - fromy)) > 1)) | |
80 | 80 | then (figure == "d") | |
81 | 81 | else false | |
82 | 82 | else false) | |
83 | 83 | 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) | |
85 | 87 | then "e" | |
86 | 88 | else throw("can not eat himself") | |
87 | 89 | let movement = ((toString((fromx - tox)) + ",") + toString((fromy - toy))) | |
88 | 90 | let possible = match getString((((movetype + side) + figure) + "+")) { | |
89 | 91 | case a: String => | |
90 | 92 | split(getStringValue((((movetype + side) + figure) + "+")), "|") | |
91 | 93 | case _ => | |
92 | 94 | throw((((("no rules for " + movetype) + side) + figure) + "+")) | |
93 | 95 | } | |
94 | 96 | let impossible = match getString((((movetype + side) + figure) + "-")) { | |
95 | 97 | case a: String => | |
96 | 98 | split(getStringValue((((movetype + side) + figure) + "-")), "|") | |
97 | 99 | case _ => | |
98 | 100 | throw((((("no rules for " + movetype) + side) + figure) + "-")) | |
99 | 101 | } | |
100 | 102 | let iscorrect1 = if (containsElement(possible, movement)) | |
101 | 103 | then true | |
102 | 104 | else throw(((((("incorrect movement+: fig=" + figure) + " side=") + side) + " mtype=") + movetype)) | |
103 | 105 | let iscorrect2 = if (containsElement(impossible, movement)) | |
104 | 106 | then throw(((((((("incorrect (" + movement) + ")movement-: fig=") + figure) + " side=") + side) + " mtype=") + movetype)) | |
105 | 107 | else true | |
106 | 108 | if (iscorrect2) | |
107 | 109 | then { | |
108 | 110 | let old = game[8] | |
109 | 111 | let new = ((take(old, ((fromx * 3) + ((fromy * 8) * 3))) + "00") + takeRight(old, ((191 - ((fromx * 3) + ((fromy * 8) * 3))) - 2))) | |
110 | 112 | let newsituation = (((take(new, ((tox * 3) + ((toy * 8) * 3))) + side) + figure) + takeRight(new, ((191 - ((tox * 3) + ((toy * 8) * 3))) - 2))) | |
111 | 113 | $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")]) | |
112 | 114 | } | |
113 | 115 | else throw(((((("impossible movement: fig=" + figure) + " side=") + side) + " mtype=") + movetype)) | |
114 | 116 | } | |
115 | 117 | else throw("Strict value is not equal to itself.") | |
116 | 118 | } | |
117 | 119 | else throw("Strict value is not equal to itself.") | |
118 | 120 | } | |
119 | 121 | else throw("Strict value is not equal to itself.") | |
120 | 122 | } | |
121 | 123 | else throw("Strict value is not equal to itself.") | |
122 | 124 | } | |
123 | 125 | else throw("Strict value is not equal to itself.") | |
124 | 126 | } | |
125 | 127 | else throw("Strict value is not equal to itself.") | |
126 | 128 | } | |
127 | 129 | else throw("Strict value is not equal to itself.") | |
128 | 130 | } | |
129 | 131 | else throw("Strict value is not equal to itself.") | |
130 | 132 | } | |
131 | 133 | ||
132 | 134 | ||
133 | 135 | ||
134 | 136 | @Callable(i) | |
135 | 137 | func startgame (challengeid) = { | |
136 | 138 | let pmt = if ((size(i.payments) == 1)) | |
137 | 139 | then i.payments[0] | |
138 | 140 | else throw("must stake some waves") | |
139 | 141 | if (isDefined(pmt.assetId)) | |
140 | 142 | then throw("works with waves only") | |
141 | 143 | else { | |
142 | 144 | let callerAdress = toBase58String(i.caller.bytes) | |
143 | 145 | let conditions = split(getStringValue(("challenge-" + challengeid)), separ) | |
144 | 146 | if ((size(conditions) > 0)) | |
145 | 147 | then if ((pmt.amount >= parseIntValue(conditions[3]))) | |
146 | 148 | then if ((conditions[0] == "awaiting")) | |
147 | 149 | then { | |
148 | 150 | let black = if ((conditions[2] == "b")) | |
149 | 151 | then conditions[1] | |
150 | 152 | else callerAdress | |
151 | 153 | let white = if ((conditions[2] == "w")) | |
152 | 154 | then conditions[1] | |
153 | 155 | else callerAdress | |
154 | 156 | let gameid = toString((parseIntValue(getStringValue("lastgameid")) + 1)) | |
155 | 157 | [StringEntry(("challenge-" + challengeid), makeString([gameid, conditions[1], conditions[2], conditions[3], callerAdress], separ)), { | |
156 | 158 | 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" | |
157 | 159 | StringEntry(("game-" + gameid), makeString(["ongoing", white, black, conditions[3], "0", "w", "startblock", "laststepblock", situation], separ)) | |
158 | 160 | }, StringEntry("lastgameid", gameid), ScriptTransfer(i.caller, (pmt.amount - parseIntValue(conditions[3])), unit)] | |
159 | 161 | } | |
160 | 162 | else throw("no challenge awaiting") | |
161 | 163 | else throw("need more money") | |
162 | 164 | else throw("no challenge") | |
163 | 165 | } | |
164 | 166 | } | |
165 | 167 | ||
166 | 168 | ||
167 | 169 | ||
168 | 170 | @Callable(i) | |
169 | 171 | func setchallenge (side) = if (if ((side == "b")) | |
170 | 172 | then true | |
171 | 173 | else (side == "w")) | |
172 | 174 | then { | |
173 | 175 | let pmt = if ((size(i.payments) == 1)) | |
174 | 176 | then i.payments[0] | |
175 | 177 | else throw("must stake some waves") | |
176 | 178 | if (isDefined(pmt.assetId)) | |
177 | 179 | then throw("works with waves only") | |
178 | 180 | else { | |
179 | 181 | let callerAdress = toBase58String(i.caller.bytes) | |
180 | 182 | let challengeid = toString((parseIntValue(getStringValue("lastchallengeid")) + 1)) | |
181 | 183 | [StringEntry(("challenge-" + challengeid), makeString(["awaiting", callerAdress, side, toString(pmt.amount)], separ)), StringEntry("lastchallengeid", challengeid)] | |
182 | 184 | } | |
183 | 185 | } | |
184 | 186 | else throw("invalid side") | |
185 | 187 | ||
186 | 188 | ||
187 | 189 | ||
188 | 190 | @Callable(i) | |
189 | 191 | func unsetchallenge (challendgeid) = { | |
190 | 192 | let callerAdress = toBase58String(i.caller.bytes) | |
191 | 193 | func getchallenge (challendgeid) = match getString(("challenge-" + challendgeid)) { | |
192 | 194 | case a: String => | |
193 | 195 | getStringValue(("challenge-" + challendgeid)) | |
194 | 196 | case _ => | |
195 | 197 | "" | |
196 | 198 | } | |
197 | 199 | ||
198 | 200 | let challenge = split(getchallenge(challendgeid), separ) | |
199 | 201 | if ((size(challenge) > 0)) | |
200 | 202 | then if ((challenge[0] == "awaiting")) | |
201 | 203 | then [StringEntry(("challenge-" + challendgeid), makeString(["unset", challenge[1], challenge[2], challenge[3]], separ))] | |
202 | 204 | else throw("challenge not exists") | |
203 | 205 | else throw("challenge not exists") | |
204 | 206 | } | |
205 | 207 | ||
206 | 208 |
github/deemru/w8io/026f985 35.27 ms ◑