Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/hand.py
diff options
context:
space:
mode:
Diffstat (limited to 'hand.py')
-rw-r--r--hand.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/hand.py b/hand.py
index 2be4182..3c07df1 100644
--- a/hand.py
+++ b/hand.py
@@ -79,6 +79,7 @@ class Hand:
def restore(self, hand_as_text, deck, buddy=False):
''' Restore tiles to hand upon resume or share. '''
hand = json_load(hand_as_text)
+ print 'restoring hand'
if buddy:
offset = 1 # skip the buddy
else:
@@ -90,6 +91,7 @@ class Hand:
else:
for k in range(ROW * COL):
if deck.tiles[k].number == hand[i]:
+ print k, '-->', tile
self.hand[tile] = deck.tiles[k]
self.hand[tile].spr.move(self.hand_to_xy(tile))
self.hand[tile].spr.set_layer(TILES)