Author: David Dahlem
Date: 06:35:16 01/09/05
Go up one level in this thread
On January 09, 2005 at 04:11:15, Anson T J wrote: >I'm sorry to repost this, how do you use YACE to apply ! and ? symbols to moves >for a particular player name or black / white? I remember someone kindly posting >the details using the add_eco command. I have forgotten how to use the commands >as the YACE help system offers only limited information. > >Thanks for any helpful tips! I'll be sure to book mark it this time! > >Anson 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 3 0 After this, we have to use the same command to the black file: carlos_pgn winblack.pgn winblack1.pgn n 0 3 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 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.