mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Remove the import pdb and other cleanups.
This commit is contained in:
parent
c07b60a65c
commit
d2c398881c
1 changed files with 2 additions and 3 deletions
|
@ -989,7 +989,6 @@ class BlackHoleSolver_Hint:
|
||||||
return "A23456789TJQK"[rank] + "CSHD"[card.suit]
|
return "A23456789TJQK"[rank] + "CSHD"[card.suit]
|
||||||
def card2str2(self, card):
|
def card2str2(self, card):
|
||||||
# foundations
|
# foundations
|
||||||
import pdb; pdb.set_trace()
|
|
||||||
rank = (card.rank-self.base_rank) % 13
|
rank = (card.rank-self.base_rank) % 13
|
||||||
return "CSHD"[card.suit] + "-" + "A23456789TJQK"[rank]
|
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
|
cards = self.game.s.foundations[0].cards
|
||||||
s = '-'
|
s = '-'
|
||||||
if (len(cards) > 0):
|
if (len(cards) > 0):
|
||||||
|
@ -1078,7 +1076,6 @@ class BlackHoleSolver_Hint:
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
|
|
||||||
import pdb; pdb.set_trace()
|
|
||||||
result = ''
|
result = ''
|
||||||
# iteration output
|
# iteration output
|
||||||
iter = 0
|
iter = 0
|
||||||
|
@ -1108,12 +1105,14 @@ class BlackHoleSolver_Hint:
|
||||||
if m:
|
if m:
|
||||||
iter = int(m.group(1))
|
iter = int(m.group(1))
|
||||||
self.dialog.setText(iter=iter)
|
self.dialog.setText(iter=iter)
|
||||||
|
continue
|
||||||
|
|
||||||
m = re.match('This scan generated (\d+) states\.', s)
|
m = re.match('This scan generated (\d+) states\.', s)
|
||||||
|
|
||||||
if m:
|
if m:
|
||||||
states = int(m.group(1))
|
states = int(m.group(1))
|
||||||
self.dialog.setText(states=states)
|
self.dialog.setText(states=states)
|
||||||
|
continue
|
||||||
|
|
||||||
m = re.match('Move a card from stack ([0-9]+) to the foundations', s)
|
m = re.match('Move a card from stack ([0-9]+) to the foundations', s)
|
||||||
if not m:
|
if not m:
|
||||||
|
|
Loading…
Add table
Reference in a new issue