Programming advice (how to interrupt/cancel a search?)
Posted: 17 Jul 2005, 14:32
Hi all,
finally I found some time to add a working search to my 'engine'. So far my alpha-beta search is only looping till a certain depth is reached and there are no extensions at all yet. Still roce draws against cassandre most of the games (cassandre doesn't know about the 3-fold either) and even wins from time to time. So it seems I'm making some progress
But I'm lacking the proper programming knowledge to cancel/leave the for loop during the search (i.e. move now/stopp/cancel, searching a certain time rather than searching to a certain depth). I want to implement time management and add the analyze feature.
What's a simple but yet clean solution for this? signal() ? What's the easiest/cleanest solution that works on a win32 system?
I'm programming in C and use the MS Visual C Express Edition to compile.
best regards
Roman
finally I found some time to add a working search to my 'engine'. So far my alpha-beta search is only looping till a certain depth is reached and there are no extensions at all yet. Still roce draws against cassandre most of the games (cassandre doesn't know about the 3-fold either) and even wins from time to time. So it seems I'm making some progress
But I'm lacking the proper programming knowledge to cancel/leave the for loop during the search (i.e. move now/stopp/cancel, searching a certain time rather than searching to a certain depth). I want to implement time management and add the analyze feature.
What's a simple but yet clean solution for this? signal() ? What's the easiest/cleanest solution that works on a win32 system?
I'm programming in C and use the MS Visual C Express Edition to compile.
best regards
Roman