-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Exit proofgame after it finds a list of moves leading to a position #5
Comments
There is "texelutil proofgame -f ..." which provides a more automatic way of finding proof games for possibly large number of positions. It is optimized for random positions though. For example, assuming bash shell:
If you don't use "-f", there is no way to automatically stop after the first solution is found. |
Aha, so if I specify Is there a performance gain in running proofgame on a file of positions, as opposed to running multiple jobs? I do not understand how to generalize the above if there are multiple games in the input file; but if there aren't any significant performance gains, maybe I can just run many proofgame instances in parallel. |
If there are multiple positions in the input file there will be multiple lines in the result files. One line for each position. An advantage of running a single texelutil proofgame instance is that it is easier to control the amount of parallelism and hence the amount of required memory. By default texelutil uses as many threads as there are "hardware threads" in the computer, which typically includes hyperthreads. You can override this using "-j", e.g.: texelutil -j 4 proofgame -f -o ... to force using 4 threads. |
Is there an option for
telexutil proofgame
to say whether it found a list of moves leading to a given position?For example, when I run
I get some log like this:
The last line I included seems to be a solution; but the output does not indicate that in a way I understand.
For my use case, it seems I have to parse the output and check whether any list of moves in the output is a solution.
Note that I am not interested in the number of moves reaching a given position; that's why I put
0 1
, as in the example in proofgame.md.The text was updated successfully, but these errors were encountered: