AnalogChess icon indicating copy to clipboard operation
AnalogChess copied to clipboard

En Passant

Open dyllan-to-you opened this issue 3 years ago • 2 comments

Sadly en passant (the funny move) is not implemented yet because I have no idea how it would work.

Maybe if a pawn passes through another pawn's line of attack, the pawn can choose to capture it?

Partially leaving this issue as a reminder to myself to look at code and see if I can even implement this

dyllan-to-you avatar Jan 13 '23 18:01 dyllan-to-you

I was thinking you could have the hitbox of pawns extend backwards one unit (into a capsule shape) if it moves >1 unit and is targeted by another pawn

ddgond avatar Jan 13 '23 19:01 ddgond

Interestingly en passant is basically already in the game. If you dont move the capturing pawn all the way forward and instead move it like 0.9 squares forward on the last move, it can capture any pawn that tries to get past it. The capsule hitbox is still a good idea though, it will just require some thinking since my collision code is based on circles only.

ehulinsky avatar Jan 14 '23 04:01 ehulinsky