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:AAIFAAAAAAAAAB4IAhIAEgASBwoFCAEBAQESAwoBCBIDCgEIEgMKAQgAAAABAAAAAAVzZXBhcgIAAAABfAAAAAYAAAABaQEAAAAFcmVzZXQAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACmxhc3RnYW1laWQCAAAAATAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAPbGFzdGNoYWxsZW5nZWlkAgAAAAEwBQAAAANuaWwAAAABaQEAAAAIc2V0cnVsZXMAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZisCAAAACC0xLDF8MSwxCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZi0CAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARlYmYrAgAAAAgtMiwyfDIsMgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARlYmYtAgAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAEbXdmKwIAAAAKLTEsLT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AAAAKY2hhbGxlbmdlLQUAAAAMY2hhbGxlbmRnZWlkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAJAQAAABFAZXh0ck5hdGl2ZSgxMDU4KQAAAAEJAAEsAAAAAgIAAAAKY2hhbGxlbmdlLQUAAAAMY2hhbGxlbmRnZWlkAgAAAAAEAAAACWNoYWxsZW5nZQkABLUAAAACCQEAAAAMZ2V0Y2hhbGxlbmdlAAAAAQUAAAAMY2hhbGxlbmRnZWlkBQAAAAVzZXBhcgMJAABmAAAAAgkAAZAAAAABBQAAAAljaGFsbGVuZ2UAAAAAAAAAAAADCQAAAAAAAAIJAAGRAAAAAgUAAAAJY2hhbGxlbmdlAAAAAAAAAAAAAgAAAAhhd2FpdGluZwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAACmNoYWxsZW5nZS0FAAAADGNoYWxsZW5kZ2VpZAkABLkAAAACCQAETAAAAAICAAAABXVuc2V0CQAETAAAAAIJAAGRAAAAAgUAAAAJY2hhbGxlbmdlAAAAAAAAAAABCQAETAAAAAIJAAGRAAAAAgUAAAAJY2hhbGxlbmdlAAAAAAAAAAACCQAETAAAAAIJAAGRAAAAAgUAAAAJY2hhbGxlbmdlAAAAAAAAAAADBQAAAANuaWwFAAAABXNlcGFyBQAAAANuaWwJAAACAAAAAQIAAAAUY2hhbGxlbmdlIG5vdCBleGlzdHMJAAACAAAAAQIAAAAUY2hhbGxlbmdlIG5vdCBleGlzdHMAAAAA3xw6Hg==", "height": 1827803, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B1Z39kB2bum2xZJ4eYEu7ptrhNLBovzm38Ls8v44aPLm Next: EJ1AGYAymM9NfzEV3JZuWgvbsjxdYAeC5doRFDPUreyd Diff:
Old | New | Differences | |
---|---|---|---|
9 | 9 | ||
10 | 10 | ||
11 | 11 | @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-", "")] | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | ||
73 | 73 | else throw("cell not free") | |
74 | 74 | if ((isfreecell == isfreecell)) | |
75 | 75 | then { | |
76 | - | let movetype = if (if ((((toy - fromy) * (toy - fromy)) == 1)) | |
76 | + | let movetype = if (if (if ((((toy - fromy) * (toy - fromy)) == 1)) | |
77 | 77 | then (figure == "f") | |
78 | + | else false) | |
79 | + | then if ((((toy - fromy) * (toy - fromy)) > 1)) | |
80 | + | then (figure == "d") | |
81 | + | else false | |
78 | 82 | else false) | |
79 | 83 | then "m" | |
80 | 84 | else if ((take(cells[toy][tox], 1) == otherside)) |
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 | - | 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-", "")] | |
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 | - | let movetype = if (if ((((toy - fromy) * (toy - fromy)) == 1)) | |
76 | + | let movetype = if (if (if ((((toy - fromy) * (toy - fromy)) == 1)) | |
77 | 77 | then (figure == "f") | |
78 | + | else false) | |
79 | + | then if ((((toy - fromy) * (toy - fromy)) > 1)) | |
80 | + | then (figure == "d") | |
81 | + | else false | |
78 | 82 | else false) | |
79 | 83 | then "m" | |
80 | 84 | else if ((take(cells[toy][tox], 1) == otherside)) | |
81 | 85 | then "e" | |
82 | 86 | else throw("can not eat himself") | |
83 | 87 | let movement = ((toString((fromx - tox)) + ",") + toString((fromy - toy))) | |
84 | 88 | let possible = match getString((((movetype + side) + figure) + "+")) { | |
85 | 89 | case a: String => | |
86 | 90 | split(getStringValue((((movetype + side) + figure) + "+")), "|") | |
87 | 91 | case _ => | |
88 | 92 | throw((((("no rules for " + movetype) + side) + figure) + "+")) | |
89 | 93 | } | |
90 | 94 | let impossible = match getString((((movetype + side) + figure) + "-")) { | |
91 | 95 | case a: String => | |
92 | 96 | split(getStringValue((((movetype + side) + figure) + "-")), "|") | |
93 | 97 | case _ => | |
94 | 98 | throw((((("no rules for " + movetype) + side) + figure) + "-")) | |
95 | 99 | } | |
96 | 100 | let iscorrect1 = if (containsElement(possible, movement)) | |
97 | 101 | then true | |
98 | 102 | else throw(((((("incorrect movement+: fig=" + figure) + " side=") + side) + " mtype=") + movetype)) | |
99 | 103 | let iscorrect2 = if (containsElement(impossible, movement)) | |
100 | 104 | then throw(((((((("incorrect (" + movement) + ")movement-: fig=") + figure) + " side=") + side) + " mtype=") + movetype)) | |
101 | 105 | else true | |
102 | 106 | if (iscorrect2) | |
103 | 107 | then { | |
104 | 108 | let old = game[8] | |
105 | 109 | let new = ((take(old, ((fromx * 3) + ((fromy * 8) * 3))) + "00") + takeRight(old, ((191 - ((fromx * 3) + ((fromy * 8) * 3))) - 2))) | |
106 | 110 | let newsituation = (((take(new, ((tox * 3) + ((toy * 8) * 3))) + side) + figure) + takeRight(new, ((191 - ((tox * 3) + ((toy * 8) * 3))) - 2))) | |
107 | 111 | $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 | 112 | } | |
109 | 113 | else throw(((((("impossible movement: fig=" + figure) + " side=") + side) + " mtype=") + movetype)) | |
110 | 114 | } | |
111 | 115 | else throw("Strict value is not equal to itself.") | |
112 | 116 | } | |
113 | 117 | else throw("Strict value is not equal to itself.") | |
114 | 118 | } | |
115 | 119 | else throw("Strict value is not equal to itself.") | |
116 | 120 | } | |
117 | 121 | else throw("Strict value is not equal to itself.") | |
118 | 122 | } | |
119 | 123 | else throw("Strict value is not equal to itself.") | |
120 | 124 | } | |
121 | 125 | else throw("Strict value is not equal to itself.") | |
122 | 126 | } | |
123 | 127 | else throw("Strict value is not equal to itself.") | |
124 | 128 | } | |
125 | 129 | else throw("Strict value is not equal to itself.") | |
126 | 130 | } | |
127 | 131 | ||
128 | 132 | ||
129 | 133 | ||
130 | 134 | @Callable(i) | |
131 | 135 | func startgame (challengeid) = { | |
132 | 136 | let pmt = if ((size(i.payments) == 1)) | |
133 | 137 | then i.payments[0] | |
134 | 138 | else throw("must stake some waves") | |
135 | 139 | if (isDefined(pmt.assetId)) | |
136 | 140 | then throw("works with waves only") | |
137 | 141 | else { | |
138 | 142 | let callerAdress = toBase58String(i.caller.bytes) | |
139 | 143 | let conditions = split(getStringValue(("challenge-" + challengeid)), separ) | |
140 | 144 | if ((size(conditions) > 0)) | |
141 | 145 | then if ((pmt.amount >= parseIntValue(conditions[3]))) | |
142 | 146 | then if ((conditions[0] == "awaiting")) | |
143 | 147 | then { | |
144 | 148 | let black = if ((conditions[2] == "b")) | |
145 | 149 | then conditions[1] | |
146 | 150 | else callerAdress | |
147 | 151 | let white = if ((conditions[2] == "w")) | |
148 | 152 | then conditions[1] | |
149 | 153 | else callerAdress | |
150 | 154 | let gameid = toString((parseIntValue(getStringValue("lastgameid")) + 1)) | |
151 | 155 | [StringEntry(("challenge-" + challengeid), makeString([gameid, conditions[1], conditions[2], conditions[3], callerAdress], separ)), { | |
152 | 156 | 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" | |
153 | 157 | StringEntry(("game-" + gameid), makeString(["ongoing", white, black, conditions[3], "0", "w", "startblock", "laststepblock", situation], separ)) | |
154 | 158 | }, StringEntry("lastgameid", gameid), ScriptTransfer(i.caller, (pmt.amount - parseIntValue(conditions[3])), unit)] | |
155 | 159 | } | |
156 | 160 | else throw("no challenge awaiting") | |
157 | 161 | else throw("need more money") | |
158 | 162 | else throw("no challenge") | |
159 | 163 | } | |
160 | 164 | } | |
161 | 165 | ||
162 | 166 | ||
163 | 167 | ||
164 | 168 | @Callable(i) | |
165 | 169 | func setchallenge (side) = if (if ((side == "b")) | |
166 | 170 | then true | |
167 | 171 | else (side == "w")) | |
168 | 172 | then { | |
169 | 173 | let pmt = if ((size(i.payments) == 1)) | |
170 | 174 | then i.payments[0] | |
171 | 175 | else throw("must stake some waves") | |
172 | 176 | if (isDefined(pmt.assetId)) | |
173 | 177 | then throw("works with waves only") | |
174 | 178 | else { | |
175 | 179 | let callerAdress = toBase58String(i.caller.bytes) | |
176 | 180 | let challengeid = toString((parseIntValue(getStringValue("lastchallengeid")) + 1)) | |
177 | 181 | [StringEntry(("challenge-" + challengeid), makeString(["awaiting", callerAdress, side, toString(pmt.amount)], separ)), StringEntry("lastchallengeid", challengeid)] | |
178 | 182 | } | |
179 | 183 | } | |
180 | 184 | else throw("invalid side") | |
181 | 185 | ||
182 | 186 | ||
183 | 187 | ||
184 | 188 | @Callable(i) | |
185 | 189 | func unsetchallenge (challendgeid) = { | |
186 | 190 | let callerAdress = toBase58String(i.caller.bytes) | |
187 | 191 | func getchallenge (challendgeid) = match getString(("challenge-" + challendgeid)) { | |
188 | 192 | case a: String => | |
189 | 193 | getStringValue(("challenge-" + challendgeid)) | |
190 | 194 | case _ => | |
191 | 195 | "" | |
192 | 196 | } | |
193 | 197 | ||
194 | 198 | let challenge = split(getchallenge(challendgeid), separ) | |
195 | 199 | if ((size(challenge) > 0)) | |
196 | 200 | then if ((challenge[0] == "awaiting")) | |
197 | 201 | then [StringEntry(("challenge-" + challendgeid), makeString(["unset", challenge[1], challenge[2], challenge[3]], separ))] | |
198 | 202 | else throw("challenge not exists") | |
199 | 203 | else throw("challenge not exists") | |
200 | 204 | } | |
201 | 205 | ||
202 | 206 |
github/deemru/w8io/026f985 34.53 ms ◑