Hi,
I am thinking about writing some simple tools to interact with chess engines. I've read UCI documentation I found on the net but it's not clear to me what is the best way to get evals for all legal moves in given position. I would like to do the following things:
a)get scores for all legal moves in given position
b)get scores for subset of all legal moves in given position (which I am going to specify)
c)get scores and best lines found for all legal moves in given position
All of the above after chosen time/depth would be great too.
Is it possible to directly do with UCI protocol or do I have to separately feed every position resulting from all legal moves to the engine ? (this seems to me as terrible waste of resources though).
Help please :)
I am thinking about writing some simple tools to interact with chess engines. I've read UCI documentation I found on the net but it's not clear to me what is the best way to get evals for all legal moves in given position. I would like to do the following things:
a)get scores for all legal moves in given position
b)get scores for subset of all legal moves in given position (which I am going to specify)
c)get scores and best lines found for all legal moves in given position
All of the above after chosen time/depth would be great too.
Is it possible to directly do with UCI protocol or do I have to separately feed every position resulting from all legal moves to the engine ? (this seems to me as terrible waste of resources though).
Help please :)
a) "setoption name multipv value 300" (or the engine's maximum)
b) "go infinite searchmoves e2e4 d2d4 c2c4" along with a)
c) See a)
Replace "infinite" with "depth n" or "movetime n" (in milliseconds).
b) "go infinite searchmoves e2e4 d2d4 c2c4" along with a)
c) See a)
> All of the above after chosen time/depth would be great too.
Replace "infinite" with "depth n" or "movetime n" (in milliseconds).
Thank you very much, works like a charm :)
Powered by mwForum 2.27.4 © 1999-2012 Markus Wichitill
