Fix iterative deepening start depth
This commit is contained in:
parent
1e5f87b5af
commit
59047be8d5
2 changed files with 7 additions and 4 deletions
|
@ -222,7 +222,7 @@ class MinmaxDeepeningPlayerEngine(MinmaxPlayerEngine):
|
|||
# Get an alarm signal to stop iterations
|
||||
signal.signal(signal.SIGALRM, self.alarm_handler)
|
||||
signal.alarm(self.options['time_limit'])
|
||||
depth = 1
|
||||
depth = self.options['depth']
|
||||
heuristic = -math.inf
|
||||
move = None
|
||||
|
||||
|
@ -262,7 +262,7 @@ class AlphaBetaDeepeningPlayerEngine(AlphabetaPlayerEngine):
|
|||
# Get an alarm signal to stop iterations
|
||||
signal.signal(signal.SIGALRM, self.alarm_handler)
|
||||
signal.alarm(self.options['time_limit'])
|
||||
depth = 1
|
||||
depth = self.options['depth']
|
||||
heuristic = -math.inf
|
||||
move = None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue