mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
optimize by using .recycle()
This commit is contained in:
parent
18a460a1e7
commit
38def5a0e7
1 changed files with 3 additions and 2 deletions
|
@ -1231,8 +1231,9 @@ class BlackHoleSolver_Hint(Base_Solver_Hint):
|
|||
if DEBUG:
|
||||
print('--------------------\n', board, '--------------------')
|
||||
if use_bh_solve_lib:
|
||||
global bh_solve_lib_obj
|
||||
bh_solve_lib_obj = bh_solve_lib_obj.new_bhs_user_handle()
|
||||
# global bh_solve_lib_obj
|
||||
# bh_solve_lib_obj = bh_solve_lib_obj.new_bhs_user_handle()
|
||||
bh_solve_lib_obj.recycle()
|
||||
bh_solve_lib_obj.read_board(
|
||||
board=board,
|
||||
game_type=game_type['preset'],
|
||||
|
|
Loading…
Add table
Reference in a new issue