Skip to content

Commit af72cf1

Browse files
committed
increase also-solve timeout for endgame mode
1 parent f8b713a commit af72cf1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

endgame/negamax/solver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,8 +1209,8 @@ searchLoop:
12091209
Msg("using-last-completed-ply-for-also-solve-move")
12101210
}
12111211

1212-
// Create fresh context with 1 minute timeout for solving just this move
1213-
freshCtx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
1212+
// Create fresh context with 3 minute timeout for solving just this move
1213+
freshCtx, cancel := context.WithTimeout(context.Background(), 180*time.Second)
12141214
defer cancel()
12151215

12161216
err := algorithmFunc(freshCtx, pliesToUse)

shell/helptext/endgame.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,5 @@ Options:
136136
Note: The specified variant will be solved to the same ply depth as the optimal
137137
move to ensure comparable results. If the main solve times out before reaching
138138
the requested plies, the variant will be solved to the last completed ply depth.
139-
The variant solve gets a fresh 60-second timeout, so if the main solve reaches
140-
maxtime, total solve time may be up to maxtime + 60 seconds.
139+
The variant solve gets a fresh 180-second timeout, so if the main solve reaches
140+
maxtime, total solve time may be up to maxtime + 180 seconds.

0 commit comments

Comments
 (0)