Ensure EP flag is always valid #17
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, e.p. validity is checked in
pos_gen_pseudo()
, as the moves will not be generated if no pawn can capture.Better to do it in
move_do()
to handle position repetition.No change, looks too expensive.
Even if useless
pos->en_passant
does not hurt,pos_ok()
would fail.Fixed in
ebf01bc
(move_do
/move_do_alt
).