-
Notifications
You must be signed in to change notification settings - Fork 14
/
unit_test.bat
305 lines (276 loc) · 12.8 KB
/
unit_test.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
@echo on
tu_optimize "Barracus, Terraformer(2)" "Alaric, Vigil(5)" -e "Enfeeble 2" -v sim 1000
@echo off
echo === Expected ===
echo win%: 100 (1000 / 1000)
echo stall%: 0 (0 / 1000)
echo loss%: 0 (0 / 1000)
echo.
@echo on
tu_optimize "Typhon Vex, Sphinxite" "Alaric, Zodiac Harbinger" -v sim 1000
@echo off
echo === Expected ===
echo win%: 100 (1000 / 1000)
echo stall%: 0 (0 / 1000)
echo loss%: 0 (0 / 1000)
echo.
@echo on
tu_optimize "Constantine, Zodiac Harbinger" "Constantine, Bolt Crag" -e "Rally 2" -v sim 1000
@echo off
echo === Expected ===
echo win%: 0 (0 / 1000)
echo stall%: 100 (1000 / 1000)
echo loss%: 0 (0 / 1000)
echo.
@echo on
tu_optimize "Constantine, Zodiac Harbinger" "Constantine, Bolt Crag" -e "Rally 3" -v sim 1000
@echo off
echo === Expected ===
echo win%: 100 (1000 / 1000)
echo stall%: 0 (0 / 1000)
echo loss%: 0 (0 / 1000)
echo.
@echo on
tu_optimize "Cyrus, Bolt Crag(5)" "Barracus, Mephalus Gorge(2), Noble Defiance" -v -e "Corrosive 3" sim 10000
@echo off
echo === Expected ===
echo win%: 33.08 (3308 / 10000)
echo stall%: 0 (0 / 10000)
echo loss%: 66.92 (6692 / 10000)
echo.
@echo on
tu_optimize "Cyrus, Bolt Crag(5)" "Barracus, Mephalus Gorge(2), Noble Defiance" -v sim 10000
@echo off
echo === Expected ===
echo win%: 66.33 (6633 / 10000)
echo stall%: 0 (0 / 10000)
echo loss%: 33.67 (3367 / 10000)
echo.
@echo on
tu_optimize "Dracorex, Defiler(3)" "Halcyon-4, Executioner(4)" -e "Strike 1" -v sim 10000
@echo off
echo === Expected ===
echo win%: 0.09 (9 / 10000)
echo stall%: 99.91 (9991 / 10000)
echo loss%: 0 (0 / 10000)
echo.
@echo on
tu_optimize SoHS-HE+i-H6 Rastax -v sim 10000
@echo off
echo === Expected ===
echo win%: 50.13 (5013 / 10000)
echo stall%: 5.43 (543 / 10000)
echo loss%: 44.44 (4444 / 10000)
echo.
@echo on
tu_optimize So-BQ-BW-LB-LTO6-GViC SokU-DV-Dn-IA-Iw+j-LB-MJ-Mf ordered -v yf "Minefield(2)" ef "Tesla Coil, Forcefield" sim 10000
@echo off
echo === Expected ===
echo win%: 43.74 (4374 / 10000)
echo stall%: 3.22 (322 / 10000)
echo loss%: 53.04 (5304 / 10000)
echo.
@echo on
tu_optimize So-Iq-SI-MJ-Ss-LBO6-GV-LT example_group ordered -v sim 10000
@echo off
echo === Expected ===
echo win%: 75.538 (561 9302 / 10000)
echo stall%: 0.188 (94 0 / 10000)
echo loss%: 24.274 (9345 698 / 10000)
echo.
@echo on
tu_optimize.exe "Nex, Apex(10)" "Obama, SF(5)" -e "Strike 2" sim 10000
@echo off
echo === Expected ===
echo Your Deck: [S0CC+q] Nexor, Apex, Apex, Apex, Apex, Apex, Apex, Apex, Apex, Apex, Apex
echo Enemy's Deck: [SoO6+l] Barracus, Starformer, Starformer, Starformer, Starformer, Starformer
echo Effect: Strike 2
echo win%: 20.07 (2007 / 10000)
echo stall%: 0.04 (4 / 10000)
echo loss%: 79.89 (7989 / 10000)
echo.
@echo on
tu_optimize So-Iq-SI-MJ-Ss-LBO6-GV-LT GT125k ordered sim 1000
@echo off
echo === Expected ===
echo Filtering user defined decks with regular expression: ^GT12Sk\d\d$
echo Match: Custom Deck #61 "GT12Sk01": Barracus-6, Noxious Tank-6, Spiteful Raptor-6, Deranged Malgoth-6, Spiteful Raptor-6, Tazerecca-6, Entrails Bog-6, Omniphet-6, Xeno Suzerain-6, Spiteful Raptor-6, Sculpted Aegis-6
echo Match: Custom Deck #62 "GT12Sk02": Halcyon-6, Indestructible Troop-6, Indestructible Troop-6, Neocyte Resonator-6, Neocyte Resonator-6, Omniphet-6, Garrison Fortifier-6, Agrius Maximus-6, Galereaver-6, Flux Station-6, Arthurian Monarch-6
echo Match: Custom Deck #63 "GT12Sk03": Barracus-6, Narscious the Eerie-6, Warp Alchemist-6, Narscious the Eerie-6, Warp Alchemist-6, Bolt Crag-6, Sacred Sanctuary-6, Lord Hades-6, Mawnage-6, Noble Defiance-6
echo Match: Custom Deck #64 "GT12Sk04": Halcyon-6, Galereaver-6, Galereaver-6, Neocyte Resonator-6, Galereaver-6, Neocyte Resonator-6, Galereaver-6, Agrius Maximus-6, Galereaver-6, Agrius Maximus-6, Galereaver-6
echo Match: Custom Deck #65 "GT12Sk05": Barracus-6, Charincinerator-6, Heart Devourer-6, Heart Devourer-6, Heart Devourer-6, Remote Rig-6, Heart Devourer-6, Loaded Warehouse-6, Heart Devourer-6, Heart Devourer-6, Heart Devourer-6
echo Match: Custom Deck #66 "GT12Sk06": Barracus-6, Narscious the Eerie-6, Warp Alchemist-6, Narscious the Eerie-6, Warp Alchemist-6, Sacred Sanctuary-6, Heart Devourer-6, Loaded Warehouse-6, Charincinerator-6, Heart Devourer-6, Charincinerator-6
echo Match: Custom Deck #67 "GT12Sk07": Alaric-6, Flash Deity-6, Bolt Crag-6, Flash Deity-6, Heart Devourer-6, Noble Defiance-6, Sacred Sanctuary-6, Noble Defiance-6, Pure Benediction-6, Pure Benediction-6, Shining Sanctuary-6
echo Match: Custom Deck #68 "GT12Sk08": Barracus-6, Narscious the Eerie-6, Warp Alchemist-6, Narscious the Eerie-6, Warp Alchemist-6, Narscious the Eerie-6, Vicious Borg-6, Charincinerator-6, Vicious Borg-6, Charincinerator-6, Sacred Sanctuary-6
echo Match: Custom Deck #69 "GT12Sk09": Barracus-6, Narscious the Eerie-6, Charincinerator-6, Omega Nexus-6, Agrius Maximus-6, Agrius Maximus-6, Sacred Sanctuary-6, Valence-6, Sacred Sanctuary-6, Tazerecca-6, Ayrkrane Vik-6
echo Match: Custom Deck #70 "GT12Sk10": Alaric-6, Charincinerator-6, Charincinerator-6, Heart Devourer-6, Flash Deity-6, Noble Defiance-6, Noble Defiance-6, Grand Templar-6, Noble Defiance-6, Noble Defiance-6, Mawnage-6
echo Match: Custom Deck #71 "GT12Sk11": Nexor-6, Heart Devourer-6, Noxious Tank-6, Tartarus Obelisk-6, Rift Awakener-6, Xeno Suzerain-6, Tazerecca-6, Lord Hades-6, Noble Defiance-6, Sacred Sanctuary-6, Grand Templar-6
echo Match: Custom Deck #72 "GT12Sk12": Barracus-6, Narscious the Eerie-6, Warp Alchemist-6, Bolt Crag-6, Noxious Tank-6, Noble Defiance-6, Noble Defiance-6, Tazerecca-6, Xeno Suzerain-6, Sacred Sanctuary-6, Sculpted Aegis-6
echo Your Deck: [So-Iq-SI-MJ-Ss-LBO6-GV-LT] Barracus, Noble Defiance, Auger Bore, Xeno Suzerain, Grizrael the Reaper, Tazerecca, Starformer, Ayrkrane Vik, Mach Jet
echo Enemy's Deck: [SokU-DV-Dn-IA-Iw+j-LB-MJ-Mf] Barracus, Noxious Tank, Spiteful Raptor, Deranged Malgoth, Spiteful Raptor, Tazerecca, Entrails Bog, Omniphet, Xeno Suzerain, Spiteful Raptor, Sculpted Aegis
echo Enemy's Deck: [QEis+il2-CG-Cr-Ez+i-FT-Mf-QB] Halcyon, Indestructible Troop, Indestructible Troop, Neocyte Resonator, Neocyte Resonator, Omniphet, Garrison Fortifier, Agrius Maximus, Galereaver, Flux Station, Arthurian Monarch
echo Enemy's Deck: [SokO-B6-Ck-F9-Iq-KF+i-Of+i] Barracus, Narscious the Eerie, Warp Alchemist, Narscious the Eerie, Warp Alchemist, Bolt Crag, Sacred Sanctuary, Lord Hades, Mawnage, Noble Defiance
echo Enemy's Deck: [QEis+i-Cr+i-QB+m] Halcyon, Galereaver, Galereaver, Neocyte Resonator, Galereaver, Neocyte Resonator, Galereaver, Agrius Maximus, Galereaver, Agrius Maximus, Galereaver
echo Enemy's Deck: [Soksmt-Ce-FZ+n] Barracus, Charincinerator, Heart Devourer, Heart Devourer, Heart Devourer, Remote Rig, Heart Devourer, Loaded Warehouse, Heart Devourer, Heart Devourer, Heart Devourer
echo Enemy's Deck: [SokOmt-Ce+i-FZ+i-KF+i-Of+i] Barracus, Narscious the Eerie, Warp Alchemist, Narscious the Eerie, Warp Alchemist, Sacred Sanctuary, Heart Devourer, Loaded Warehouse, Charincinerator, Heart Devourer, Charincinerator
echo Enemy's Deck: [REiCkO-C3+i-Dh+i-FZ-F9-Iq+i] Alaric, Flash Deity, Bolt Crag, Flash Deity, Heart Devourer, Noble Defiance, Sacred Sanctuary, Noble Defiance, Pure Benediction, Pure Benediction, Shining Sanctuary
echo Enemy's Deck: [SokO-CA+i-Ce+i-KF+j-Of+i] Barracus, Narscious the Eerie, Warp Alchemist, Narscious the Eerie, Warp Alchemist, Narscious the Eerie, Vicious Borg, Charincinerator, Vicious Borg, Charincinerator, Sacred Sanctuary
echo Enemy's Deck: [SoPGkO+i-Ce-Cr+i-DP-GV-KF-LB] Barracus, Narscious the Eerie, Charincinerator, Omega Nexus, Agrius Maximus, Agrius Maximus, Sacred Sanctuary, Valence, Sacred Sanctuary, Tazerecca, Ayrkrane Vik
echo Enemy's Deck: [RE-B0-Ce+i-Ck-C3-FZ-Iq+k] Alaric, Charincinerator, Charincinerator, Heart Devourer, Flash Deity, Noble Defiance, Noble Defiance, Grand Templar, Noble Defiance, Noble Defiance, Mawnage
echo Enemy's Deck: [S0iakO-B0-B6-Cx-FZ-IA-Iq-LB-MJ] Nexor, Heart Devourer, Noxious Tank, Tartarus Obelisk, Rift Awakener, Xeno Suzerain, Tazerecca, Lord Hades, Noble Defiance, Sacred Sanctuary, Grand Templar
echo Enemy's Deck: [SokO-Dn-F9-IA-Iq+i-KF-LB-MJ-Of] Barracus, Narscious the Eerie, Warp Alchemist, Bolt Crag, Noxious Tank, Noble Defiance, Noble Defiance, Tazerecca, Xeno Suzerain, Sacred Sanctuary, Sculpted Aegis
echo win%: 72.9083 (992 911 549 852 725 439 793 202 753 843 935 755 / 1000)
echo stall%: 0.1 (1 0 2 2 0 1 0 3 1 1 0 1 / 1000)
echo loss%: 26.9917 (7 89 449 146 275 560 207 795 246 156 65 244 / 1000)
echo.
@echo on
tu_optimize.exe "Halcyon-1, Nimbus-4" "Halcyon, Nimbus-4" sim 10000
@echo off
echo === Expected ===
echo Your Deck: [P/Ad] Halcyon-1, Nimbus-4
echo Enemy's Deck: [QEAd] Halcyon, Nimbus-4
echo win%: 0 (0 / 10)
echo stall%: 0 (0 / 10)
echo loss%: 100 (10000 / 10000)
echo.
@echo on
tu_optimize "Constantine, Eviscerator Noz(4)" "Alaric, Noble Defiance(2)" -v sim 10000
@echo off
echo === Expected ===
echo win%: 9.13 (913 / 10000)
echo stall%: 2.29 (229 / 10000)
echo loss%: 88.58 (8858 / 10000)
echo.
@echo on
tu_optimize.exe "Barracus, Starformer(2)" "Constantine, Vigil(10)" -v -e "Poison 2" sim 10000
@echo off
echo === Expected ===
echo win%: 99.75 (9975 / 10000)
echo stall%: 0.07 (7 / 10000)
echo loss%: 0.18 (18 / 10000)
echo.
@echo on
tu_optimize.exe "Nex, Apex(10)" "Obama, SF(5)" -v -e "Leech 3" sim 10000
@echo off
echo === Expected ===
echo win%: 22.30 (2230 / 10000)
echo stall%: 1.05 (105 / 10000)
echo loss%: 76.64 (7664 / 10000)
echo.
@echo on
tu_optimize "Alaric, Vigil(5)" "Obama, Terraformer(5)" -v -e "Heal 1" sim 10000
@echo off
echo === Expected ===
echo win%: 98.55 (9855 / 10000)
echo stall%: 1.39 (139 / 10000)
echo loss%: 0.06 (6 / 10000)
echo.
@echo on
tu_optimize "Alaric, Blitz(6)" "Barracus, Apex" -v -e "Evade 1" sim 10000
@echo off
echo === Expected ===
echo win%: 100 (10000 / 10000)
echo stall%: 0 (0 / 10000)
echo loss%: 0 (0 / 10000)
echo.
@echo on
tu_optimize "Alaric, Vigil(4)" "Halcyon, Windreaver(5)" -v -e "Counter 1" sim 10000
@echo off
echo === Expected ===
echo win%: 25.08 (2508 / 10000)
echo stall%: 1.29 (129 / 10000)
echo loss%: 73.63 (7363 / 10000)
echo.
@echo on
tu_optimize "Vex, HA(5)" "Halcyon, Galereaver(3)" -v -e "Berserk 3" sim 10000
@echo off
echo === Expected ===
echo win%: 11.92 (1192 / 10000)
echo stall%: 15.05 (1505 / 10000)
echo loss%: 73.03 (7303 / 10000)
echo.
@echo on
tu_optimize "Alaric, Vigil(3)" "Obama, Apex(5)" -v -e "Armor 2" sim 10000
@echo off
echo === Expected ===
echo win%: 73.12 (7312 / 10000)
echo stall%: 25.31 (2531 / 10000)
echo loss%: 1.57 (157 / 10000)
echo.
@echo on
tu_optimize "Barracus, Noble Defiance, Xeno Suzerain, Starformer" Heimdal ordered -v sim 10000
@echo off
echo === Expected ===
echo win%: 59.73 (5973 / 10000)
echo stall%: 17.21 (1721 / 10000)
echo loss%: 23.06 (2306 / 10000)
echo.
@echo on
tu_optimize.exe "Alaric, Revolver(3)" "Halcyon, Barrage Tank(3)" -v sim 10000
@echo off
echo === Expected ===
echo win%: 99.572 (9957 / 10000)
echo stall%: 0 (0 / 100000)
echo loss%: 0.428 (43 / 10000)
echo.
@echo on
tu_optimize.exe "Nex, Tazerecca(4)" "Halcyon, Tikalan(3)" -v sim 10000
@echo off
echo === Expected ===
echo win%: 67.752 (67752 / 100000)
echo stall%: 0.213 (213 / 100000)
echo loss%: 32.035 (32035 / 100000)
echo.
@echo on
tu_optimize.exe "Nex, Apex(10)" "Obama, SF(5)" -v sim 10000
@echo off
echo echo === Expected ===
echo win%: 24.19 (2419 / 10000)
echo stall%: 0.75 (75 / 10000)
echo loss%: 75.06 (7506 / 10000)
echo.
@echo on
tu_optimize.exe "Obama, Rabid Corruptor(10)" "Yurich,Dread Panzer-1(3)" -v sim 10000
@echo off
echo === Expected ===
echo win%: 2.168 (2168 / 100000)
echo stall%: 97.832 (97832 / 100000)
echo loss%: 0 (0 / 100000)
echo.
@echo on
tu_optimize.exe "Pet,HA(10)" "Obama, SF(5)" -v sim 10000
@echo off
echo === Expected ===
echo win%: 21.37 (2137 / 10000)
echo stall%: 21.35 (2135 / 10000)
echo loss%: 57.28 (5728 / 10000)
echo.
@echo on
tu_optimize.exe "Barracus-6, Starformer-6" "Constantine-6, Pylon-3(6)" -v sim 10000
@echo off
echo === Expected ===
echo win%: 43.463 (43463 / 100000)
echo stall%: 43.914 (43914 / 100000)
echo loss%: 12.623 (12623 / 100000)
echo.
@echo on
tu_optimize.exe "Cyrus-1, Starformer-6" "Constantine-6, Pylon-3(2)" -v sim 10000
@echo off
echo === Expected ===
echo win%: 68.75 (6875 / 10000)
echo stall%: 31.25 (3125 / 10000)
echo loss%: 0 (0 / 10000)
echo.
@echo on
tu_optimize mydeck "mydeck;mydeck" yf "Sky Fortress(2)" ef "Minefield(2)" sim 10000
@echo off
echo === Expected ===
echo Your Fortress Cards: Sky Fortress, Sky Fortress
echo Enemy's Fortress Cards: Minefield, Minefield
echo Your Deck: [SoO6iC-BQ-BW-GV-LB-LT] Barracus, Crushing Anvil, Tartarus Brood, Tazerecca, Mach Jet, Starformer, Ayrkrane Vik, Shining Sanctuary
echo Enemy's Deck: [SoO6iC-BQ-BW-GV-LB-LT] Barracus, Crushing Anvil, Tartarus Brood, Tazerecca, Mach Jet, Starformer, Ayrkrane Vik, Shining Sanctuary
echo Enemy's Deck: [SoO6iC-BQ-BW-GV-LB-LT] Barracus, Crushing Anvil, Tartarus Brood, Tazerecca, Mach Jet, Starformer, Ayrkrane Vik, Shining Sanctuary
echo win%: 83.63 (8353 8373 / 10000)
echo stall%: 0.48 (44 52 / 10000)
echo loss%: 15.89 (1603 1575 / 10000)
echo.