Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/deck.py
diff options
context:
space:
mode:
Diffstat (limited to 'deck.py')
-rw-r--r--deck.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/deck.py b/deck.py
index 52c260b..08307e3 100644
--- a/deck.py
+++ b/deck.py
@@ -132,8 +132,12 @@ class Deck:
deck = []
order = json_load(deck_as_text)
for i in order:
- deck.append(self.tiles[order[i]])
+ # deck.append(self.tiles[order[i]])
+ deck.append(self.tiles[i])
self.tiles = deck[:]
+ print 'restoring deck'
+ for i in range(COL * ROW):
+ print self.tiles[i].number
def clear(self):
''' Remove any highlight from the tiles. '''