From d2c398881c5c221b140c88a61d4759af5b7ba34e Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Fri, 9 May 2014 16:56:58 +0300 Subject: [PATCH] Remove the import pdb and other cleanups. --- pysollib/hint.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pysollib/hint.py b/pysollib/hint.py index 494a77e2..6536d97e 100644 --- a/pysollib/hint.py +++ b/pysollib/hint.py @@ -989,7 +989,6 @@ class BlackHoleSolver_Hint: return "A23456789TJQK"[rank] + "CSHD"[card.suit] def card2str2(self, card): # foundations - import pdb; pdb.set_trace() rank = (card.rank-self.base_rank) % 13 return "CSHD"[card.suit] + "-" + "A23456789TJQK"[rank] @@ -1036,7 +1035,6 @@ class BlackHoleSolver_Hint: # # - # import pdb; pdb.set_trace() cards = self.game.s.foundations[0].cards s = '-' if (len(cards) > 0): @@ -1078,7 +1076,6 @@ class BlackHoleSolver_Hint: if DEBUG: start_time = time.time() - import pdb; pdb.set_trace() result = '' # iteration output iter = 0 @@ -1108,12 +1105,14 @@ class BlackHoleSolver_Hint: if m: iter = int(m.group(1)) self.dialog.setText(iter=iter) + continue m = re.match('This scan generated (\d+) states\.', s) if m: states = int(m.group(1)) self.dialog.setText(states=states) + continue m = re.match('Move a card from stack ([0-9]+) to the foundations', s) if not m: