Closed Sopel97 closed 4 years ago
in chess_posdb we have to cleanup some stuff related to move/position legality checks.
in particular Board::isKingAttackedAfterMove, Board::isSquareAttackedAfterMove need better implementations
Board::isSquareAttacked shouldn't have the 'captured' and 'occupied' parameter
remove this assert https://github.com/Sopel97/chess_pos_db/blob/master/src/chess/Position.cpp#L26
overall all predicates that chess whether something is attacked now or after a move need to be rethought and reimplemented.
what we need (all of these happen to not require pos state info so they may be implemented in board only):
additionally we may want
in chess_posdb we have to cleanup some stuff related to move/position legality checks.
in particular Board::isKingAttackedAfterMove, Board::isSquareAttackedAfterMove need better implementations
Board::isSquareAttacked shouldn't have the 'captured' and 'occupied' parameter
remove this assert https://github.com/Sopel97/chess_pos_db/blob/master/src/chess/Position.cpp#L26
overall all predicates that chess whether something is attacked now or after a move need to be rethought and reimplemented.
what we need (all of these happen to not require pos state info so they may be implemented in board only):
additionally we may want