Skip to content

Commit

Permalink
Fix #2
Browse files Browse the repository at this point in the history
Issue #2 appears to be a copy-and-paste bug in gen_captures.
  • Loading branch information
basil00 committed Oct 25, 2015
1 parent 7242e36 commit be0a079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4507,7 +4507,7 @@ template <bool me> int * gen_captures(int * list) {
}
for (v = ShiftE(opp,Current->mask) & Pawn(me) & Line(me,6); T(v); Cut(v)) {
AddMove(lsb(v),lsb(v)+PushW(me),FlagPQueen,MvvLvaPromotionCap(Square(lsb(v)+PushW(me))))
if (NAtt[lsb(King(opp))] & Bit(lsb(v) + PushW(me))) AddMove(lsb(v),lsb(v)+PushW(me),FlagPKnight,MvvLvaPromotionKnightCap(Square(lsb(v)+PushE(me))))
if (NAtt[lsb(King(opp))] & Bit(lsb(v) + PushW(me))) AddMove(lsb(v),lsb(v)+PushW(me),FlagPKnight,MvvLvaPromotionKnightCap(Square(lsb(v)+PushW(me))))
}
if (F(Current->att[me] & Current->mask)) goto finish;
for (v = ShiftW(opp,Current->mask) & Pawn(me) & (~Line(me,6)); T(v); Cut(v)) AddCaptureP(IPawn(me),lsb(v),lsb(v)+PushE(me),0)
Expand Down

0 comments on commit be0a079

Please sign in to comment.