Note that the line "and checkleap #0 #1 0 1 var ep #1" is poorly written. Whenever ep was true, this would have evaluated as true. What I think I actually intended was "and checkleap var ep #1 0 1". However, this could still allow en passant capture in front of or next to the Pawn that had made a double move. What might work is checkaleap with more specific directions.
Note that the line "
and checkleap #0 #1 0 1 var ep #1
" is poorly written. Whenever ep was true, this would have evaluated as true. What I think I actually intended was "and checkleap var ep #1 0 1
". However, this could still allow en passant capture in front of or next to the Pawn that had made a double move. What might work ischeckaleap
with more specific directions.