Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/grid.py
diff options
context:
space:
mode:
authorWalter 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)
commit72a543e3104d9ba8ecf0cbce3396fa784b9b0886 (patch)
treeecd634bc03bf5cad13790fad1fa52530d5649b9e /grid.py
parente36e067ab3559cfc06689fc7d273eb606800b3f4 (diff)
using constants
Diffstat (limited to 'grid.py')
-rw-r--r--grid.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/grid.py b/grid.py
index 00f3391..02c1bd1 100644
--- a/grid.py
+++ b/grid.py
@@ -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