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.
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.
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
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 !