Add simple __main__ to Card.py, so I can remember how it works.

This commit is contained in:
Ray 2009-07-25 11:58:43 -04:00
parent c3a408766d
commit 0c36ab0bda

View File

@ -95,4 +95,7 @@ def valueSuitFromCard(card):
][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))