bitboards Q: 2 pieces can go to the same square
Posted: 07 Jul 2005, 00:03
hi,
i'm rather new to chess programming. i've implemented bitboards but have a problem when 2 pieces of the same type can access the same square
for example, i have a bitboard with both white knights and they both access d4 when i generate the moves. how do i translate that into all the valid moves for the knights? do i have to generate their moves separately with 2 bitboards?
thanks!!
i'm rather new to chess programming. i've implemented bitboards but have a problem when 2 pieces of the same type can access the same square
for example, i have a bitboard with both white knights and they both access d4 when i generate the moves. how do i translate that into all the valid moves for the knights? do i have to generate their moves separately with 2 bitboards?
thanks!!