diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2009-12-05 16:40:34 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2009-12-05 16:40:34 (GMT) |
commit | 72a543e3104d9ba8ecf0cbce3396fa784b9b0886 (patch) | |
tree | ecd634bc03bf5cad13790fad1fa52530d5649b9e /grid.py | |
parent | e36e067ab3559cfc06689fc7d273eb606800b3f4 (diff) |
using constants
Diffstat (limited to 'grid.py')
-rw-r--r-- | grid.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -52,10 +52,10 @@ class Grid: # Initialize the deck of cards # some loop through all the patterns - for shape in range(0,3): - for color in range(0,4): - for num in range(0,3): - for fill in range(0,3): + for shape in range(0,SHAPES): + for color in range(0,COLORS): + for num in range(0,NUMBER): + for fill in range(0,FILLS): self.deck[self.count] = Card(tw,shape,color,num,fill) self.count += 1 |