MSWS 5cedc0b351 Refactor chess move logic and enhance board functionality
- Simplify move string representation by removing intermediate coordinates
- Filter out pseudo moves where the capturing piece is a King
- Format checks for rook captures during castling correctly
- Improve readability and maintainability of the GetMoves function
- Refactor applyEnPassant function for clarity
- Store destination move coordinates in two variables
- Introduce checks for en passant conditions and capture logic
- Reset board.EnPassant appropriately
- Refactor main function to include board operations based on FEN notation
- Add error handling for board initialization
- Implement logic to generate and display moves from the chess board
- Print count of moves after each execution and provide a list of new moves
- Add a test for en passant pawn removal
- Validate en passant pawn restoration upon undo
- Ensure accurate board state reversion after a move
- Update castling state checks after undo
- Enable parallel execution for performance tests
- Update known performance values for specific tests
- Add a new test case for a chess position named Gaviota
2025-03-22 13:54:48 -07:00
2024-12-12 11:55:19 -08:00
2024-12-12 03:24:39 -08:00
2024-12-12 03:24:39 -08:00
2024-12-12 03:24:39 -08:00
Description
No description provided
GPL-3.0 285 KiB
Languages
Go 100%