Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: nodes per second

Author: Andrew Williams

Date: 16:12:25 05/04/00

Go up one level in this thread


On May 04, 2000 at 19:05:20, Lance Nine wrote:

>how do i calculate the nodes per second my program checks when i use the
>alfa-beta algorithm? do i count the nodes it does not look at due to cutoffs?
>
>if i don't, the speed in nodes per second will be the same for negamax and
>alfa-beta, right?
>
>the speed of my program is rather disappointing otherwise...
>
>thanks,
>--lance

There are two common ways of doing this (in both cases, assume you've
created a variable called nodes):

(1) Increment nodes every time you do a make_move() call.

OR

(2) Increment nodes every time you enter alphabeta() or quiesce(). If your
program enters alphabeta() then calls quiesce() if you're out of depth,
be careful that you don't increment nodes twice for the same position!


Andrew Williams



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.