Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Cool!!!

Author: Mihaly Szalai

Date: 10:30:48 10/08/04

Go up one level in this thread


On October 08, 2004 at 13:07:40, Mihaly Szalai wrote:

>On October 08, 2004 at 11:16:01, Peter Berger wrote:
>
>>There is a *much*, *much* easier way to do this. Just use program Yace and its
>>clever PGN commands. I will post a little documentation on how to easily create
>>Crafty repertoire opening books out of (nested) PGN this weekend ( was planned
>>anyway, but postponed). Good motivation to see that there is some interest in it
>>:)
>>
>>Later,
>>Peter
>
>Thank you, Peter!
>
>Mihaly

From the yace documentation:

carlos_pgn :
------------

	In the sample, we have used this command to mark white or black moves with the
flag !!. That command has several other functions. Even so, we will explain
here, a little
better the operation of this command with the objective that used previously.

	The command syntax is:

	carlos_pgn inputfile outputfile n number number

	Where:

	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.

	Now, a small example. Let us suppose that you want to alter the file
kaspywhite.pgn,
adding the flag ! to all the white movements. Obligatorily a new modified file
will be created,
staying the file kaspywhite.pgn untouched. Then, we will choose a name any, as
white.pgn, for
the file that should be created by Yace. We would have then accordingly below a
command:

	carlos_pgn kaspywhite.pgn white.pgn n 2 0

	Remember: 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 ( zero ) and the second number
accordingly to the
needed flag.




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.