Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Also Fritz 8.0.0.23 and Crafty 19.03 miss a mate in one!

Author: Mike Byrne

Date: 18:16:55 07/25/03

Go up one level in this thread


On July 25, 2003 at 20:30:47, Sune Fischer wrote:

>On July 25, 2003 at 20:13:12, Mike Byrne wrote:
>
>>Since you can only claim draw on your move, make the 100 ply counter a 101 ply
>>counter and this problem goes away (I think)...will test it in Crafty 19-04 SE
>
>But it introduces the other problem, that the engine won't see a draw until ply
>101.
>
>Perhaps that is less of a bug, afterall you aren't required to claim a 50 move
>draw.
>
>The only downside is that 50 move draws are far more frequent than mates on the
>50th move.
>
>-S.

true,
Crafty's code reads as follows:

if (Rule50Moves(0) > 99) return(2);

so this works ,but it's not technically correct

if (Rule50Moves(0) > 100) return(2);

========================================================
this works but it's 3 more lines and there are 2 other places where you would
need this
===================================================================
if (Rule50Moves(0) > 99 && crafty_is_white && wtm) return(2);
  else if (Rule50Moves(0) > 99 && !crafty_is_white && !wtm ) return(2);
  else if (Rule50Moves(0) > 100 && crafty_is_white && !wtm) return(2);
  else if (Rule50Moves(0) > 100 && !crafty_is_white && wtm) return(2);
====================================================================
of course this could probably be shortened quite a bit...
this should work ....

if (Rule50Moves(0) > 99 && (crafty_is_white + wtm == !1) return(2);
else if (Rule50Moves(0) > 100) return(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.