Author: Dan Andersson
Date: 10:56:53 08/19/03
Go up one level in this thread
Dynamically updating attackboards is fairly fast. And you get legal moves and captures as an added benefit. I favour the attackboard board representation where each square is an unsigned 32 bit integer. One bit per piece no less. It can readily be combined with any other scheme AFAIK. When you make a move you update the attack information of the moved piece and pieces attacking the to and from squares as well as any captured piece. Castling and ep are special cases. This might be done with iteration or even using a bitboard. Whichever is fastest. MvH Dan Andersson
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.