Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Dann> Sankit vs Power Texteditor for pgn

Author: Dann Corbit

Date: 14:24:32 05/08/01

Go up one level in this thread


On May 08, 2001 at 16:44:03, pete stein wrote:

>
>>Personally, I just write a simple filter script or a C program.  I have editors
>>with macro capability, but I'd rather do it the easy way.
>
>I'm not that advanced that I'd be able to write a script.
>Which editors do you use ? If they're demo/freeware, where to find them ?
>
>In this example moves 1. till 24. were in Fritz book.
>I checked, double-checked, rechecked and checked again: 1. till 24. _are_ in the
>book.
>Nevertheless Fritz called 21. the last book move and let DS analyze as of move
>21...
>
>[Event "?"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>[PlyCount "49"]
>[EventDate "2001.04.06"]
>
>1. e4 f6 2. Nf3 e6 3. d4 Ne7 4. Be2 d5 5. exd5 Nxd5 6. O-O Be7 7. c4 Nb6 8. Nc3
>O-O 9. Be3 Nc6 10. h4 e5 11. dxe5 fxe5 12. Qxd8 Bxd8 13. c5 Nd7 14. Bc4+ Kh8
>15. Rad1 Be7 16. Ng5 Bxg5 17. hxg5 Nd4 18. Ne4 Nc2 19. Bd2 Nb8 20. Bc3 Nc6 21.
>Rd2 {last book move} 21... N2d4 ({Deep Shredder:} 21... N2d4 22. Bxd4 exd4 23.
>Bb5 Rb8 24. g6 Bf5 25. Bxc6 bxc6 {0.56/10}) 22. f4 ({Deep Shredder:} 22. b4 Be6
>23. Bxe6 Nxe6 24. Rd7 Rfd8 25. Rxd8+ Rxd8 26. f3 Kg8 27. Kf2 Kf7 {0.45/9})
>22... Bf5 ({Deep Shredder:} 22... Bf5 23. Ng3 Be6 {0.54/10}) 23. fxe5 ({
>Deep Shredder:} 23. Ng3 Be6 24. Bxe6 Nxe6 25. Bxe5 Nxg5 26. Bxc7 Ne6 27. Bd6 {
>0.54/9}) 23... Bxe4 ({Deep Shredder:} 23... Bxe4 24. Bxd4 Rxf1+ 25. Kxf1 Rd8
>26. Ke2 Nxd4+ 27. Ke3 {0.27/10}) 24. Re1 ({Deep Shredder:} 24. Bxd4 Rxf1+ 25.
>Bxf1 Rd8 26. Be3 Rxd2 27. Bxd2 Nxe5 28. Bf4 Nd7 29. b4 c6 {0.27/9}) 24... Bxg2
>({Deep Shredder:} 24... Rf4 25. Bxd4 Bg6 26. Bd5 Nxd4 27. Red1 c6 {-1.86/9})
>25. Bxd4 ({Deep Shredder:} 25. Bxd4 Nxd4 26. Rxd4 Bc6 27. g6 {1.16/10}) *
>
>Does it imply that the variation lines to the earlier moves 21. 22. 23. are
>better than the variation lines to latter moves 25. 26. 27. ?
>Is in such cases the earliest variation line _always_ the best (from the point
>of view of the engine's eval) ? or not necessarily ?

See:
http://www.schachprobleme.de/chessml/faq/pgn/

And in particular:
http://www.schachprobleme.de/chessml/faq/pgn/#8.2.5

CDB's convert to clean PGN will render it as this:

[Event "?"]
[Round "?"]
[Site "?"]
[Date "????.??.??"]
[White "?"]
[Black "?"]
[Result "*"]
[PlyCount "49"]
[EventDate "2001.04.06"]

1. e4 f6 2. Nf3 e6 3. d4 Ne7 4. Be2 d5 5. exd5 Nxd5 6. O-O Be7 7. c4 Nb6 8. Nc3
O-O 9. Be3 Nc6 10. h4 e5 11. dxe5 fxe5 12. Qxd8 Bxd8 13. c5 Nd7 14. Bc4+ Kh8
15. Rad1 Be7 16. Ng5 Bxg5 17. hxg5 Nd4 18. Ne4 Nc2 19. Bd2 Nb8 20. Bc3 Nc6 21.
Rd2
{last book move}  N2d4 ( 21... N2d4 22. Bxd4 exd4 23. Bb5 Rb8 24. g6 Bf5 25.
Bxc6 bxc6
{0.56/10} )  22. f4 ( 22. b4 Be6 23. Bxe6 Nxe6 24. Rd7 Rfd8 25. Rxd8+ Rxd8 26.
f3 Kg8 27. Kf2 Kf7
{0.45/9} )  Bf5 ( 22... Bf5 23. Ng3 Be6
{0.54/10} )  23. fxe5 ( 23. Ng3 Be6 24. Bxe6 Nxe6 25. Bxe5 Nxg5 26. Bxc7 Ne6 27.
Bd6
{
0.54/9} )  Bxe4 ( 23... Bxe4 24. Bxd4 Rxf1+ 25. Kxf1 Rd8 26. Ke2 Nxd4+ 27. Ke3
{0.27/10} )  24. Re1 ( 24. Bxd4 Rxf1+ 25. Bxf1 Rd8 26. Be3 Rxd2 27. Bxd2 Nxe5
28. Bf4 Nd7 29. b4 c6
{0.27/9} )  Bxg2 ( 24... Rf4 25. Bxd4 Bg6 26. Bd5 Nxd4 27. Red1 c6
{-1.86/9} )  25. Bxd4 ( 25. Bxd4 Nxd4 26. Rxd4 Bc6 27. g6
{1.16/10} )  *

Then extract can trim it a bit more:
extract -s -S -7 -C bar.pgn
[Event "?"]
[Site "?"]
[Date "????.??.??"]
[Round "?"]
[White "?"]
[Black "?"]
[Result "*"]

1. e4 f6 2. Nf3 e6 3. d4 Ne7 4. Be2 d5 5. exd5 Nxd5 6. O-O Be7 7. c4 Nb6 8.
Nc3 O-O 9. Be3 Nc6 10. h4 e5 11. dxe5 fxe5 12. Qxd8 Bxd8 13. c5 Nd7 14.
Bc4+ Kh8 15. Rad1 Be7 16. Ng5 Bxg5 17. hxg5 Nd4 18. Ne4 Nc2 19. Bd2 Nb8 20.
Bc3 Nc6 21. Rd2 N2d4 (21... N2d4 22. Bxd4 exd4 23. Bb5 Rb8 24. g6 Bf5 25.
Bxc6 bxc6) 22. f4 (22. b4 Be6 23. Bxe6 Nxe6 24. Rd7 Rfd8 25. Rxd8+ Rxd8 26.
f3 Kg8 27. Kf2 Kf7) 22... Bf5 (22... Bf5 23. Ng3 Be6) 23. fxe5 (23. Ng3 Be6
24. Bxe6 Nxe6 25. Bxe5 Nxg5 26. Bxc7 Ne6 27. Bd6) 23... Bxe4 (23... Bxe4
24. Bxd4 Rxf1+ 25. Kxf1 Rd8 26. Ke2 Nxd4+ 27. Ke3) 24. Re1 (24. Bxd4 Rxf1+
25. Bxf1 Rd8 26. Be3 Rxd2 27. Bxd2 Nxe5 28. Bf4 Nd7 29. b4 c6) 24... Bxg2 (
24... Rf4 25. Bxd4 Bg6 26. Bd5 Nxd4 27. Red1 c6) 25. Bxd4 (25. Bxd4 Nxd4
26. Rxd4 Bc6 27. g6) *

A filter that eats everything between '(' and ')' gives this:

[Event "?"]
[Site "?"]
[Date "????.??.??"]
[Round "?"]
[White "?"]
[Black "?"]
[Result "*"]

1. e4 f6 2. Nf3 e6 3. d4 Ne7 4. Be2 d5 5. exd5 Nxd5 6. O-O Be7 7. c4 Nb6 8.
Nc3 O-O 9. Be3 Nc6 10. h4 e5 11. dxe5 fxe5 12. Qxd8 Bxd8 13. c5 Nd7 14.
Bc4+ Kh8 15. Rad1 Be7 16. Ng5 Bxg5 17. hxg5 Nd4 18. Ne4 Nc2 19. Bd2 Nb8 20.
Bc3 Nc6 21. Rd2 N2d4
22. f4
22... Bf5
23. fxe5
23... Bxe4
24. Re1
24... Bxg2
25. Bxd4

and sankit spits out this:

rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -
rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3
rnbqkbnr/ppppp1pp/5p2/8/4P3/8/PPPP1PPP/RNBQKBNR w KQkq -
rnbqkbnr/ppppp1pp/5p2/8/4P3/5N2/PPPP1PPP/RNBQKB1R b KQkq -
rnbqkbnr/pppp2pp/4pp2/8/4P3/5N2/PPPP1PPP/RNBQKB1R w KQkq -
rnbqkbnr/pppp2pp/4pp2/8/3PP3/5N2/PPP2PPP/RNBQKB1R b KQkq d3
rnbqkb1r/ppppn1pp/4pp2/8/3PP3/5N2/PPP2PPP/RNBQKB1R w KQkq -
rnbqkb1r/ppppn1pp/4pp2/8/3PP3/5N2/PPP1BPPP/RNBQK2R b KQkq -
rnbqkb1r/ppp1n1pp/4pp2/3p4/3PP3/5N2/PPP1BPPP/RNBQK2R w KQkq d6
rnbqkb1r/ppp1n1pp/4pp2/3P4/3P4/5N2/PPP1BPPP/RNBQK2R b KQkq -
rnbqkb1r/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P1P1/2Bnb3/2B5/PP1R2P1/5RK1 w - -
r4r1k/ppp3pp/2n5/2P1P1P1/2Bnb3/2B5/PP1R2P1/4R1K1 b - -
r4r1k/ppp3pp/2n5/2P1P1P1/2Bn4/2B5/PP1R2b1/4R1K1 w - -
r4r1k/ppp3pp/2n5/2P1P1P1/2BB4/8/PP1R2b1/4R1K1 b - -


If you want to process all the variations, you're on your own.
;-)



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.