Open placidfox opened 9 months ago
Idea : in eachposition isActiveKingCheck is calculate everyTime even for pinned contraints where need check not Active King. Issue possible in isLegalMoves check - create a GamePositionCheck & calculatePotentielPosition fct without everything
refactor calculateNewPosition (inside GamePosition data class with copy ?)
Try to calculate each legalMoves for each piece (own color) in position. better foor decorator move + auto calculate if checkmate way better Castle Validation also do better ?