Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: en passant in crafty

Author: Dieter Buerssner

Date: 10:33:26 12/18/05

Go up one level in this thread


I can think of several ways for my engine. All would be fast. After reading
about your little contest, I think it is not unfair to give some hints. After
all, you found this place, and it can be considered rather smart, to find the
right environment for the best help.

When you think about it, at some place the movegenerator has to be triggered, to
create an ep move. The move gemerator has to know, that the last move was a
double pawn push. It should not be too difficult, to guess where this trigger
is. Disable it, and you are done.

The most obvious idea is of course, to find the place where ep captures are
generated. This might be more difficult, than it seems, if you don't know the
source well. Chess engines might have several move generators, for example for
"normal" moves, for moves after check and for capture only search. You probably
would need to find all these.

In my engine, I could slightly change my InCheck() routine, to achieve what you
want, it would probably be 2 lines of code added.

You probably have to study the source code of crafty, and understand some of it.
It might not be too easy.

Regards,
Dieter



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.