Author: Mark Rawlings
Date: 13:09:34 12/18/05
Go up one level in this thread
On December 18, 2005 at 13:33:26, Dieter Buerssner wrote: >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 In my engine, I have flags indicating whether en passant captures are allowed on particular squares. I could set these to "off" permanently when the program initializes so there would never be an en passant capture. There may be something similar in crafty?? Mark
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.