analyze epd automatically
Posted: 27 Nov 2004, 10:46
I still do not have a tool to analyze epd automatically.
There are basically 2 ways that I can think about:
1)Writing a new thread that will give the engine the impression that it gets winboard commands under analysis mode.
2)adding more option for analyze varaible.
today there are 3 values that analyze can get(note that it is used only when the engine is searching so it's value is unimportant in force mode):
analyze = PLAY_MODE
analyze=PONDER_MODE
analyze=ANALYSIS_MODE
It is possible to add analyze_epd mode when the program may look at some global variables only if analyze=analyze_epd mode to decide when to stop the analysis (more varaibles can be for example time arrayt that will give time for every position in the epd file because I may want to give different times for different positions).
Option 1 has the advantage of being more general but option 2 seems to me more easy to write when I have no idea how to write option 1 because I have no experience in threads and I also need to translate the information that I get from the engine to some analysis file in that case.
What is your opinion?
Do you have a function to read epd files and if yes what design do you use to do it.
Uri
There are basically 2 ways that I can think about:
1)Writing a new thread that will give the engine the impression that it gets winboard commands under analysis mode.
2)adding more option for analyze varaible.
today there are 3 values that analyze can get(note that it is used only when the engine is searching so it's value is unimportant in force mode):
analyze = PLAY_MODE
analyze=PONDER_MODE
analyze=ANALYSIS_MODE
It is possible to add analyze_epd mode when the program may look at some global variables only if analyze=analyze_epd mode to decide when to stop the analysis (more varaibles can be for example time arrayt that will give time for every position in the epd file because I may want to give different times for different positions).
Option 1 has the advantage of being more general but option 2 seems to me more easy to write when I have no idea how to write option 1 because I have no experience in threads and I also need to translate the information that I get from the engine to some analysis file in that case.
What is your opinion?
Do you have a function to read epd files and if yes what design do you use to do it.
Uri