Author: Wylie Garvin
Date: 05:10:42 12/08/01
Go up one level in this thread
On December 06, 2001 at 17:31:55, Sune Fischer wrote: >.... > >I have special move functions for the pawns and kings, then I have one >makemove() for the rest. When the kings are done with the castling I switch so >the kings also uses the standard makemove(). It is only one "if" and a few local >variables I save, but I have a feeling that it is a bit faster to call the same >function often rather than dispersing the calls to many functions. >It is just a feeling, but why not make the switch when I already have the faster >function running. > Do you mind if I ask what representation you use for your generated moves? I use the bottom 13 bits of an int, with 6 bits of source and 6 bits of dest and 1 "special" bit. The first think my makemove does is test this special bit, and if clear it skips the checks for enpassant captures, castling moves and promotions. This seems a lot simpler than having separate functions. ? wylie
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.