enpassant bug in chess variants

Sort:
E1s6

In variants that include torpedoo we can double push pawns always. Consider position below where red and yellow are teams and blue is opponent.

blue and yellow double push respectively then we get the following position

as you can see in the screen shot red can move diagonally because blue double push the pawn and you can enpassnt it but after you make the move the blue pawn doesn't get captured! But if yellow pawn weren't double push it would work correctly.

Please fix thankss happy.png

Also there is a cool interaction if both yellow and blue are opponent to red. Red can enpassant both pawns. You can actually capture two pawns in 1 move !

noahfavelo

this is most likely some sort of failsafe check like

if ( players_whom_you_captured_pieces_from contains( team_mate_color ) )

undoCaptures()

which should instead go through each captured piece and put it back if it was the wrong team.

E1s6
noahfavelo wrote:

this is most likely some sort of failsafe check like

if ( players_whom_you_captured_pieces_from contains( team_mate_color ) )

undoCaptures()

which should instead go through each captured piece and put it back if it was the wrong team.

yea it makes sense

DINHGIA2016
DINHGIA2016
DINHGIA2016