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

Remove the max_depth option to the solver.

It's no longer supported nor recommended.
This commit is contained in:
Shlomi Fish 2016-11-16 22:53:22 +02:00
parent 1085096f37
commit 463aec56af
2 changed files with 1 additions and 15 deletions

View file

@ -716,7 +716,6 @@ class Base_Solver_Hint:
self.game_type = game_type
self.options = {
'max_iters': 10000,
'max_depth': 1000,
'progress': False,
'preset': None,
}
@ -852,7 +851,6 @@ class FreeCellSolver_Hint(Base_Solver_Hint):
if self.options['preset'] and self.options['preset'] != 'none':
args += ['--load-config', self.options['preset']]
args += ['--max-iters', self.options['max_iters'],
'--max-depth', self.options['max_depth'],
'--decks-num', game.gameinfo.decks,
'--stacks-num', len(game.s.rows),
'--freecells-num', len(game.s.reserves),

View file

@ -60,16 +60,6 @@ class BaseSolverDialog:
increment=1000, textvariable=self.max_iters_var)
spin.grid(row=row, column=1, sticky='w', padx=2, pady=2)
#
row += 1
self.max_depth_var = Tkinter.IntVar()
self.max_depth_var.set(1000)
self._calcToolkit().Label(frame, text=_('Max depth:'), anchor='w'
).grid(row=row, column=0, sticky='ew', padx=2, pady=2)
spin = Tkinter.Spinbox(frame, bg='white', from_=100, to=10000,
increment=100, textvariable=self.max_depth_var)
spin.grid(row=row, column=1, sticky='w', padx=2, pady=2)
#
row += 1
self.progress_var = Tkinter.BooleanVar()
@ -161,10 +151,8 @@ class BaseSolverDialog:
game.solver = solver
preset = self.preset_var.get()
max_iters = self.max_iters_var.get()
max_depth = self.max_depth_var.get()
progress = self.progress_var.get()
solver.config(preset=preset, max_iters=max_iters,
max_depth=max_depth, progress=progress)
solver.config(preset=preset, max_iters=max_iters, progress=progress)
solver.computeHints()
hints_len = len(solver.hints)-1
if hints_len > 0: