1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

update the solver iter and states counts.

This commit is contained in:
Shlomi Fish 2020-06-18 11:55:41 +03:00
parent 3de9955879
commit 41c2633fcd

View file

@ -1108,7 +1108,13 @@ class FreeCellSolver_Hint(Base_Solver_Hint):
self.dialog.setText(iter=iter_, depth=depth, states=states)
hints = []
if use_fc_solve_lib and status == 0:
if use_fc_solve_lib:
self.dialog.setText(
iter=fc_solve_lib_obj.get_num_times(),
depth=0,
states=fc_solve_lib_obj.get_num_states_in_collection(),
)
if status == 0:
m = fc_solve_lib_obj.get_next_move()
while m:
type_ = ord(m.s[0])
@ -1124,7 +1130,7 @@ class FreeCellSolver_Hint(Base_Solver_Hint):
if (type_ in [1, 3]) else None))])
m = fc_solve_lib_obj.get_next_move()
elif use_fc_solve_lib:
else:
self.solver_state = 'unsolved'
else:
for sbytes in pout: