-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcardSet.py
470 lines (466 loc) · 17.3 KB
/
cardSet.py
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
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
# A CardSet object contains information about a set of Pokemon cards
# This can be changed to work for any card set, but currently the values of the Evolutions set are hard coded in
class CardSet:
def __init__(self):
# List of the names of cards in the Evolutions Set
self.cardnamelist = ("Venusaur EX", # 001 Venusar EX
"M Venusaur EX",
"Caterpie",
"Metapod",
"Weedle",
"Kakuna",
"Beedrill",
"Tangela",
"Charmander",
"Charmeleon",
"Charizard", # 011 Charizard
"Charizard EX",
"M Charizard EX",
"Vulpix",
"Ninetales",
"Ninetales BREAK",
"Growlithe",
"Arcanine",
"Ponyta",
"Magmar",
"Blastoise EX", # 021 Blastoise
"M Blastoise EX",
"Poliwag",
"Poliwhirl",
"Poliwrath",
"Slowbro EX",
"M Slowbro EX",
"Seel",
"Dewgong",
"Staryu",
"Starmie", # 031 Starmie
"Starmie BREAK",
"Magikarp",
"Gyarados",
"Pikachu",
"Raichu",
"Magnemite",
"Magneton",
"Voltorb",
"Electrode",
"Electabuzz", # 041 Electabuzz
"Zapdos",
"Nidoran ♂",
"Nidorino",
"Nidoking",
"Nidoking BREAK",
"Gastly",
"Haunter",
"Drowzee",
"Koffing",
"Mewtwo", # 051 Mewtwo
"Mewtwo EX",
"Mew",
"Sandshrew",
"Diglett",
"Dugtrio",
"Machop",
"Machoke",
"Machamp",
"Machamp BREAK",
"Onix", # 061 Onix
"Hitmonchan",
"Clefairy",
"Pidgeot EX",
"M Pidgeot EX",
"Rattata",
"Raticate",
"Farfetch'd",
"Doduo",
"Chansey",
"Porygon", # 071 Porygon
"Dragonite EX",
"Blastoise Spirit Link",
"Brock's Grit",
"Charizard Spirit Link",
"Devolution Spray",
"Energy Retrieval",
"Full Heal",
"Maintenance",
"Misty's Determination",
"Pidgeot Spirit Link", # 081 Pidgeot Spirit Link
"Pokedex",
"Potion",
"Professor Oak's Hint",
"Revive",
"Slowbro Spirit Link",
"Super Potion",
"Switch",
"Venusaur Spirit Link",
"Double Colorless Energy",
"Grass Energy", # 091 Grass Energy
"Fire Energy",
"Water Energy",
"Electric Energy",
"Psychic Energy",
"Fighting Energy",
"Dark Energy",
"Metal Energy",
"Fairy Energy",
"M Venusaur EX",
"M Charizard EX", # 101 M Charizard EX
"M Blastoise EX",
"Mewtwo EX",
"Pidgeot EX",
"M Pidgeot EX",
"Dragonite EX",
"Brock's Grit",
"Misty's Determination",
"Exeggutor",
"Flying Pikachu",
"Surfing Pikachu", # 111 Surfing Pikachu
"Imakuni?'s Doduo",
"Here Comes Team Rocket!")
# List of every card's respective Pokemon. Trainer & energy cards are stored as 'NA'
self.pokemonlist = ("Venusaur", # 001 Venusaur EX
"Mega Venusaur",
"Caterpie",
"Metapod",
"Weedle",
"Kakuna",
"Beedrill",
"Tangela",
"Charmander",
"Charmeleon",
"Charizard", # 011 Charizard
"Charizard",
"Mega Charizard",
"Vulpix",
"Ninetales",
"Ninetales",
"Growlithe",
"Arcanine",
"Ponyta",
"Magmar",
"Blastoise", # 021 Blastoise EX
"Mega Blastoise",
"Poliwag",
"Poliwhirl",
"Poliwrath",
"Slowbro",
"Mega Slowbro",
"Seel",
"Dewgong",
"Staryu",
"Starmie", # 031 Starmie
"Starmie",
"Magikarp",
"Gyarados",
"Pikachu",
"Raichu",
"Magnemite",
"Magneton",
"Voltorb",
"Electrode",
"Electabuzz", # 041 Electabuzz
"Zapdos",
"Nidoran ♂",
"Nidorino",
"Nidoking",
"Nidoking",
"Gastly",
"Haunter",
"Drowzee",
"Koffing",
"Mewtwo", # 051 Mewtwo
"Mewtwo",
"Mew",
"Sandshrew",
"Diglett",
"Dugtrio",
"Machop",
"Machoke",
"Machamp",
"Machamp",
"Onix", # 061 Onix
"Hitmonchan",
"Clefairy",
"Pidgeot",
"Mega Pidgeot",
"Rattata",
"Raticate",
"Farfetch'd",
"Doduo",
"Chansey",
"Porygon", # 071 Porygon
"Dragonite",
"NA",
"NA",
"NA",
"NA",
"NA",
"NA",
"NA",
"NA",
"NA", # 081 Pidgeot Spirit Link
"NA",
"NA",
"NA",
"NA",
"NA",
"NA",
"NA",
"NA",
"NA",
"NA", # 091 Grass Energy
"NA",
"NA",
"NA",
"NA",
"NA",
"NA",
"NA",
"NA",
"Mega Venusaur",
"Mega Charizard", # 101 M Charizard EX
"Mega Blastoise",
"Mewtwo",
"Pidgeot",
"Mega Pidgeot",
"Dragonite",
"NA",
"NA",
"Exeggutor",
"Flying Pikachu",
"Surfing Pikachu", # 111 Surfing Pikachu
"Imakuni?'s Doduo",
"NA")
# List of the rarity of each card in the Evolutions set
self.rarity = ( # Regular Pokemon
"EX Rare", # 001 Venusar EX
"EX Rare",
"Common",
"Uncommon",
"Common",
"Uncommon",
"Rare",
"Common",
"Common",
"Uncommon",
"Holo Rare", # 011 Charizard
"EX Rare",
"EX Rare",
"Common",
"Holo Rare",
"Break Rare",
"Common",
"Rare",
"Common",
"Uncommon",
"EX Rare", # 021 Blastoise EX
"EX Rare",
"Common",
"Uncommon",
"Holo Rare",
"EX Rare",
"EX Rare",
"Common",
"Rare",
"Common",
"Rare", # 031 Starmie
"Break Rare",
"Common",
"Holo Rare",
"Common",
"Holo Rare",
"Common",
"Rare Holo",
"Common",
"Rare",
"Common", # 041 Electabuzz
"Holo Rare",
"Common",
"Uncommon",
"Holo Rare",
"Break Rare",
"Common",
"Uncommon",
"Common",
"Uncommon",
"Rare", # 051 Mewtwo
"EX Rare",
"Holo Rare",
"Common",
"Common",
"Rare",
"Common",
"Uncommon",
"Holo Rare",
"Break Rare",
"Common", # 061 Onix
"Holo Rare",
"Holo Rare",
"EX Rare",
"EX Rare",
"Common",
"Rare",
"Rare",
"Common",
"Holo Rare",
"Uncommon", # 071 Porygon
"EX Rare",
# Trainer cards
"Uncommon",
"Uncommon",
"Uncommon",
"Uncommon",
"Uncommon",
"Uncommon",
"Uncommon",
"Uncommon",
"Uncommon", # 081 Pidgeot Spirit Link
"Uncommon",
"Uncommon",
"Uncommon",
"Uncommon",
"Uncommon",
"Uncommon",
"Uncommon",
"Uncommon",
# Energies
"Common",
"Common", # 091 Grass Engery
"Common",
"Common",
"Common",
"Common",
"Common",
"Common",
"Common",
"Common",
# Full arts
"Ultra Rare",
"Ultra Rare", # 101 M Charizard EX
"Ultra Rare",
"Ultra Rare",
"Ultra Rare",
"Ultra Rare",
"Ultra Rare",
"Ultra Rare",
"Ultra Rare",
# Secret rares
"Secret Rare",
"Secret Rare",
"Secret Rare", # 111 Surfing Pikachu
"Secret Rare",
"Secret Rare")
# List of the card type of each card in the Evolutions set
self.cardtype = ("Pokemon", # 001 Venusaur EX
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon", # 011 Charizard
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon", # 021 Blastoise EX
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon", # 031 Starmie
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon", # 041 Electabuzz
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon", # 051 Mewtwo
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon", # 061 Onix
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon", # 071 Porygon
"Pokemon",
"Trainer Item",
"Trainer Supporter",
"Trainer Item",
"Trainer Item",
"Trainer Item",
"Trainer Item",
"Trainer Item",
"Trainer Supporter",
"Trainer Item", # 081 Pidgeot Spirit Link
"Trainer Item",
"Trainer Item",
"Trainer Supporter",
"Trainer Item",
"Trainer Item",
"Trainer Item",
"Trainer Item",
"Trainer Item",
"Energy",
"Energy", # 091 Grass Energy
"Energy",
"Energy",
"Energy",
"Energy",
"Energy",
"Energy",
"Energy",
"Energy",
"Pokemon",
"Pokemon", # 101 M Charizard EX
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Pokemon",
"Trainer Supporter",
"Trainer Supporter",
"Pokemon",
"Pokemon",
"Pokemon", # 111 Surfing Pikachu
"Pokemon",
"Trainer Supporter")
self.numCards = len(self.cardnamelist) # Number of cards in the Evolutions set