Author: Andrew Williams
Date: 07:48:59 08/13/99
Go up one level in this thread
On August 13, 1999 at 04:12:46, brain wrote: >Hi. > >Is there any utility which can extract a fixed number of moves from a pgn file >and write them as a text file in the following format: > >e4 c5 Nf3 d6 d4 cxd4 Nxd4 Nf6 Nc3 a6 Bg5 e6 f4 Nbd7 >e4 c5 Nf3 d6 d4 cxd4 Nxd4 Nf6 Nc3 a6 Bg5 e6 f4 Qc7 >e4 c5 Nf3 d6 d4 cxd4 Nxd4 Nf6 Nc3 a6 Bg5 e6 Qf3 h6 >e4 c5 Nf3 d6 d4 cxd4 Nxd4 Nf6 Nc3 a6 Bg5 Nbd7 >e4 c5 Nf3 d6 d4 cxd4 Nxd4 Nf6 Nc3 a6 Be2 e6 O-O >e4 c5 Nf3 d6 d4 cxd4 Nxd4 Nf6 Nc3 a6 Be2 e6 f4 >e4 c5 Nf3 d6 d4 cxd4 Nxd4 Nf6 Nc3 a6 Be2 e5 Nb3 Be7 O-O O-O > > >etc. Alternatively, anyone know of any opening book already written in the above >text format and is suffciently large enough? > >Many thanks. I have such a utility. However: (i) I only have a compiled version for Linux. (It's a Flex/Bison thing). (ii) The parser is pretty lame. (iii) it prepends 1-0, 1/2 or 0-1, depending on what the result was. (iv) You can't get a fixed number of moves. You get all the moves in the game. Is that what you want? Let me know if you want it and I'll see how best to send it to you. Andrew Williams
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.