Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: eval short-circut

Author: Severi Salminen

Date: 02:44:04 11/30/01

Go up one level in this thread


>if ( material < ( alpha - (2*pawn)))
>  return alpha - 1;
>if ( material > ( beta + (2*pawn)))
>  return beta + 1;

All well known (and good!) techniques. But can't you just return alpha and beta?
Returning alpha results a fail high (>= beta) in previous node so no need for
alpha-1. The same goes for returning beta -> it will equal alpha in previous
node, which doesn't affect anything. Or then I'm a little tired and missing
something, which is quite possible...

Severi



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.