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