-
Notifications
You must be signed in to change notification settings - Fork 18
searchmoves never stops #20
Copy link
Copy link
Open
Labels
bugA bug or issue that should be resolvedA bug or issue that should be resolvedquestionA question asking for help about ChessKitEngine functionalityA question asking for help about ChessKitEngine functionality
Metadata
Metadata
Assignees
Labels
bugA bug or issue that should be resolvedA bug or issue that should be resolvedquestionA question asking for help about ChessKitEngine functionalityA question asking for help about ChessKitEngine functionality
Hello and thank you for the awesome project, I've been having issues with searchmoves, it goes infinite even when I set a depth movetime or nodes.
engine.send(command: .stop)
engine.send(command: .position(.fen(fen)))
engine.send(command: .go(searchmoves:["a2a3"],depth: 14))
here's my code it doesn't stop at 14 and seems to go forever.
for now I just added command stop if condition is met in engine.receiveResponse = { response in
if let depth = info.depth, depth >= 14 {
engine.send(command: .stop)
}