Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2009-11-03 15:33:05 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-11-03 15:33:05 (GMT)
commitaab73fbee20f855202cfa00c10a90de6a5e0b4cf (patch)
treee860e9263d593e009c51b15de01bd58b8336f46f
parent43add4f1be6d04cb7afb63012bc169e0bd7d385a (diff)
cleaned up solver
-rwxr-xr-xcardsort.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cardsort.py b/cardsort.py
index 12fde0f..70e7b00 100755
--- a/cardsort.py
+++ b/cardsort.py
@@ -139,8 +139,11 @@ class CardSortMain:
self.tw.grid.print_orientations()
self.tw.win.set_title(_("CardSort") + ": " + \
_("You solved the puzzle."))
+ self.tw.grid.reset(self.tw)
self.tw.grid.set_grid(g)
- self.tw.grid.set_orientation(self.rotation_sets[o])
+ for r in range(9):
+ self.tw.grid.card_table[self.tw.grid.grid.index(r)]\
+ .set_orientation(self.rotation_sets[o][r],True)
self.tw.grid.print_grid()
self.tw.grid.print_orientations()
sprites.redrawsprites(self.tw)