Computer Chess Club Archives


Search

Terms

Messages

Subject: how to initialize rank(or file)_attack[64][256]

Author: Maurizio Di Vitto

Date: 04:13:13 12/02/03


Hi,
I'm from Italy and I am still writing my chess engine in c language. I
downloaded the source code you told me, but I would like to know something more.
I know for pieces like rook,queen and bishop we should look at the rank(or
file)_attack[64][256] array,the first index refers to the square the piece sits
on and the second refers to the state of the rank, so I want to know how to
initalize this array of [64][256]. I know what state of rank means, It can be
represented by a number like 00101001, I know about the rotated bitboard, so I
will be pleased if I could receive some explanation about that.
Thanks a lot.
Maurizio Di Vitto



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.