Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Single Reply Extension

Author: Robert Hyatt

Date: 07:35:08 09/20/04

Go up one level in this thread


On September 20, 2004 at 05:28:54, Renze Steenhuisen wrote:

>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


When in check, crafty has a legal-move generator.  if last [ply]-last[ply-1] is
exactly 1, then then legal move generator generated exactly 1 move.




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.