Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Counting Nodes....

Author: Robert Hyatt

Date: 15:03:13 12/22/98

Go up one level in this thread


On December 22, 1998 at 16:26:59, James Robertson wrote:

>I'm not sure I'm counting nodes correctly on my program; it seems to get a wierd
>node count for my P233.
>
>Here is my incomplete alpha-beta routine. If there are mistakes, please tell me
>where they are! Quiesce() looks similar.
>
>//depth = depth currently at
>//set = depth to search to
>
>int AlphaBeta(int depth, int set, int alpha, int beta)
>{
>  int current = alpha;
>


it is simpler to add the node count _here_.  then be sure you do the
same thing in your "quiesce()" function...




>  GenerateMoves();
>  for (int i = 0; i < movelist.number; i ++)
>  {
>    MakeMove(i);
>    if (!InCheck())
>    {
>       nodes ++;
>       if (depth == set) current = -Quiesce(depth + 1, -beta, -alpha);
>       else current = -AlphaBeta(depth + 1, set, -beta, -alpha);
>       if (current > alpha)
>       {
>         alpha = current;
>         UpdatePV();
>       }
>    }
>    UnMakeMove(i);
>    if (alpha >= beta) return alpha;
>  }
>}
>
>Thanks for any help.
>
>James



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.