Aschab / osas3cf

Automatically exported from code.google.com/p/osas3cf
Other
0 stars 0 forks source link

PawnRule: move and attack bitboards are not calculated correctly #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When the pawn updates it's attack bitboards it only looks for squares with 
opponents pieces.  This will not work because the pawn technically still 
attacks the square when there is no pieces. The best example is king movement, 
because they need to know the pawn is attacking that square and cannot move 
into it.  Currently, this is not the case and the king could move into the 
square at will.

Development:
The pawn needs to calculate the attack squares and then figure out the move 
squares and including any attack squares that have the opponents piece in the 
square.  This will still have the pawn attacking the square, but only allowed 
to move to it if there is an opponents piece.

Original issue reported on code.google.com by crai...@gmail.com on 23 Dec 2010 at 7:36

GoogleCodeExporter commented 9 years ago

Original comment by crai...@gmail.com on 24 Dec 2010 at 1:25

GoogleCodeExporter commented 9 years ago
Fixed in revision #33

Original comment by crai...@gmail.com on 24 Dec 2010 at 1:26