EPD to PGN

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

Dann Corbit
Posts: 12792
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: EPD to PGN

Post by Dann Corbit »

For instance, given this position:
rnbq1rk1/ppp2pbp/3p1np1/4p3/1PP5/5NP1/PB1PPPBP/RN1QK2R w KQ -
I got this list:

4. Moves and Themes

4.1 Move orders reaching the report position

There were 65 move orders reaching this position. The top 8 are:
1: 1.Nf3 Nf6 2.c4 g6 3.b4 Bg7 4.Bb2 O-O 5.g3 d6 6.Bg2 e5 (407)
2: 1.Nf3 Nf6 2.c4 g6 3.b4 Bg7 4.Bb2 d6 5.g3 O-O 6.Bg2 e5 (71)
3: 1.c4 Nf6 2.Nf3 g6 3.b4 Bg7 4.Bb2 O-O 5.g3 d6 6.Bg2 e5 (61)
4: 1.Nf3 Nf6 2.g3 g6 3.b4 Bg7 4.Bb2 O-O 5.c4 d6 6.Bg2 e5 (52)
5: 1.Nf3 Nf6 2.g3 g6 3.b4 Bg7 4.Bb2 O-O 5.Bg2 d6 6.c4 e5 (36)
6: 1.Nf3 Nf6 2.c4 g6 3.b4 Bg7 4.Bb2 d6 5.g3 e5 6.Bg2 O-O (13)
7: 1.Nf3 Nf6 2.b4 g6 3.Bb2 Bg7 4.c4 O-O 5.g3 d6 6.Bg2 e5 (12)
8: 1.Nf3 Nf6 2.c4 d6 3.g3 g6 4.b4 Bg7 5.Bb2 O-O 6.Bg2 e5 (12)

Database used was Junkbase
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.
User avatar
Brunetti
Posts: 424
Joined: Tue Dec 08, 2009 1:37 pm
Location: Milan, Italy
Full name: Alex Brunetti

Re: EPD to PGN

Post by Brunetti »

Dann Corbit wrote: Sat Dec 09, 2023 9:17 pm 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.
Your suggestion is brilliant, a kind of reverse engineering of my EPD :) Thank you!

Alex
petero2
Posts: 729
Joined: Mon Apr 19, 2010 7:07 pm
Location: Sweden
Full name: Peter Osterlund

Re: EPD to PGN

Post by petero2 »

Brunetti wrote: Sat Dec 09, 2023 2:21 am
petero2 wrote: Sun Oct 29, 2023 5:07 pm Hi Alex,

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
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.
I don't know how to script that in Windows unless you install a Linux-like environment, like cygwin or mingw. However, if you send the 50000 epd file to me, I can run it through "texelutil proofgame" and send you the result.
User avatar
Brunetti
Posts: 424
Joined: Tue Dec 08, 2009 1:37 pm
Location: Milan, Italy
Full name: Alex Brunetti

Re: EPD to PGN

Post by Brunetti »

petero2 wrote: Sat Dec 09, 2023 11:03 pm However, if you send the 50000 epd file to me, I can run it through "texelutil proofgame" and send you the result.
Thank you, very kind of you, I have sent it to you.

Alex