From 66c7f6f10b64d9a044799c5242235f91ce785d46 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Tue, 13 Mar 2018 13:50:14 +0200 Subject: [PATCH] Fix a bug that the iterations were 0 on unsolved --- pysollib/hint.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pysollib/hint.py b/pysollib/hint.py index 90aaf1b1..5ecdc872 100644 --- a/pysollib/hint.py +++ b/pysollib/hint.py @@ -1150,14 +1150,12 @@ class BlackHoleSolver_Hint(Base_Solver_Hint): break self.dialog.setText(iter=iter_, depth=depth, states=states) - if (result == 'Intractable!'): + if result == 'Intractable!': self.solver_state = 'intractable' - return - if (result == 'Unsolved!'): + elif result == 'Unsolved!': self.solver_state = 'unsolved' - return - - self.solver_state = 'solved' + else: + self.solver_state = 'solved' hints = [] for sbytes in pout: