Open lazarchitect opened 2 months ago
basically: if the previous game turn, i.e. your opponent's most recent turn, involved a pawn leaping (simple boolean), then when we go to move our pawn, we can check if the pawn is next to the column where the enemy pawn leapt, and we also need to be in the same row as that pawn (row 3 for black and row 4 for white or whatever). So both pieces of data need to be tracked.
How to track it? Well, each turn, we can mark "pawnLeapt" as true or false, and "pawnLeapCol" as 1 through 8, or -1 if no pawn leaped. it's important that this piece of data gets overwritten every turn to be as up to date as possible.
Important piece of info for evaluating en passant during opposing pawn's valid move generation.
Dependent on #77 being completed first.
See notebook entry 5.5