mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
fix cmd line args
This commit is contained in:
parent
f998b53d79
commit
faf8341c5e
1 changed files with 8 additions and 5 deletions
|
@ -1022,11 +1022,15 @@ class FreeCellSolver_Hint(Base_Solver_Hint):
|
||||||
print('--------------------\n', board, '--------------------')
|
print('--------------------\n', board, '--------------------')
|
||||||
#
|
#
|
||||||
args = []
|
args = []
|
||||||
|
use_lib = True
|
||||||
# args += ['-sam', '-p', '-opt', '--display-10-as-t']
|
# args += ['-sam', '-p', '-opt', '--display-10-as-t']
|
||||||
args += ['-m', '-p', '-opt', '-sel']
|
if use_lib:
|
||||||
if FCS_VERSION >= (4, 20, 0):
|
args += ['-opt', ]
|
||||||
args += ['-hoi']
|
else:
|
||||||
if progress:
|
args += ['-m', '-p', '-opt', '-sel']
|
||||||
|
if FCS_VERSION >= (4, 20, 0):
|
||||||
|
args += ['-hoi']
|
||||||
|
if (not use_lib) and progress:
|
||||||
args += ['--iter-output']
|
args += ['--iter-output']
|
||||||
fcs_iter_output_step = None
|
fcs_iter_output_step = None
|
||||||
if FCS_VERSION >= (4, 20, 0):
|
if FCS_VERSION >= (4, 20, 0):
|
||||||
|
@ -1052,7 +1056,6 @@ class FreeCellSolver_Hint(Base_Solver_Hint):
|
||||||
if 'esf' in game_type:
|
if 'esf' in game_type:
|
||||||
args += ['--empty-stacks-filled-by', game_type['esf']]
|
args += ['--empty-stacks-filled-by', game_type['esf']]
|
||||||
|
|
||||||
use_lib = True
|
|
||||||
if use_lib:
|
if use_lib:
|
||||||
import freecell_solver
|
import freecell_solver
|
||||||
obj = freecell_solver.FreecellSolver()
|
obj = freecell_solver.FreecellSolver()
|
||||||
|
|
Loading…
Add table
Reference in a new issue