Hi,
What i need is like
I have the same FEN but many pv's
r4rk1/pp4b1/2p1bnB1/3q2Bp/3p1P1P/1P4N1/P2Q1NP1/1K2R3 w - - 1 23
g5f6 f8f6 g6d3 d5g2 g3h5 a8f8 h5f6 f8f6 d2e2 e6d5 e2h5 d5f7 d3h7 g8h8 h7g6 h8g8 h5h7 g8f8 g6f7 f8f7 f2e4 g2g6 h7g6 f6g6 b1c2 g6
g5f6 f8f6 g6d3 d5g2 g3h5 a8f8 h5f6 f8f6 d2e2 e6d5 e2h5 d5f7 d3h7 g8h8 h7g6 h8g8 h5h7 g8f8 g6f7 f8f7 f2e4 g2g6 h7g6 f6g6 e4g5 f7
g6d3 d5g2 g5f6 f8f6 g3h5 e6d5 h5f6 g7f6 d2e2 g2f3 e1g1 g8h8 e2f3 d5f3 g1g6 f6g7 f4f5 a8f8
So i need SAN formatted PV,
i.e. the script should take in 1 fen and multipv and return 1 fen and multipv
Regards,
Arun
Converting engine output from LAN to SAN format
Moderators: hgm, Rebel, chrisw
-
- Posts: 214
- Joined: Tue Nov 03, 2015 4:55 pm
-
- Posts: 4833
- Joined: Sun Aug 10, 2008 3:15 pm
- Location: Philippines
Re: Converting engine output from LAN to SAN format
OK I will do that.arunsoorya1309 wrote:Hi,
What i need is like
I have the same FEN but many pv's
r4rk1/pp4b1/2p1bnB1/3q2Bp/3p1P1P/1P4N1/P2Q1NP1/1K2R3 w - - 1 23
g5f6 f8f6 g6d3 d5g2 g3h5 a8f8 h5f6 f8f6 d2e2 e6d5 e2h5 d5f7 d3h7 g8h8 h7g6 h8g8 h5h7 g8f8 g6f7 f8f7 f2e4 g2g6 h7g6 f6g6 b1c2 g6
g5f6 f8f6 g6d3 d5g2 g3h5 a8f8 h5f6 f8f6 d2e2 e6d5 e2h5 d5f7 d3h7 g8h8 h7g6 h8g8 h5h7 g8f8 g6f7 f8f7 f2e4 g2g6 h7g6 f6g6 e4g5 f7
g6d3 d5g2 g5f6 f8f6 g3h5 e6d5 h5f6 g7f6 d2e2 g2f3 e1g1 g8h8 e2f3 d5f3 g1g6 f6g7 f4f5 a8f8
So i need SAN formatted PV,
i.e. the script should take in 1 fen and multipv and return 1 fen and multipv
Regards,
Arun
-
- Posts: 4833
- Joined: Sun Aug 10, 2008 3:15 pm
- Location: Philippines
Re: Converting engine output from LAN to SAN format
Try this.arunsoorya1309 wrote:Hi,
What i need is like
I have the same FEN but many pv's
r4rk1/pp4b1/2p1bnB1/3q2Bp/3p1P1P/1P4N1/P2Q1NP1/1K2R3 w - - 1 23
g5f6 f8f6 g6d3 d5g2 g3h5 a8f8 h5f6 f8f6 d2e2 e6d5 e2h5 d5f7 d3h7 g8h8 h7g6 h8g8 h5h7 g8f8 g6f7 f8f7 f2e4 g2g6 h7g6 f6g6 b1c2 g6
g5f6 f8f6 g6d3 d5g2 g3h5 a8f8 h5f6 f8f6 d2e2 e6d5 e2h5 d5f7 d3h7 g8h8 h7g6 h8g8 h5h7 g8f8 g6f7 f8f7 f2e4 g2g6 h7g6 f6g6 e4g5 f7
g6d3 d5g2 g5f6 f8f6 g3h5 e6d5 h5f6 g7f6 d2e2 g2f3 e1g1 g8h8 e2f3 d5f3 g1g6 f6g7 f4f5 a8f8
So i need SAN formatted PV,
i.e. the script should take in 1 fen and multipv and return 1 fen and multipv
Regards,
Arun
https://drive.google.com/open?id=1xSrsK ... MkPsjhS-bl
There is python source and exe, batch file and input.txt
-
- Posts: 214
- Joined: Tue Nov 03, 2015 4:55 pm
Re: Converting engine output from LAN to SAN format
thanks a lot, i never knew about python chess, i was able to come up with my own script as per the requirement. But your script was the stepping stone for it, thanks a lot
-
- Posts: 105
- Joined: Thu Jul 27, 2017 10:59 pm
Re: Converting engine output from LAN to SAN format
Thank you for your help Ferdy. It works well.