mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Refactoring
This commit is contained in:
parent
66c7f6f10b
commit
a28001d44b
1 changed files with 3 additions and 8 deletions
|
@ -1144,18 +1144,13 @@ class BlackHoleSolver_Hint(Base_Solver_Hint):
|
||||||
if DEBUG >= 5:
|
if DEBUG >= 5:
|
||||||
print(s)
|
print(s)
|
||||||
|
|
||||||
m = re.search('^(Intractable!|Unsolved!|Solved!)', s.rstrip())
|
m = re.search('^(Intractable|Unsolved|Solved)!', s.rstrip())
|
||||||
if m:
|
if m:
|
||||||
result = m.group(1)
|
result = m.group(1)
|
||||||
break
|
break
|
||||||
self.dialog.setText(iter=iter_, depth=depth, states=states)
|
|
||||||
|
|
||||||
if result == 'Intractable!':
|
self.dialog.setText(iter=iter_, depth=depth, states=states)
|
||||||
self.solver_state = 'intractable'
|
self.solver_state = result.lower()
|
||||||
elif result == 'Unsolved!':
|
|
||||||
self.solver_state = 'unsolved'
|
|
||||||
else:
|
|
||||||
self.solver_state = 'solved'
|
|
||||||
|
|
||||||
hints = []
|
hints = []
|
||||||
for sbytes in pout:
|
for sbytes in pout:
|
||||||
|
|
Loading…
Add table
Reference in a new issue