whiteTakenPieces property
Captured/taken piece piles.
- whiteTakenPieces contains pieces captured by White.
- blackTakenPieces contains pieces captured by Black.
These are derived from the current board position (based on FEN history) so they always stay consistent with undo/redo.
Implementation
final List<ChessPiece> whiteTakenPieces = [];