-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeck.py
36 lines (31 loc) · 807 Bytes
/
deck.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
import card
class Deck:
colors = []
name = ""
deckURL = ""
owner = ""
ownerURL = ""
location = ""
locationURL = ""
placement = ""
date = ""
mainCards = []
sideCards = []
def printDeckInfo(self):
print self.name
print self.deckURL
print "------------------------------"
print "\t",self.owner
print "\t",self.location
print "\t",self.placement
print "\t",self.date
def printCards(self):
for card in self.cards:
print "\t\t ",card.count," ",card.name,
if (card.sideboard == 1):
print " (sideboard)"
else:
print ""
def printDeck(self):
self.printDeckInfo()
self.printCards()