Computer Chess Club Archives


Search

Terms

Messages

Subject: or even better...

Author: Gerd Isenberg

Date: 12:31:07 12/12/05

Go up one level in this thread


of course also saving the bestscore assignment in that case:

if (val > bestscore)
{
  if( val >= beta )
    return val; // Actually goto return-sequence.
  bestscore = val;
  if(val > alpha)
    alpha = val;
}

or what about improving branch-prediction in some way:

if( val >= beta )
   return val; // Actually goto return-sequence.
if (val > bestscore)
{ // most likely not taken
  bestscore = val;
  if(val > alpha)
    alpha = val;
}




This page took 0.02 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.