Hello,
do you know if there is a utility that can do this? I would provide it with an EPD position, and it should return a PGN game that reaches that position, regardless of the move sequence as long as they are legal. I need this to convert some opening files I had generated previously, typically involving positions reached after 8 moves for each side. It shouldn't be too complicated to write, but if it already exists, it would save me time
However, if the positions you are interested in come from relatively short opening lines, the problem should be much simpler. "texelutil proofgame" should be able to solve such problems. It does however take a FEN, not an EPD as input, and it produces a move sequence in short algebraic notation as output, not a full PGN, so some additional scripting will be required to use it.
petero2 wrote: ↑Sun Oct 29, 2023 5:35 am
"texelutil proofgame" should be able to solve such problems. It does however take a FEN, not an EPD as input, and it produces a move sequence in short algebraic notation as output, not a full PGN, so some additional scripting will be required to use it.
Hi Peter,
I've used TexelUtils, and it works very well for some positions, but for others, it takes too long. For example, for this position "2kr1b1r/pp2pppp/2n2n2/2P5/6b1/2P5/PP2BPPP/RNB1K1NR w - - 0 9," it takes several minutes. I ran the program on my 50,000 positions for a few hours, but the converted part wasn't significant. Setting a low value for maxnodes results in too many positions being discarded. Now, I will try to write a specific simplified function for my 16 half-moves positions.
Thanksel anyway!
Brunetti wrote: ↑Sun Oct 29, 2023 2:19 pm
I've used TexelUtils, and it works very well for some positions, but for others, it takes too long. For example, for this position "2kr1b1r/pp2pppp/2n2n2/2P5/6b1/2P5/PP2BPPP/RNB1K1NR w - - 0 9," it takes several minutes. I ran the program on my 50,000 positions for a few hours, but the converted part wasn't significant. Setting a low value for maxnodes results in too many positions being discarded. Now, I will try to write a specific simplified function for my 16 half-moves positions.
Hi Alex,
Did you use the "-f -o ..." options? Your position was solved in around 0.1 seconds when I tried:
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
Did you use the "-f -o ..." options? Your position was solved in around 0.1 seconds when I tried:
$ echo "2kr1b1r/pp2pppp/2n2n2/2P5/6b1/2P5/PP2BPPP/RNB1K1NR w - - 0 9" | texelutil proofgame -f -o out 2>log ; cat out02
Hi,
I'm using Windows, and I couldn't manage in any way to generate the proof games for the entire EPD file with TexelUtil, despite various attempts with pipes and redirections.
If you want a simple solution and the sequence of moves is not important (as long as they are legal), then use a FEN tag and go from there. This method will not be useful if you are building an opening book.
I wrote a simple tool to convert an epd to a pgn with a fen tag. It is called "epdConvert" and it is in the "40H-EPD" download on my chess page (link is at the bottom).
Norm Pollock wrote: ↑Sat Dec 09, 2023 3:32 pm
If you want a simple solution and the sequence of moves is not important (as long as they are legal), then use a FEN tag and go from there. This method will not be useful if you are building an opening book.
Hello, my issue is not that one. That would be trivial. I want to convert my EPD file into a PGN file to use it with engines that do not allow the input of positions (UCI "position fen" or XB "edit"). Therefore, I need to replace my EPD positions with sequences of moves from the starting position. Unfortunately, I did not think about this problem when I created the file a long time ago, spending hours in processing and then throwing away various original files. I created my set of positions through a lengthy process of evaluation and selection to obtain a very diversified and balanced set, and I consider it a crucial tool for evaluating engines, both for mine and those on my ultrabullet list. The set of positions is essential for obtaining accurate evaluations even with a limited number of games, and I am proud of my set. That's why I would like to preserve it, but not having saved the move sequences poses a problem.
If you have a very large database of games, then you can use Scid effectively.
Post the position in Scid, and then do an opening report.
It will show you the most frequent move list to achieve that position.
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.