Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Is this possible?

Author: David Dahlem

Date: 09:41:36 12/01/03

Go up one level in this thread


On December 01, 2003 at 07:34:01, Odd Gunnar Malin wrote:

>On November 30, 2003 at 17:12:20, David Dahlem wrote:
>
>>On November 30, 2003 at 17:09:46, Odd Gunnar Malin wrote:
>>
>>>On November 30, 2003 at 17:05:25, David Dahlem wrote:
>>>
>>>>On November 30, 2003 at 16:45:19, Odd Gunnar Malin wrote:
>>>>
>>>>>On November 30, 2003 at 16:32:17, David Dahlem wrote:
>>>>>
>>>>>>The following pgn is a sample of the "Correspondence Analysis" output of CB
>>>>>>interfaces. I'm wondering if there is any utility or program that will convert
>>>>>>each variation line to complete pgn games? This is just a wild idea i had for an
>>>>>>engine to create an opening book.
>>>>>>
>>>>>>[Event "Sample"]
>>>>>>[Site "?"]
>>>>>>[Date "????.??.??"]
>>>>>>[Round "?"]
>>>>>>[White "?"]
>>>>>>[Black "?"]
>>>>>>[Result "*"]
>>>>>>[ECO "?"]
>>>>>>[PlyCount "5"]
>>>>>>
>>>>>>1. Nc3 (1. Nf3 Nf6 (1... d5 2. d4 (2. d3 Nc6 3. Bf4 $11 {0.00/7}) 2... Bf5 3.
>>>>>>Bf4 $11 {0.12/7}) (1... d6 2. Nc3 (2. e4 Nf6 3. Nc3 $11 {0.18/7}) 2... d5 3. d4
>>>>>>$11 {0.25/7}) 2. d4 (2. Nc3 d5 3. d4 $11 {0.03/7}) 2... d5 3. Bf4 $11 {0.12/7})
>>>>>>(1. e4 Nc6 (1... Nf6 2. e5 (2. Nc3 d5 3. e5 $11 {0.09/7}) 2... Nd5 3. Nf3 $11 {
>>>>>>0.25/7}) (1... e5 2. Nf3 (2. Nc3 Nc6 3. Bc4 $11 {0.09/7}) 2... Nf6 3. d4 $11 {
>>>>>>0.18/7}) 2. Nf3 (2. d4 d5 3. e5 $11 {0.15/7}) 2... e5 3. Bc4 $11 {0.18/7}) (1.
>>>>>>d4 d5 (1... e6 2. Nd2 (2. e4 d5 3. Nd2 $11 {0.22/7}) 2... Nc6 3. Ngf3 $14 {
>>>>>>0.34/7}) (1... c6 2. e4 (2. Nd2 d5 3. e4 $11 {0.22/7}) 2... d5 3. e5 $14 {
>>>>>>0.34/7}) 2. Nf3 (2. Bf4 e6 3. e3 $11 {0.18/7}) 2... Qd6 3. e3 $11 {0.22/7})
>>>>>>1... d5 (1... e6 2. e4 (2. Nf3 d5 3. e4 $11 {0.25/7}) 2... Nc6 3. d4 $14 {
>>>>>>0.28/7}) (1... Nc6 2. d4 (2. Nf3 d5 3. d4 $11 {0.00/7}) 2... Nf6 3. d5 $14 {
>>>>>>0.31/7}) 2. d4 (2. Nf3 d4 3. Nb5 $11 {-0.03/7}) 2... Bf5 3. f3 $11 {0.25/7} *
>>>>>>
>>>>>>Thanks in advance
>>>>>>Dave
>>>>>
>>>>>Hi.
>>>>>
>>>>>Keep it like this an let your engine read these kind of pgn-files. It is a much
>>>>>better format when you later add moves etc. to your analyzed book.
>>>>>
>>>>>Odd Gunnar
>>>>
>>>>I think i understand your meaning now. Perhaps i wasn't clear enough, what i
>>>>want to do is create a pgn file that can be imported into gui books. For
>>>>example, Arena engine books. If i import a pgn in the format above, only the
>>>>main line will be imported.
>>>>
>>>>Regards
>>>>Dave
>>>
>>>Ok,
>>>
>>>Try to lookup pgn-extract or normal-32 if any of those can do it. If you don't
>>>find any such utility I can write it for you, it shouldn't take too much time.
>>>
>>>Odd Gunnar
>>
>>Thanks. I have pgn-extract, and don't see anything in the readme file that will
>>do this. I will download normal-32 and try it.
>>
>>Regards
>>Dave
>
>Did you find anything?
>

