Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/hand.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-04-01 22:58:06 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-04-01 22:58:06 (GMT)
commitab38ffec490a6f65af6ae8e0ae17e7bc37cdfd85 (patch)
treef274df728d8fdb586c4eea500775d33aac2e464b /hand.py
parent311f1cae52ac3abfada53eb8221c35b4bc219c3b (diff)
save/restore fixes -- needs to be tested with sharing
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)