Author: Ed Schröder
Date: 03:57:51 12/15/03
Go up one level in this thread
On December 15, 2003 at 06:32:54, Alvaro Jose Povoa Cardoso wrote: >Hi, I would like to know how do you detect if a move is a mate_killer and/or an >historic_mate_killer. >In your page on chess programming you say that if a killer_move has a mate score >the it is promoted to a mate_killer_move. >But I guess a mate score can be a winning score or a loosing score. >With this in mind I don't think the following code would do it: > if (abs(score)>MATE-200) then this is a mate_killer move. >This code would detect both positive and negative mate scores, so it wouldn't >work (I think). >So how do you do it? How do I know if a mate score is a winning score or loosing >one? > >Best regards, >Alvaro Cardoso Alvaro, Of course the mate must be a winning mate only, thus: if (score > MATE-200) then mate_killer My best, Ed
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.