Hi Odd Gunnar

I tried Normal-32, without success. Thanks so much for PgnSplit! From your
example output, this looks like it works great. I'll test it further. Of course,
to generate a complete "correspondence analysis" output with variation lengths
suitable for an opening book will require some time, overnight or longer. :-)

Regards
Dave

>Anyway I made a prototype in the lunch hour.
>
>------------------
>Syntax: PgnSplit [options] inputfile outputfile
>
>Options:
>   /c 0|1      - Write comment to outpufile, default=1
>   /m <number> - Max moves/game. ex /m 10
>   /n 0|1      - Expand nag values.
>   /v 0|1      - Extend variation, default=1
>
>This tool will take an inputfile in pgn-format with variations
>and output each variation as a separate game into the outputfile.
>------------
>
>As you see I made some other options too, ex. max moves in output file etc.
>
>http://home.online.no/~malin/sjakk/download/PgnSplit.exe
>
>Your file would look like this with default options.
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>1. Nc3 d5 2. d4 Bf5 3. f3 { equal chances, quiet position 0.25/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 1 }
>1. Nc3 d5 2. Nf3 d4 3. Nb5 { equal chances, quiet position -0.03/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 2 }
>1. Nc3 e6 2. e4 Nc6 3. d4 { +/=  0.28/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 3 }
>1. Nc3 e6 2. Nf3 d5 3. e4 { equal chances, quiet position 0.25/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 4 }
>1. Nc3 Nc6 2. d4 Nf6 3. d5 { +/=  0.31/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 5 }
>1. Nc3 Nc6 2. Nf3 d5 3. d4 { equal chances, quiet position 0.00/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 6 }
>1. Nf3 Nf6 2. d4 d5 3. Bf4 { equal chances, quiet position 0.12/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 7 }
>1. Nf3 Nf6 2. Nc3 d5 3. d4 { equal chances, quiet position 0.03/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 8 }
>1. Nf3 d5 2. d4 Bf5 3. Bf4 { equal chances, quiet position 0.12/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 9 }
>1. Nf3 d5 2. d3 Nc6 3. Bf4 { equal chances, quiet position 0.00/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 10 }
>1. Nf3 d6 2. Nc3 d5 3. d4 { equal chances, quiet position 0.25/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 11 }
>1. Nf3 d6 2. e4 Nf6 3. Nc3 { equal chances, quiet position 0.18/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 12 }
>1. e4 Nc6 2. Nf3 e5 3. Bc4 { equal chances, quiet position 0.18/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 13 }
>1. e4 Nc6 2. d4 d5 3. e5 { equal chances, quiet position 0.15/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 14 }
>1. e4 Nf6 2. e5 Nd5 3. Nf3 { equal chances, quiet position  0.25/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 15 }
>1. e4 Nf6 2. Nc3 d5 3. e5 { equal chances, quiet position 0.09/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 16 }
>1. e4 e5 2. Nf3 Nf6 3. d4 { equal chances, quiet position  0.18/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 17 }
>1. e4 e5 2. Nc3 Nc6 3. Bc4 { equal chances, quiet position 0.09/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 18 }
>1. d4 d5 2. Nf3 Qd6 3. e3 { equal chances, quiet position 0.22/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 19 }
>1. d4 d5 2. Bf4 e6 3. e3 { equal chances, quiet position 0.18/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 20 }
>1. d4 e6 2. Nd2 Nc6 3. Ngf3 { +/=  0.34/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 21 }
>1. d4 e6 2. e4 d5 3. Nd2 { equal chances, quiet position 0.22/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 22 }
>1. d4 c6 2. e4 d5 3. e5 { +/=  0.34/7 } *
>
>[Event "Sample"]
>[Site "?"]
>[Date "????.??.??"]
>[Round "?"]
>[White "?"]
>[Black "?"]
>[Result "*"]
>
>{ Variation 23 }
>1. d4 c6 2. Nd2 d5 3. e4 { equal chances, quiet position 0.22/7 } *
>
>
>Odd Gunnar



This page took 0.01 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.