Author: Robert Hyatt
Date: 20:01:55 07/29/02
Go up one level in this thread
On July 29, 2002 at 13:38:28, Alvaro Jose Povoa Cardoso wrote: >On July 29, 2002 at 10:53:33, Robert Hyatt wrote: > >>On July 29, 2002 at 04:48:31, Alvaro Jose Povoa Cardoso wrote: >> >>>How do you use the 2 element array draw_score[]? >>>It is a bit difficult to me to grasp the use of this small array. >>>Could you explain please? >>> >>>Best regards, >>>Alvaro Cardoso >> >>draw_score[0] is the draw score for black to move positions. draw_score[1] >>is the draw_score for white to move positions. >> >>when you want to set the draw score to a non-zero value, this makes it easier >>for the search to get a drawscore. IE I can do >> >>score=draw_score[wtm]; >> >>rather than >> >>score=(wtm)? drawscore : -drawscore; > > >In Crafty you extract the draw score quite a few times by doing: >value=DrawScore(wtm); >or >alpha=DrawScore(wtm); > >but how and where do you _setup_ those scores in draw_score[] array? > >Thanks, >Alvaro Cardoso Crafty sets a global variable "abs_draw_score" in option.c in response to the "rating" command which gives the rating of crafty and the opponent. Iterate() then sticks this into the array...
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.