Add simple __main__ to Card.py, so I can remember how it works.
This commit is contained in:
parent
c3a408766d
commit
0c36ab0bda
|
@ -95,4 +95,7 @@ def valueSuitFromCard(card):
|
|||
][card] )
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
for i in xrange(1, 14):
|
||||
print "card %2d = %s card %2d = %s card %2d = %s card %2d = %s" % \
|
||||
(i, valueSuitFromCard(i), i+13, valueSuitFromCard(i+13), i+26, valueSuitFromCard(i+26), i+39, valueSuitFromCard(i+39))
|
||||
|
|
Loading…
Reference in New Issue
Block a user