Computer Chess Club Archives


Search

Terms

Messages

Subject: Single Reply Extension

Author: Renze Steenhuisen

Date: 02:28:54 09/20/04


Hi all,

I have to confess that this is a very said thing, but I have to ask...

My moveGen() generates pseudo-legal moves, in a similar way as is done in
Crafty. I want to add the single-reply extension (of course), but I find it hard
to grasp how to do this efficiently (because I might need to generate more moves
than needed, right?)

Or someone could please explain in words what is done in Crafty:

        if (tree->in_check[ply] && tree->last[ply]-tree->last[ply-1] == 1) {
          tree->one_reply_extensions_done++;
          extended+=onerep_depth;
        }

What is this "tree->last[]" thing doing exactly?

Thanks!

  Renze



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