Author: David Dahlem
Date: 13:31:35 12/06/04
Go up one level in this thread
On December 06, 2004 at 14:40:28, Anson T J wrote: >Can Chessbase or any other chess program go through a PGN file and mark all of >either White or Black moves with a "!" or "?"? > >For example say I had a game of Deep Blue vs Garry Kasparov and I wanted all of >Deep Blue's moves to be marked with a "!", is there such a program that would do >this without having to do it manually? > >Thanks for any input. Yace can do this. From the Yace documentation ... Let us suppose that you already have the wanted file. A good idea, in my opinion, is to use only the games that GM won. Now, you have to create two files. Let us say that you create a file called Talwhite.pgn and another: Talblack.pgn. Next we need to mark the moves made by our GM with the flag: !!. For that, we will use the command carlos_pgn according to the example below. carlos_pgn winwhite.pgn winwhite1.pgn n 2 0 After this, we have to use the same command to the black file: carlos_pgn winblack.pgn winblack1.pgn n 0 2 The first time we used 3 0, marking the white moves with !!, in the other file we mark the black ones with !!, then we used 0 3! After the execution of these commands, two files were created, a file called white.pgn and other black.pgn. In white.pgn the white moves are marked with !!, and in black.pgn all the black moves are marked with !!. In the sample, we have used the carlos_pgn command to mark white or black moves with the flag !!. That command has several other functions. We will explain a little better the operation of this command. The command syntax is: carlos_pgn inputfile outputfile n number number inputfile - the name of file that will be used. Has to be a PGN file! outputfile - the name of the file that will be created by Yace with the apropriated flags added n - tells Yace the procedure that it will be applied to the file, that is to say, to add flags! number - this first number indicates the flag that will be added to the white moves. number - this second number indicate the flags that will be added to the black moves. This numbers are equal to flag, see below: 3 means !! or very good move. 2 means ! or good move. 1 means !? or interesting move. 0 means = or no action or no flag! -1 means ?! or not so good move. -2 means ? or bad move. -3 means ?? or very bad move. If you want to alter the file white.pgn, adding the flag ! to all the white movements. A new modified file will be created. Then, we will choose a name, as white.pgn. We would have then use the command: carlos_pgn white.pgn white_done.pgn n 2 0 If you want to add flags to the black moves, and make no changes in the white moves, you have to set the first number to 0 and the second number to the needed flag. carlos_pgn black.pgn black_done.pgn n 0 2
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.