Computer Chess Club Archives


Search

Terms

Messages

Subject: Extensions

Author: Jeff GAZET

Date: 00:37:38 04/23/04


Good morning,

i'm trying to add extensions to my engine. I'm using a classical alphabeta
function :
int alphabeta(int depth, int alpha, int beta)
depth is dicreased 1 by 1 :
eval=-alphabeta(depth-1,-beta,-alpha);

At the beginning at the function alphabeta(), if king is incheck, i do
++depth. This works fine.

In the main move loop, if do a ++depth on a promoting move, juste before
calling -alphabeta... the engine searches for ever when the first promoting
move is found. Then, if i add "if depth<1" or <2, i don't see any
improvment.

I don't understand how engines like GnuChess can write : depth+=DEPTH when
extending.
(DEPTH is 12).

Could someone give me some explanations, please ?

Regards.



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.