Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: how to truncate games?

Author: David Dahlem

Date: 11:45:46 01/02/06

Go up one level in this thread


On January 02, 2006 at 13:14:34, Leen Ammeraal wrote:

>Hello David,
>If no one can help you, I suppose I can fairly quickly write a simple
>program for this task, so just let me know.
>I would simply copy your files, and skip everything starting
>"1. " (at the beginning of a new line) until (and including) "{Diagram} ",
>is that what you want?
>Leen Ammeraal

Yes, that sounds like that would do it. Of course, the proper fen string would
have to be included also. For example, to go from this game ...


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

1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 4. Ba4 Nf6 5. O-O Be7 6. Re1 b5 7. Bb3 O-O 8. d4
Nxd4 9. Nxd4 exd4 10. e5 Ne8 11. c3 dxc3 12. Nxc3 c6 13. Qf3 Qc7 14. Bf4 Qb6 15.
Rad1 Nc7 16. Ne4 Ne6 17. Be3 c5 {Diagram} 18. Nf6+ Bxf6 19. exf6 Nd4 20. Bxf7+
Kxf7 21. fxg7+ Kxg7 22. Qxa8 Bb7 23. Bh6+ *

to this ...

[Event "?"]
[Site "?."]
[Date "1948.??.??"]
[Round "?"]
[White "?"]
[Black "?"]
[Result "*"]
[SetUp "1"]
[FEN "r1b2rk1/3pbppp/pq2n3/1pp1P3/4N3/1B2BQ2/PP3PPP/3RR1K1 w - - 0 18"]

18. Nf6+ Bxf6 19. exf6 Nd4 20. Bxf7+ Kxf7 21. fxg7+ Kxg7 22. Qxa8 Bb7 23. Bh6+ *

I think such as tool would be very useful, it could also be used to make test
suites out of games marked with "!", "!!", etc. :-)

Regards
Dave



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.