diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2009-11-29 22:23:53 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2009-11-29 22:23:53 (GMT) |
commit | 1999ee23121fa78bda2dfe21bef5643a79b65af2 (patch) | |
tree | 82939ab56be1906b80143c8e6d8cfdcfdb8b5a8a /window.py | |
parent | 36787ae146159ac9573e9d81dcde0a5ef0f3b50f (diff) |
fixed bug in grid status
Diffstat (limited to 'window.py')
-rw-r--r-- | window.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -85,6 +85,7 @@ def new_window(canvas, path, parent=None): tw.deck.shuffle() tw.deck.deal(tw) tw.matches = 0 + tw.msg = "" # initialize three card-selected overlays for i in range(0,3): @@ -206,6 +207,7 @@ def find_a_match(tw): for i in Permutation(a): cardarray = [tw.deck.grid[i[0]],tw.deck.grid[i[1]],tw.deck.grid[i[2]]] if match_check(cardarray) is True: + tw.msg = str(i) return True return False |